/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8; /* Overall page background */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER STYLES === */
header {
    background-color: #0f2136; /* Dark blue */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e0e0e0;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* Style for the active link */
    color: #fff;
    font-weight: 500;
}

.theme-toggle i {
    font-size: 1.2rem;
    cursor: pointer;
    color: #e0e0e0;
}
.theme-toggle i:hover {
    color: #fff;
}


/* === SKILLS PAGE SPECIFIC STYLES === */
.skills-page-content {
    padding-top: 40px;
    padding-bottom: 60px;
    background-color: #ffffff; /* White background for the main skills content area */
}

#skills-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

#skills-intro h1 {
    font-size: 2.8rem;
    color: #0f2136;
    margin-bottom: 10px;
}

#skills-intro .subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.skills-category {
    margin-bottom: 60px;
}

.skills-category h2 {
    font-size: 1.8rem;
    color: #0f2136;
    margin-bottom: 30px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.skill-card-grid {
    display: grid;
    gap: 25px;
}

.skill-card-grid.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card-grid.four-cols {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 768px) {
    .skill-card-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
    .skill-card-grid.four-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 577px) and (max-width: 767px) {
    .skill-card-grid.three-cols,
    .skill-card-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.skill-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.skill-card-header i {
    color: #3D90D7;
    margin-right: 15px;
    flex-shrink: 0;
}

.skill-card-header h3 {
    font-size: 1.2rem;
    color: #0f2136;
    margin: 0;
}

.skill-card ul {
    list-style: none;
    padding-left: 5px;
    margin: 0;
    flex-grow: 1;
}

.skill-card ul li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.skill-card ul li::before {
    content: "•";
    color: #3D90D7;
    font-weight: bold;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
}

.skill-card.professional i {
    display: block;
    margin-bottom: 12px;
    color: #3D90D7;
}
.skill-card.professional {
    text-align: center;
}

.skill-card.professional .skill-card-header {
    display: none;
}

.skill-card.professional h3 {
    font-size: 1.1rem;
    color: #0f2136;
    margin-bottom: 8px;
}

.skill-card.professional p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* === FOOTER STYLES === */
footer {
    background-color: #0f2136; /* Dark blue */
    color: #adb5bd; /* Lighter text color for footer */
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2c3e50; /* Slightly lighter border */
}

.footer-about h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4, .footer-connect h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #3D90D7; /* Orange on hover for social icons */
}
.social-icons a:last-child {
    margin-right: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments for Header/Footer - (You might have more detailed ones) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        padding-left: 0;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 8px 0;
    }
    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-connect {
        margin-bottom: 20px;
    }
    /* .social-icons {
        justify-content: center; No, they are inline-block and center via text-align of parent
    } */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        margin-bottom: 5px;
    }
}