/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Simple Mobile Navigation Bar */
.mobile-nav {
    display: none; /* Hidden by default on desktop */
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #f8f9fa;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    /* Simple, clean styling */
    box-shadow: none;
    transition: none;
    /* Sticky positioning */
    transform: none;
    will-change: auto;
}

/* Show mobile navigation on mobile devices or when zoomed in */
@media (max-width: 768px), (max-zoom: 0.8) {
    .mobile-nav {
        display: block;
        /* Sticky positioning */
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
    }
    
    /* No need for margin-top since it's sticky, not fixed */
    .main-content {
        margin-top: 0;
    }
}

/* Switch to top bar when zoom reaches around 155% on desktop */
@media (min-zoom: 2.00) {
    .mobile-nav {
        display: block;
        /* Sticky positioning */
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
    }
    
    /* Completely remove sidebar from layout */
    .sidebar {
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Reset container layout to center content */
    .container {
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 1200px !important;
    }
    
    /* Center main content completely */
    .main-content {
        margin: 0 auto !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 1000px !important;
        text-align: center !important;
        float: none !important;
        display: block !important;
    }
    
    /* Center all content elements */
    .main-content > * {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
}

/* Alternative zoom detection for browsers that support it */
@media (min-resolution: 2.00dppx) {
    .mobile-nav {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
    }
    
    /* Completely remove sidebar from layout */
    .sidebar {
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Reset container layout to center content */
    .container {
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 1200px !important;
    }
    
    /* Center main content completely */
    .main-content {
        margin: 0 auto !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 1000px !important;
        text-align: center !important;
        float: none !important;
        display: block !important;
    }
    
    /* Center all content elements */
    .main-content > * {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
}

.mobile-nav-content {
    padding: 15px 20px;
    max-width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    /* Simple, clean styling */
    box-shadow: none;
}

.mobile-nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 10px;
    margin: 0;
    /* Ensure proper centering on mobile */
    width: 100%;
    text-align: center;
}

.mobile-nav-links li {
    flex-shrink: 0;
}

.mobile-nav-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #007bff;
    font-weight: 500;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.mobile-nav-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Ensure proper viewport handling */
html {
    scroll-behavior: smooth;
    /* Improve mobile scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 80px; /* Account for sticky mobile nav */
}

/* Simple body styles */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    /* Mobile viewport fixes */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    /* Ensure sticky positioning works on mobile */
    position: relative;
}



/* Simple mobile navigation adjustments */
@media (max-width: 480px) {
    .mobile-nav-content {
        padding: 12px 15px;
    }
    
    .mobile-nav-links {
        gap: 6px;
    }
    
    .mobile-nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Ensure mobile navigation works on all screen sizes when zoomed */
@media (max-zoom: 0.7) {
    .mobile-nav {
        display: block;
        /* Sticky positioning */
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
    }
    
    .main-content {
        margin-top: 0;
    }
}

/* Critical mobile fix - force sticky positioning on all mobile devices */
@media (max-width: 768px) {
    .mobile-nav {
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        /* Ensure proper sticky behavior */
        z-index: 1000;
        /* Mobile sticky fixes */
        -webkit-transform: none;
        -webkit-top: 0;
        -webkit-left: 0;
        -webkit-right: 0;
        -webkit-width: 100%;
        /* Additional mobile sticky support */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Force mobile browsers to respect sticky */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }
    
    /* Ensure parent container supports sticky */
    .container {
        position: relative;
        overflow: visible;
    }
}

/* Mobile-specific fixes for iOS and Android */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-nav {
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        /* Ensure proper sticky behavior */
        z-index: 1000;
    }
    
    .mobile-nav-content {
        /* Ensure proper mobile layout */
        width: 100%;
        text-align: center;
    }
    
    .mobile-nav-links {
        /* Force center alignment on mobile */
        justify-content: center !important;
        text-align: center;
        width: 100%;
    }
}




/* Force horizontal layout for zoom scenarios */


body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background-color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    justify-content: center;
}

/* Sidebar Navigation */
.sidebar {
    width: 320px;
    background: #f2f3f7;
    position: fixed;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    z-index: 1000;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    transform-origin: top left;
}



.nav-content {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #2d3748;
    transition: all 0.3s ease;
}



.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-section .profile-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}



