/* Modern Section Restructuring - Compact & Professional */

/* =============================================
   GLOBAL SECTION IMPROVEMENTS & OVERLAP FIXES
   ============================================= */

section {
    position: relative !important;
    overflow: hidden;
    padding: 2rem 0 !important; /* Much more compact padding */
    margin: 50px 0 !important; /* Uplift all sections with 50px margin */
    clear: both; /* Clear any floats */
    z-index: 1; /* Ensure proper stacking */
    display: block; /* Ensure block display */
    width: 100%; /* Full width */
}

/* Prevent section overlaps with stronger specificity */
section + section {
    margin-top: 0 !important;
    border-top: 1px solid transparent; /* Invisible separator */
}

/* Specific section spacing fixes */
#about {
    margin-top: -30px !important; /* Move About section up */
    margin-bottom: 0 !important;
}

/* Move the divider before About section up */
#about + .section-divider,
.section-divider + #about {
    margin-top: -20px !important;
}

/* Target the specific divider before About section */
section + .section-divider {
    margin-top: -20px !important;
    margin-bottom: -10px !important;
}

#experience {
    margin-top: 50px !important; /* Uplift with 50px margin */
    margin-bottom: 50px !important;
    isolation: isolate; /* Create new stacking context */
}

/* Modern Experience Timeline Styles */
#experience-items {
    position: relative;
    min-height: 400px;
    padding: 1rem 0;
}

/* Enhanced timeline styling for the container */
#experience-items > div {
    position: relative;
}

/* Enhanced shimmer effect for the main timeline line */
#experience-items > div > .timeline-center-line {
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--primary-color), 
        var(--secondary-color));
    background-size: 200% 100%;
    animation: shimmer 8s infinite linear;
}

/* Add background highlight for timeline area */
#experience-items:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 10%;
    background: radial-gradient(ellipse at center, rgba(131, 56, 236, 0.08) 0%, rgba(131, 56, 236, 0) 70%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

/* Add special styling for the decorative dots */
#experience-items > div > div[class*="w-2"] {
    animation: glow 3s infinite alternate ease-in-out;
}

#experience-items > div > div[class*="w-1.5"] {
    animation: glow 4s infinite alternate-reverse ease-in-out;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 2px var(--primary-color);
    }
    100% {
        box-shadow: 0 0 6px var(--primary-color);
    }
}

/* Enhance connectors with transition effects */
#experience-items [data-year] .timeline-connector {
    transition: width 0.3s ease-out, opacity 0.3s ease-out;
}

#experience-items [data-year]:hover .timeline-connector {
    width: 4rem !important;
    opacity: 1;
}

/* Make the timeline responsive */
@media (max-width: 1023px) {
    /* Create a central timeline for mobile view with improved styling */
    #experience-items > div {
        position: relative;
        padding-left: 1rem;
    }
    
    #experience-items > div::before {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), var(--primary-color));
        box-shadow: 0 0 8px rgba(58, 134, 255, 0.3);
        z-index: 1;
        border-radius: 3px;
    }
    
    /* Add decorative dashes to mobile timeline */
    #experience-items > div::after {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 0;
        bottom: 0;
        width: 1px;
        background-image: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.5) 60%, transparent 60%, transparent 100%);
        background-size: 1px 20px;
        z-index: 2;
        transform: translateX(1px);
    }
    
    /* Year labels for mobile */
    #experience-items [data-year] {
        padding-left: 3.5rem;
        margin-bottom: 3rem;
        position: relative;
    }
    
    /* Timeline dots */
    #experience-items [data-year]::before {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 1.5rem;
        width: 1rem;
        height: 1rem;
        background: white;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        transform: translateX(-0.5rem);
        z-index: 2;
        box-shadow: 0 0 8px rgba(58, 134, 255, 0.5);
    }
    
    /* Inner dot */
    #experience-items [data-year]::after {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 1.5rem;
        width: 0.5rem;
        height: 0.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 50%;
        transform: translate(-0.25rem, 0.25rem);
        z-index: 3;
    }
    
    /* Add decorative dash marks along the timeline */
    #experience-items > div > div:nth-child(odd)::before {
        content: '';
        position: absolute;
        left: 0.5rem;
        top: 3rem;
        width: 0.5rem;
        height: 0.5rem;
        background: var(--accent-color);
        border-radius: 50%;
        z-index: 2;
    }
}

