:root {
    --accent-color: #00f2ff; /* Cyber blue */
    --bg-dark: #0a0a0a;
    --text-light: #e0e0e0;
    --card-bg: #161616;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* =================================
   1. Header and Navigation Styles
   ================================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* .site-logo a:hover {
    opacity: 0.8;
}

.site-logo h2 {
    font-size: 1.8em;
    font-weight: 800;
    color: #1a3c5a;
    margin: 0;
}
.site-logo a {
    text-decoration: none;
} */

.main-nav a,
.main-nav div {
    color: #1a3c5a;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 18px;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 3px solid transparent; 
}

.main-nav a:hover,
.main-nav a.active {
    color: #1da192;
    border-bottom: 3px solid #1da192;
}


.main-nav .nav-dropdown {
    position: relative;
    display: inline-block;
}


.main-nav .dropbtn {
    color: #1da192;
    border-bottom: 3px solid #1da192;
    display: block;
}


.dropdown-content {
    display: none;
    position: absolute;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 5px 0;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: translateY(10px);
}


.dropdown-content a {
    color: #1a3c5a;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 500;
    border-radius: 0;
}


.dropdown-content a:hover {
    background-color: #e6f0ff;
    color: #3f87f5;
}

.main-nav .nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.header-utility {
    margin-left: 20px;
}
.resume-link {
    background-color: #3f87f5;
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.resume-link:hover {
    background-color: #2e6bd6;
}

/* =================================
   2. General Content Styles
   ================================= */
main {
    padding-bottom: 50px;
}

.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a3c5a;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

/* =================================
   3. Highlight Projects / Project Grid Styles
   ================================= */
.highlight-projects-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.section-title {
    font-size: 2em;
    color: #1a3c5a;
    text-align: center;
    margin: 40px 0 30px;
    font-weight: 700;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 0;
}

.project-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-tag-container {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.role {
    display: inline-block;
    background-color: #b4f6ff;
    color: #1da192;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-top: 5px;
}

.tech-tag {
    display: inline-block;
    background-color: #e0f7fa;
    color: #1da192;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-top: 5px;
}

/* =================================
   4. Skills Carousel Section
   ================================= */
.skills-carousel-section {
    max-width: 1200px;
    margin: 60px auto 40px; 
    padding: 0 20px;
    text-align: center;
}

.skills-carousel-section h2 {
    font-size: 1.8em;
    color: #1a3c5a;
    margin-bottom: 25px;
}

.carousel-window {
    max-width: 1150px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
    cursor: grab;
}

.skills-carousel {
    display: flex;
    white-space: nowrap; 
    padding: 10px 0;
    gap: 30px; 
    width: fit-content; 
    
    /* Key: Transition property to allow JS movement to be smooth */
    transition: transform 0.1s linear; 
    
    /* Remove scrollbars, as the mouse handles movement */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.skills-carousel::-webkit-scrollbar {
    display: none;
}

.skill-item {
    flex-shrink: 0; 
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: grayscale(85%);
    transition: filter 0.3s;
}

.skill-item:hover img {
    filter: grayscale(0%);
}

.skill-item p {
    margin: 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

/* =================================
   5. Learning Modules (New Styles for learning.html)
   ================================= */
.learning-hub-section {
    padding: 40px 0;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.learning-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
    border-left: 5px solid #1da192;
    position: relative;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #1a3c5a;
}

.card-icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background-color: #e0f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-icon-container img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.learning-card h3 {
    font-size: 1.4em;
    color: #1a3c5a;
    margin: 0 0 10px 0;
}

.learning-card p {
    font-size: 0.95em;
    color: #666;
    flex-grow: 1;
    margin-bottom: 20px;
}

.tech-category {
    display: inline-block;
    background-color: #1a3c5a;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    align-self: flex-start;
}

/* =================================
   6. Lightbox Modal
   ================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* =================================
   7. Footer Styles
   ================================= */
.site-footer {
    background-color: #1a3c5a;
    color: #ffffff;
    padding: 40px 0 20px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3, .footer-column h4 {
    color: #1da192; /* Teal color */
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-info p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #c0d9ed;
}

.footer-info a {
    color: #c0d9ed;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #c0d9ed;
    text-decoration: none;
    font-size: 0.9em;
    line-height: 2;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1); 
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9em;
    text-align: center;
    color: #c0d9ed;
}

/* =================================
   8. Media Queries (Responsiveness)
   ================================= */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        padding: 10px 20px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
        order: 2;
    }

    .main-nav a,
    .main-nav div {
        margin: 5px 10px;
    }
    
    .header-utility {
        order: 3;
        margin-top: 10px;
    }

    /* Content */
    .section-title {
        font-size: 2em;
        margin-top: 30px;
    }
    
    .project-grid, .learning-grid {
        gap: 20px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .footer-column ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-column ul li {
        margin: 0 10px;
    }
}