.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
    color: #2d3748;
    margin: 0;
    transition: opacity 0.3s ease;
}



/* Logo styling when in profile section */
.profile-section .sidebar-logo {
    max-width: 180px;
    height: auto;
    margin: 15px auto 0;
    display: block;
    transition: opacity 0.3s ease;
}



.nav-links {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-links li {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 300;
    text-align: center;
}



.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
    transform: translateX(5px);
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.social-links a {
    color: #4a5568;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3b82f6;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.copyright p {
    font-size: 0.8rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
    font-weight: 200;
    transition: opacity 0.3s ease;
}



/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    max-width: 1000px;
    margin-left: 320px;
    margin-right: auto;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Section Styles */
.section {
    display: block;
    padding: 80px 0;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
}

.section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 30px;
    color: #2d3748;
    position: relative;
}



/* Home Section */
.home-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
    min-height: 70vh;
    width: 100%;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2d3748;
}

.highlight {
    color: #3b82f6;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 20px;
    font-weight: 200;
}

.hero-description {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 24px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #2d3748;
    cursor: pointer;
    font-size: 1rem;
    background: transparent;
    color: #2d3748;
}

/* CTA buttons that should be the same size */
.cta-buttons .btn {
    min-width: 160px;
    width: 160px;
}

.btn-primary {
    background: transparent;
    color: #2d3748;
    border: 2px solid #2d3748;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(45, 55, 72, 0.05);
}

.btn-secondary {
    background: transparent;
    color: #2d3748;
    border: 2px solid #2d3748;
}

.btn-secondary:hover {
    background: rgba(45, 55, 72, 0.05);
    color: #2d3748;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-bg-image {
    max-width: 130%;
    height: auto;
    border-radius: 20px;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 300;
}

/* CV Section */
.cv-content {
    max-width: 1200px;
}

.experience-education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.skills {
    margin-bottom: 50px;
}

.skills h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 200;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.skill-category {
    width: 100%;
    max-width: 600px;
}

.skill-category h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4a5568;
    font-weight: 200;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: #f7fafc;
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 200;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.experience,
.education {
    margin-bottom: 0;
}

.experience h3,
.education h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 200;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3b82f6;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8.0px; /* Center the circle on the line (14px width / 2 = 7px) */
    top: 0px; /* Center vertically with the content */
    width: 14px;
    height: 14px;
    background: transparent; /* Make it hollow */
    border-radius: 50%;
    border: 2px solid #3b82f6; /* Hollow circle with blue border */
    box-shadow: none; /* Remove the shadow */
}

.timeline-date {
    font-weight: 200;
    color: #3b82f6;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.timeline-content h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 200;
    margin-bottom: 5px;
    color: #2d3748;
}

.company,
.institution {
    color: #718096;
    margin-bottom: 10px;
    font-weight: 300;
}

.year {
    color: #a0aec0;
    font-size: 0.9rem;
}

.download-cv {
    text-align: center;
    margin-top: 40px;
}

/* Portfolio Section */
.portfolio-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Enhanced Portfolio Filtering */
.portfolio-filter {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 12px 20px;
    margin: 0 8px 8px 0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.portfolio-filter:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.portfolio-filter.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.portfolio-filter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Portfolio Results Info */
.portfolio-results-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-results-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Enhanced Portfolio Items */
.portfolio-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f3f4;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.portfolio-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.portfolio-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item-image {
    flex: 0 0 300px;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
    gap: 15px;
}

.portfolio-placeholder i {
    font-size: 3rem;
    opacity: 0.8;
}

.portfolio-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.portfolio-item-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-item-content h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 200;
}

.portfolio-item-content p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 300;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.project-links {
    margin-top: auto;
}

/* Video support for portfolio items */
.portfolio-img[src$=".mp4"],
.portfolio-img[src$=".mkv"],
.portfolio-img[src$=".avi"] {
    object-fit: contain;
    background: #000;
}