/* Timeline item transition animations */
#experience-items [data-year] {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom animations for timeline elements */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(58, 134, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(58, 134, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(58, 134, 255, 0.3);
    }
}

/* Add a pulse animation for dots */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* Add refined pulse animation for timeline connectors */
#experience-items [data-year] .timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px var(--primary-color);
    animation: connectorPulse 2s infinite ease-in-out;
}

@keyframes connectorPulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 2px var(--primary-color);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 8px var(--primary-color);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 2px var(--primary-color);
    }
}

/* Add a shimmer effect for timeline lines */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

#experience-items [data-year] {
    animation: floatIn 0.8s ease-out forwards;
    animation-delay: calc(var(--order) * 0.15s);
}

#experience-items [data-year]:nth-child(1) {
    --order: 1;
}

#experience-items [data-year]:nth-child(2) {
    --order: 2;
}

#experience-items [data-year]:nth-child(3) {
    --order: 3;
}

#experience-items [data-year]:nth-child(4) {
    --order: 4;
}

#experience-items [data-year]:nth-child(5) {
    --order: 5;
}

/* Connector animations */
#experience-items [data-year] .group {
    position: relative;
    overflow: hidden;
}

#experience-items [data-year] .group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
    transform: translateX(-100%);
    transition: transform 1s ease;
}

#experience-items [data-year] .group:hover::after {
    transform: translateX(100%);
}

/* Interactive elements hover effects */
#experience-items .group:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#expertise {
    margin-top: 50px !important; /* Uplift with 50px margin */
    margin-bottom: 50px !important;
    isolation: isolate; /* Create new stacking context */
}

#testimonials {
    margin-top: 50px !important; /* Uplift with 50px margin */
    margin-bottom: 50px !important;
    isolation: isolate; /* Create new stacking context */
}

/* Container fixes to prevent overflow */
.experience-container,
.expertise-container,
.testimonials-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced from 3rem */
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(131, 56, 236, 0.1));
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3A86FF;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 800;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    background: linear-gradient(135deg, #3A86FF, #8338EC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1rem; /* Reduced from 1.125rem */
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 1rem; /* Reduced from 2rem */
    line-height: 1.5; /* Tightened line height */
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3A86FF, #8338EC);
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.section-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

/* =============================================
   WORK EXPERIENCE SECTION - MODERN TIMELINE
   ============================================= */

#experience {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    padding: 2rem 0 !important; /* Reduced padding */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Visible separator */
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.experience-timeline {
    position: relative;
    padding: 1rem 0; /* Reduced from 2rem */
}

/* Two-column layout for experience content */
.experience-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* Right sidebar for statistics */
.experience-stats-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05), rgba(131, 56, 236, 0.05));
    border-radius: 1rem;
    border: 1px solid rgba(58, 134, 255, 0.1);
}

.experience-stats-sidebar .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid rgba(58, 134, 255, 0.1);
    transition: all 0.3s ease;
}

.experience-stats-sidebar .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.15);
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .experience-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-stats-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .experience-stats-sidebar {
        grid-template-columns: 1fr;
    }
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    /* Height calculated to end after 3rd dot: 
       3 items × (3rem padding + 2rem margin) + 2rem for 3rd dot position = 17rem */
    height: 17rem;
    width: 3px;
    background: linear-gradient(180deg, #3A86FF, #8338EC);
    border-radius: 2px;
}

/* Remove the overlay approach - using calculated height instead */

.experience-item {
    position: relative;
    padding: 1.5rem 0 1.5rem 5rem;
    margin-bottom: 2rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #3A86FF, #8338EC);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(58, 134, 255, 0.1);
}

.experience-card {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(58, 134, 255, 0.1);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(58, 134, 255, 0.3);
}