/* Loading States */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 8px;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: #007bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Mobile Navigation */
.mobile-nav {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav-link {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 12px 20px;
    margin: 0 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link:active {
    cursor: grabbing;
    transform: translateY(0) scale(0.98);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Enhanced Portfolio Images */
.portfolio-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    background: #f8f9fa;
}

.portfolio-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Project Links */
.project-link {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-link:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    color: white;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(0) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Enhanced Tech Tags */
.tech-tag {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Enhanced Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 2px;
}

/* Enhanced Portfolio Navigation */
.portfolio-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 8px;
}

/* Contact Section Styles */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.contact-unified-box {
    background: white;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-info-inline {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item-stacked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-item-stacked i {
    font-size: 1.1rem;
    color: #007bff;
}

.contact-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

.contact-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-info {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.2rem;
    color: #007bff;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 500;
}

.contact-item p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.availability-status {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    font-weight: 500;
    color: #155724;
    font-size: 0.9rem;
}

.response-time {
    margin: 0;
    color: #155724;
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 2rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
        max-width: calc(100vw - 280px);
        padding: 30px;
    }
    
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .about-content {
        text-align: center;
    }
    
    .skills-grid {
        gap: 20px;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .contact-unified-box {
        padding: 3rem;
        margin: 0 1rem;
    }
    
    .experience-education-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        display: none; /* Hide sidebar on mobile */
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0; /* Remove top margin since sidebar is hidden */
        max-width: 100%;
        padding: 20px;
        align-items: center;
    }
    
    .hero-title {
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        font-size: 2.5rem;
    }
    
    .section-title {
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        font-size: 2rem;
    }
    
    /* Portfolio responsive adjustments */
    .portfolio-nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portfolio-filter {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .portfolio-item {
        flex-direction: column;
        text-align: center;
    }
    
    .portfolio-item-image {
        width: 100%;
        height: 250px;
        margin-bottom: 15px;
    }
    
    .portfolio-item-content {
        padding: 15px;
    }
    
    .portfolio-item-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    /* Experience and education mobile adjustments */
    .experience-education-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline {
        margin-left: 20px;
    }
    
    .timeline-item {
        margin-bottom: 30px;
    }
    
    /* Skills mobile adjustments */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-tags {
        justify-content: center;
        flex-wrap: wrap;
    }
}
    
    .hero-title {
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        font-size: 2.5rem;
    }
    
    .section-title {
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        font-size: 2rem;
    }
    
    /* Portfolio responsive adjustments */
    .portfolio-nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portfolio-filter {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .portfolio-item {
        flex-direction: column;
        width: 100%;
    }
    
    .portfolio-item-image {
        flex: none;
        height: 220px;
        width: 100%;
    }
    
    .portfolio-item-content {
        padding: 20px;
        width: 100%;

    }
    
    .portfolio-item-content h3 {
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        font-size: 1.3rem;
    }
    
    /* CV section mobile adjustments */
    .experience-education-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline {
        margin-left: 20px;
    }
    
    .timeline-item {
        margin-bottom: 30px;
    }
    
    /* Skills mobile adjustments */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-tags {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        font-size: 2rem;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    /* Portfolio responsive for mobile */
    .portfolio-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .portfolio-filter {
        width: 100%;
        max-width: 200px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    /* Section adjustments for mobile */
    .section {
        padding: 50px 0;
    }
    
    .section-content {
        padding: 0 15px;
    }
    
    /* Home section mobile adjustments */
    .home-content {
        min-height: 50vh;
        gap: 25px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Project Page Styles */
.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
    text-decoration: none;
    font-weight: 300;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #3b82f6;
    transform: translateX(-5px);
}

.project-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #718096;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.project-hero-image {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-description p {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #718096;
    line-height: 1.6;
    font-weight: 300;
}

.technical-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.tech-section h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #718096;
    font-weight: 300;
    position: relative;
    padding-left: 1.5rem;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    text-align: center;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.gallery-caption {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    font-weight: 300;
}

.video-container {
    text-align: center;
    margin-bottom: 3rem;
}

.project-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-caption {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    margin-top: 1rem;
    font-weight: 300;
}

.research-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.impact-item {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.impact-item h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 1rem;
}

.impact-item p {
    color: #718096;
    line-height: 1.6;
    font-weight: 300;
}

.project-navigation {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Project Pages */
@media (max-width: 768px) {
    .project-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .technical-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .research-impact {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-navigation {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .feature-item,
    .impact-item {
        padding: 1.5rem;
    }
}




/* === OVERRIDES: make the image area taller === */
.portfolio-item-image {
  flex: 0 0 420px;   /* was 300px */
  height: 420px;     /* was 320px */
}

.portfolio-img {
  height: 100%;      /* fill the wrapper height */
  object-fit: cover; /* keep it nicely cropped */
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .portfolio-item-image { flex-basis: 300px; height: 300px; }
}
@media (max-width: 480px) {
  .portfolio-item-image { flex-basis: 240px; height: 240px; }
}



/* CV: left-align Employment & Education */
#cv .cv-content { 
  text-align: left;                   /* override section-content center */
}

#cv .experience h3,
#cv .education h3 {
  text-align: left;                   /* headings were centered */
}

/* Make grid items themselves start at the left edge */
#cv .experience-education-grid {
  justify-items: start;               /* for CSS Grid */
  align-items: start;
}

/* Ensure all timeline bits don’t re-center somewhere else */
#cv .timeline,
#cv .timeline-item,
#cv .timeline-content,
#cv .timeline-date,
#cv .company,
#cv .institution {
  text-align: left;
}


/*Centering the button */
/* If you have the wrapper <div class="download-cv"> … */
.download-cv {
  display: flex;
  justify-content: center;
}


#cv .cv-content { text-align: center; }         /* centers the link */


/*added to make the card not look like a blue link*/


/* Make link-cards look like your existing cards */
.portfolio-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.portfolio-item:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 4px;
}



/*Get in touch section*/

/* Contact: minimalist layout & spacing */
#contact.section { padding: 48px 0; } /* a bit tighter than your default */

#contact .section-content { max-width: 760px; }

/* 2-column with a hairline separator; stacks on mobile */
#contact .contact-unified-box {
  display: grid;
  grid-template-columns: 1fr minmax(0,1px) 1fr;
  gap: 20px;
  align-items: start;
}

#contact .contact-separator {
  width: 1px;
  background: #e9ecef;
  min-height: 100%;
}

@media (max-width: 768px) {
  #contact .contact-unified-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #contact .contact-separator { display: none; }
}

/* Compact contact items */
#contact .contact-info-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#contact .contact-item-stacked {
  display: flex;
  align-items: center;
  gap: 8px;
}
#contact .contact-item-stacked i {
  font-size: 18px;
  opacity: .7;
}

/* Subtle links */
#contact .contact-link {
  color: #2d3748;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
#contact .contact-link:hover { border-color: #cbd5e1; }

/* Compact form */
#contact .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
#contact label {
  font-size: .85rem;
  color: #6b7280;
  font-weight: 300;
}
#contact input, 
#contact textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  outline: none;
}
#contact input:focus, 
#contact textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.12);
}

/* Tighter button */
#contact .btn.btn-primary {
  padding: 10px 16px;
  border-radius: 12px;
  gap: 8px;
}
#contact .btn.btn-primary i { margin-right: 6px; }

/* Make the left contact column fill the grid cell */
#contact .contact-unified-box { 
  align-items: stretch;              /* let columns stretch to same height */
}

/* Center the two lines horizontally + vertically */
#contact .contact-info-inline {
  display: flex;
  flex-direction: column;
  justify-content: center;           /* vertical center */
  align-items: center;               /* horizontal center */
  height: 100%;                      /* fill the column height */
  text-align: center;                /* center the text itself */
  gap: 8px;                          /* tight spacing between the two rows */
}

#contact .contact-item-stacked {
  display: flex;
  align-items: center;
  gap: 8px;                          /* space between icon and text */
}



/* Kills right-click/drag directly on images */
img {
  pointer-events: none;
  -webkit-user-drag: none;
}


.profile-image {
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  background: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

.profile-placeholder {
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  background: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  
  font-size: 0.9rem;
  color: #000;
  margin-top: 2rem;
}