.experience-period {
    display: inline-block;
    background: linear-gradient(135deg, #3A86FF, #8338EC);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.125rem;
    color: #3A86FF;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-description {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4B5563;
}

.experience-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* Old experience stats - replaced with sidebar approach
.experience-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
*/

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05), rgba(131, 56, 236, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(58, 134, 255, 0.1);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #3A86FF;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* =============================================
   MY EXPERTISE SECTION - COMPACT GRID
   ============================================= */

#expertise {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 2rem 0 !important; /* Reduced from 4rem */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Visible separator */
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem; /* Already optimal */
    margin-top: 1.5rem; /* Reduced from 2rem */
}

.expertise-card {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 1rem;
    border: 1px solid rgba(58, 134, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3A86FF, #8338EC);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(58, 134, 255, 0.3);
}

.expertise-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3A86FF, #8338EC);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.expertise-description {
    color: #6B7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =============================================
   TESTIMONIALS SECTION - MODERN CARDS
   ============================================= */

#testimonials {
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
    padding: 2rem 0 !important; /* Reduced from 4rem */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Visible separator */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem; /* Reduced from 2rem */
}

.testimonial-card {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(58, 134, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 4rem;
    color: #3A86FF;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A86FF, #8338EC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.author-info h4 {
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.author-info p {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.star {
    color: #FBBF24;
    font-size: 1rem;
}

/* =============================================
   EDUCATION SECTION - TIMELINE STYLE
   ============================================= */

#education {
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF2FF 100%);
    padding: 2rem 0 !important; /* Match other modern sections */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Visible separator */
}

/* Education section enhanced alignment */
#education {
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF2FF 100%);
    padding: 2rem 0 !important; /* Match other modern sections */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Visible separator */
}

/* Force proper grid layout on desktop */
@media (min-width: 769px) {
    .education-content-wrapper {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 2rem !important;
    }
}

/* Education container with proper layout */
.education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Two-column layout for education content - more compact */
.education-content-wrapper {
    display: grid !important;
    grid-template-columns: 280px 1fr !important; /* Reduced from 300px for more compact */
    gap: 2rem !important; /* Reduced from 3rem for more compact */
    align-items: start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Ensure image sidebar stays first in grid */
.education-image-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

/* Ensure timeline stays second in grid */
.education-timeline {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* Left sidebar for image - more compact */
.education-image-sidebar {
    position: sticky;
    top: 2rem;
    padding: 1.5rem; /* Reduced from 2rem for more compact */
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(58, 134, 255, 0.1);
}

.education-image-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem; /* Reduced from 1.5rem for more compact */
}

/* Specific styling for education image */
.education-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
    object-fit: cover !important;
}

/* Responsive design for education section - adjusted breakpoint */
@media (max-width: 768px) { /* Changed from 1024px to 768px */
    .education-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* More compact on mobile */
    }
    
    .education-image-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr; /* Smaller image on mobile */
        gap: 1rem;
        align-items: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) { /* More specific mobile breakpoint */
    .education-image-sidebar {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.education-timeline {
    position: relative;
    padding: 1rem 0; /* Reduced padding */
    min-height: 300px; /* Ensure timeline has content space */
}

/* Debug styles to ensure layout works */
.education-content-wrapper {
    width: 100%;
    display: grid;
}

.education-image-sidebar {
    min-width: 0;
    max-width: 280px;
}

.education-timeline {
    flex: 1;
    min-width: 0; /* Allow grid item to shrink */
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #10B981, #3A86FF);
    border-radius: 2px;
}

.education-item {
    position: relative;
    padding: 1.5rem 0 1.5rem 5rem;
    margin-bottom: 2rem;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #10B981, #3A86FF);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(16, 185, 129, 0.1);
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.education-year {
    display: inline-block;
    background: linear-gradient(135deg, #10B981, #3A86FF);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.education-institution {
    font-size: 1.125rem;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-details {
    color: #6B7280;
    line-height: 1.6;
}

.education-honors {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10B981;
    border-radius: 0 0.5rem 0.5rem 0;
}

.education-honors strong {
    color: #10B981;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    section {
        padding: 3rem 0 !important;
        margin: 20px 0 !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .experience-timeline::before,
    .education-timeline::before {
        left: 1rem;
    }
    
    .experience-item,
    .education-item {
        padding-left: 3rem;
    }
    
    .experience-item::before,
    .education-item::before {
        left: 0.5rem;
    }
    
    .expertise-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .experience-card,
    .education-card,
    .expertise-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .experience-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   DARK MODE SUPPORT
   ============================================= */

@media (prefers-color-scheme: dark) {
    .dark #experience,
    .dark #education {
        background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    }
    
    .dark #expertise,
    .dark #testimonials {
        background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    }
    
    .dark .section-title {
        color: white;
    }
    
    .dark .section-description {
        color: #D1D5DB;
    }
    
    .dark .experience-card,
    .dark .education-card,
    .dark .expertise-card,
    .dark .testimonial-card {
        background: #374151;
        border-color: rgba(58, 134, 255, 0.2);
    }
    
    .dark .experience-title,
    .dark .education-degree,
    .dark .expertise-title {
        color: white;
    }
    
    .dark .experience-description,
    .dark .education-details,
    .dark .expertise-description,
    .dark .testimonial-content {
        color: #D1D5DB;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }

/* Intersection Observer Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   MODERN FOOTER STYLES
   ============================================= */

.modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3A86FF 0%, #FFBE0B 50%, #8338EC 100%);
}

.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Main Footer Content */
.footer-main {
    padding: 80px 0 60px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 300px 280px 320px;
    gap: 60px;
    align-items: start;
}

/* Brand Section */
.footer-brand {
    padding-right: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A86FF 0%, #FFBE0B 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.3);
}

.logo-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #FFBE0B 0%, #3A86FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.brand-mission {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 32px;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(58, 134, 255, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3A86FF 0%, #8338EC 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 14px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.contact-value:hover {
    color: #FFBE0B;
}

/* Navigation Section */
.footer-nav {
    padding-left: 20px;
}

.nav-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3A86FF 0%, #FFBE0B 100%);
    border-radius: 2px;
}

.nav-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 12px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-list a i {
    width: 16px;
    font-size: 14px;
    color: #64748b;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #FFBE0B;
    padding-left: 12px;
}

.nav-list a:hover i {
    color: #3A86FF;
}

/* Services Section */
.footer-services {
    padding-left: 20px;
}

.services-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #8338EC 0%, #FFBE0B 100%);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(131, 56, 236, 0.3);
    transform: translateX(8px);
}

.service-item i {
    font-size: 16px;
    color: #8338EC;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: #FFBE0B;
}

.service-item span {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Connect Section */
.footer-connect {
    padding-left: 20px;
}

.connect-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.connect-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FFBE0B 0%, #3A86FF 100%);
    border-radius: 2px;
}

.connect-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Modern Newsletter */
.newsletter-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.newsletter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-header i {
    font-size: 20px;
    color: #FFBE0B;
}

.newsletter-header span {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: white;
    font-size: 14px;
    outline: none;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.subscribe-btn {
    background: linear-gradient(135deg, #3A86FF 0%, #8338EC 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #FFBE0B 0%, #3A86FF 100%);
    transform: scale(1.05);
}

/* Social Media */
.social-modern h5 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link.facebook { color: #1877f2; }
.social-link.twitter { color: #1da1f2; }
.social-link.instagram { color: #e4405f; }
.social-link.linkedin { color: #0a66c2; }
.social-link.youtube { color: #ff0000; }

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover::before { background: #1877f2; }
.social-link.twitter:hover::before { background: #1da1f2; }
.social-link.instagram:hover::before { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-link.linkedin:hover::before { background: #0a66c2; }
.social-link.youtube:hover::before { background: #ff0000; }

.social-link:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    position: relative;
    z-index: 2;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.bottom-left {
    flex: 1;
}

.credentials {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.credential-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-badge i {
    color: #FFBE0B;
    font-size: 14px;
}

.bottom-center {
    flex: 1;
    text-align: center;
}

.copyright {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.bottom-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.legal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3A86FF;
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: #3A86FF;
}

.legal-links a:hover::after {
    width: 100%;
}

/* Responsive Modern Footer */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 280px 260px;
        gap: 40px;
    }
    
    .footer-connect {
        grid-column: span 2;
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        padding: 60px 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-services {
        order: 3;
    }
    
    .footer-connect {
        order: 4;
        grid-column: span 2;
        margin-top: 20px;
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .bottom-right {
        justify-content: center;
    }
    
    .credentials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        margin-top: 80px;
    }
    
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand,
    .footer-nav,
    .footer-services,
    .footer-connect {
        padding-left: 0;
        text-align: center;
    }
    
    .brand-logo {
        justify-content: center;
    }
    
    .nav-title::after,
    .services-title::after,
    .connect-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-cards {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-modern {
        max-width: 350px;
        margin: 0 auto 32px;
    }
    
    .legal-links {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .logo-text h3 {
        font-size: 24px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .input-group input {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .subscribe-btn {
        border-radius: 0 0 12px 12px;
        min-width: auto;
        padding: 14px;
    }
    
    .credentials {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* Dark mode adjustments */
.dark .modern-footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.dark .footer-bottom {
    background: rgba(0, 0, 0, 0.5);
}

/* =============================================
   MODERN HORIZONTAL NAVIGATION STYLES
   ============================================= */

/* Navigation Container */
#desktop-nav-links {
    flex: 1;
    max-width: none;
    overflow: visible;
}

/* Minimize gap between navigation and content */
header, nav {
    margin-bottom: 0 !important;
}

.hero, main, section {
    margin-top: 0 !important;
}

/* Ensure fixed header accounts for proper spacing */
body {
    scroll-padding-top: 112px; /* Account for fixed header height */
}

/* Remove any default margins that could create gaps */
* {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Desktop Navigation */
.modern-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.modern-nav-item {
    position: relative;
}

.modern-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 0 2px;
    flex-shrink: 0;
}

.modern-nav-link i {
    font-size: 14px;
    color: #3A86FF;
    transition: all 0.3s ease;
    min-width: 14px;
}

.modern-nav-link:hover {
    color: #FFBE0B;
    background: rgba(58, 134, 255, 0.1);
    border-color: rgba(58, 134, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.15);
}

.modern-nav-link:hover i {
    color: #FFBE0B;
    transform: scale(1.1);
}

.modern-nav-link.active {
    color: white;
    background: linear-gradient(135deg, #3A86FF 0%, #8338EC 100%);
    border-color: #3A86FF;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.modern-nav-link.active i {
    color: white;
}

/* Mobile Navigation */
.modern-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
}

.modern-nav-mobile .modern-nav-link {
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.modern-nav-mobile .modern-nav-link:hover {
    background: rgba(58, 134, 255, 0.1);
    transform: translateX(8px);
}

/* Responsive Navigation */
@media (max-width: 1200px) {
    .modern-nav-list {
        gap: 0;
    }
    
    .modern-nav-link {
        padding: 8px 10px;
        font-size: 12px;
        margin: 0 1px;
    }
}

@media (max-width: 992px) {
    .modern-nav-list {
        gap: 0;
        justify-content: center;
    }
    
    .modern-nav-link {
        padding: 6px 8px;
        font-size: 11px;
        margin: 0 1px;
        gap: 4px;
    }
    
    .modern-nav-link i {
        font-size: 12px;
        min-width: 12px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .modern-nav-link span {
        display: none;
    }
    
    .modern-nav-link {
        padding: 10px 12px;
        gap: 0;
        min-width: 40px;
        justify-content: center;
    }
    
    .modern-nav-link i {
        font-size: 16px;
        margin: 0;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .modern-nav-list {
        display: none; /* Hide on mobile, use mobile menu instead */
    }
}

/* Dark mode navigation */
.dark .modern-nav-link {
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .modern-nav-link:hover {
    color: #FFBE0B;
    background: rgba(58, 134, 255, 0.15);
    border-color: rgba(58, 134, 255, 0.3);
}

.dark .modern-nav-mobile .modern-nav-link {
    background: rgba(0, 0, 0, 0.1);
}

.dark .modern-nav-mobile .modern-nav-link:hover {
    background: rgba(58, 134, 255, 0.2);
}
