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

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body.light .splash-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-content {
    text-align: center;
    animation: splashFadeIn 1.5s ease-out;
}

.splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.splash-logo-dark {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.splash-logo-light {
    opacity: 1;
}

body.light .splash-logo-dark {
    opacity: 1;
}

body.light .splash-logo-light {
    opacity: 0;
}

.splash-text {
    margin-bottom: 3rem;
    animation: textSlideUp 1s ease-out 0.5s both;
}

.splash-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light .splash-name {
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #334155);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.light .splash-title {
    color: #64748b;
}



.main-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, visibility 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    overflow-x: hidden;
    padding-top: 4rem;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.main-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll Animation States */
.splash-screen.scroll-triggered {
    position: fixed;
    z-index: 10000;
    background: transparent;
    pointer-events: none;
}

.splash-logo.animate-to-header {
    position: fixed;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    z-index: 10001;
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
    will-change: transform, width, height, top, left;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.splash-text.animate-to-header {
    position: fixed;
    margin: 0;
    z-index: 10001;
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
    will-change: transform, top, left, font-size;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.splash-name.animate-to-header {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: font-size, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.splash-title.animate-to-header {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: font-size, opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.navbar.hide-original-brand {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.navbar.show-original-brand {
    opacity: 1;
    transition: opacity 0.4s ease-out 1.0s;
}

/* Ensure smooth background transition */
.splash-screen.scroll-triggered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Splash Screen Animations */
@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive Splash Screen */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    .splash-logo {
        width: 110px;
        height: 110px;
    }
    
    .splash-name {
        font-size: 2.25rem;
    }
    
    .splash-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .splash-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .splash-name {
        font-size: 2rem;
    }
    
    .splash-title {
        font-size: 1rem;
    }
    
    /* Mobile scroll animation adjustments */
    .splash-logo.animate-to-header {
        width: 2rem;
        height: 2rem;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .splash-text.animate-to-header {
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .splash-name.animate-to-header {
        font-size: 0.75rem;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .splash-title.animate-to-header {
        font-size: 0.625rem;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    /* Mobile main content transition */
    .main-content {
        transform: translateY(15px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    }
    
    .splash-screen.fade-out {
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 1.25rem;
    }
    
    .splash-name {
        font-size: 1.75rem;
    }
    
    .splash-title {
        font-size: 0.875rem;
    }
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #161616;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Lock background scroll when modal is open */
body.no-scroll,
html.no-scroll {
    overflow: hidden;
    /* Prevent layout shift from scrollbar disappearing */
    padding-right: var(--scrollbar-width, 0);
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Light theme */
body.light {
    color: #1e293b;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    width: 100%;
    backdrop-filter: blur(12px);
    background-color: rgba(22, 22, 22, 0.95);
    border-bottom: 1px solid #334155;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: #e2e8f0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    height: 2.25rem;
    width: 2.25rem;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-dark {
    opacity: 0;
}

.logo-light {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

body.light .logo-dark {
    opacity: 1;
}

body.light .logo-light {
    opacity: 0;
}

.brand-text {
    line-height: 1.2;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.brand-title {
    font-size: 0.75rem;
    opacity: 0.7;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

body.light .nav-link:hover {
    background-color: rgba(15, 23, 42, 0.1);
}

.nav-separator {
    width: 1px;
    height: 1.5rem;
    background-color: #334155;
    margin: 0 0.25rem;
}

body.light .nav-separator {
    background-color: #e2e8f0;
}

.theme-toggle {
    padding: 0.5rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

body.light .theme-toggle {
    border-color: #e2e8f0;
}

body.light .theme-toggle:hover {
    background-color: rgba(15, 23, 42, 0.1);
}

.sun-icon {
    display: none;
}

body.light .sun-icon {
    display: block;
}

body.light .moon-icon {
    display: none;
}

.nav-mobile {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-toggle {
    padding: 0.5rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light .mobile-menu-toggle {
    border-color: #e2e8f0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    left: auto;
    width: 18rem;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    background-color: #161616;
    border-left: 1px solid #334155;
    transition: right 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 101; /* Higher than navbar to ensure it's on top */
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent the menu itself from scrolling */
    /* Ensure menu stays fixed during scroll */
    transform: translateZ(0);
    will-change: right;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

body.light .mobile-menu {
    background-color: #f8fafc;
    border-left-color: #e2e8f0;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1.5rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #334155;
}

body.light .mobile-menu-header {
    border-bottom-color: #e2e8f0;
}

.mobile-menu-close {
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

body.light .mobile-menu-close:hover {
    background-color: rgba(15, 23, 42, 0.1);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    flex: 1;
    overflow-y: auto; /* Allow scrolling only within the content area if needed */
    overflow-x: hidden;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    width: auto;
    display: inline-block;
}

.mobile-nav-link:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

body.light .mobile-nav-link:hover {
    background-color: rgba(15, 23, 42, 0.1);
}

.mobile-menu-separator {
    height: 1px;
    background-color: #334155;
    margin: 0.5rem 0;
}

body.light .mobile-menu-separator {
    background-color: #e2e8f0;
}

.mobile-theme-toggle {
    width: auto;
    padding: 0.5rem;
    background-color: transparent;
    color: inherit;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.mobile-theme-toggle:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

body.light .mobile-theme-toggle {
    border-color: #e2e8f0;
}

body.light .mobile-theme-toggle:hover {
    background-color: rgba(15, 23, 42, 0.1);
}

.mobile-theme-toggle .sun-icon {
    display: none;
}

body.light .mobile-theme-toggle .sun-icon {
    display: block;
}

body.light .mobile-theme-toggle .moon-icon {
    display: none;
}

/* Sections */
section {
    padding: 3.5rem 0;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}


.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 0.875rem;
    color: #94a3b8;
}

body.light .section-description {
    color: #64748b;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 0 4rem 0;
}

/* Add top padding for responsive screens below 1240px */
@media (max-width: 1240px) {
    .hero {
        padding-top: 2.5rem;
    }
    
    .hero-grid {
        padding-top: 0; /* Remove top padding for tablet */
    }
    
    .hero-content {
        padding-top: 0; /* Remove top padding for tablet */
    }
    
    .hero-intro {
        margin-top: 0rem;
    }
}

/* Keep same top padding for screens above 1240px */
@media (min-width: 1241px) {
    .hero {
        padding-top: 2rem;
    }
}

/* Remove top padding from hero-content for screens 380px and above */
@media (min-width: 380px) {
    .hero-content {
        padding-top: 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start; /* Top align items on desktop/web */
    }
}

.hero-content {
    text-align: left;
}

/* Hero Intro Styles */
.hero-intro {
    margin-bottom: 2rem;
}

.intro-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #2563eb;
    font-weight: 400;
    display: block;
    margin-bottom: 0.5rem;
}

body.light .intro-text {
    color: #3b82f6;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 0.5rem;
}

body.light .hero-subtitle {
    color: #64748b;
}

/* Hero Description Styles */
.hero-description {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.description-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.description-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

body.light .description-text {
    color: #64748b;
}

/* Hero CTA Styles */
.hero-cta {
    margin-bottom: 3rem;
    text-align: left;
}


.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

body.light .hero-title {
    color: #1e293b;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .main-content {
        padding-top: 5rem;
    }
    
    .hero-grid {
        gap: 2rem;
        padding: 0 0 2rem 0; /* Remove top padding, keep bottom */
    }
    
    .hero-content {
        padding-top: 0; /* Remove top padding for mobile */
    }
    
    .hero-intro {
        margin-bottom: 1.5rem;
    }
    
    .intro-text {
        font-size: 0.875rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .description-text {
        font-size: 0.875rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .image-container {
        max-width: 300px;
        aspect-ratio: 3/4;
    }
    
    
    .bottom-lines {
        bottom: -15px;
    }
    
    .line-1 {
        width: 40px;
    }
    
    .line-2 {
        width: 60px;
    }
    
    .line-3 {
        width: 80px;
    }
}

/* Specific adjustments for 372px screens - 24px padding */
@media (max-width: 372px) {
    .hero {
        padding-top: 1.5rem; /* 24px from header to hero content */
    }
    
    .hero-content {
        padding-top: 0; /* Remove additional padding */
    }
    
    .hero-intro {
        margin-top: 0; /* Remove additional margin */
    }
    
    .hero-grid {
        padding: 0; /* Remove grid padding at this size */
    }
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 3rem;
    letter-spacing: 0.01em;
}

body.light .hero-subtitle {
    color: #64748b;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 4rem;
    }
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
}

.hero-cta .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Hero Image Styles */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

body.light .image-container {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) saturate(1.1);
    transition: all 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.1) 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        rgba(255, 0, 0, 0.1) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}


/* Bottom Lines */
.bottom-lines {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.line {
    height: 3px;
    border-radius: 2px;
    animation: slideIn 1s ease-out forwards;
}

.line-1 {
    width: 60px;
    background: #ec4899;
    animation-delay: 0.2s;
}

.line-2 {
    width: 80px;
    background: #fbbf24;
    animation-delay: 0.4s;
}

.line-3 {
    width: 100px;
    background: #2563eb;
    animation-delay: 0.6s;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Hover Effects */
.image-container:hover .hero-img {
    transform: scale(1.05);
    filter: contrast(1.2) saturate(1.2);
}

.image-container:hover .image-overlay {
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.15) 0%, 
        rgba(0, 255, 255, 0.15) 50%, 
        rgba(255, 0, 0, 0.15) 100%);
}


.badge {
    background-color: #161616;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light .badge {
    background-color: #f1f5f9;
    color: #1e293b;
}

.badge-secondary {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(51, 65, 85, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge-secondary:hover {
    background: rgba(51, 65, 85, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

body.light .badge-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.093);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.light .badge-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #334155;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
}

.btn-secondary:hover {
    background-color: #212121;
}

body.light .btn-secondary {
    background-color: #e2e8f0;
    color: #212121;
}

body.light .btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-outline-primary {
    border: 1px solid #2563eb;
    background-color: transparent;
    color: #2563eb;
    padding: 0.5rem 1rem;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    color: white;
}

body.light .btn-outline-primary {
    border-color: #3b82f6;
    color: #3b82f6;
}

body.light .btn-outline-primary:hover {
    background-color: #3b82f6;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* Skills Marquee Section */
.skills-marquee {
    overflow: hidden;
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #161616;
}

body.light .skills-marquee {
    background-color: #ffffff;
}

.marquee-container {
    width: 100%;
    height: 100%;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-banner {
    position: absolute;
    width: 100%;
    height: 50px;
    background: #2563eb;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.light .marquee-banner {
    background: #2563eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Top-left to bottom-right banner */
.banner-1 {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-5deg);
    transform-origin: center;
    z-index: 2;
}

/* Bottom-left to top-right banner */
.banner-2 {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(5deg);
    transform-origin: center;
    z-index: 1;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    width: max-content;
}

.track-1 {
    animation-direction: normal;
}

.track-2 {
    animation-direction: reverse;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0;
}

body.light .marquee-item {
    color: #ffffff;
}

.skill-icon {
    font-size: 0.875rem;
    filter: grayscale(0.3);
    flex-shrink: 0;
}

.skill-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    flex-shrink: 0;
}

.separator {
    font-size: 0.5rem;
    opacity: 0.7;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Marquee Animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-marquee {
        height: 180px;
    }
    
    .marquee-container {
        min-height: 180px;
    }
    
    .marquee-banner {
        height: 40px;
        width: 100%;
        padding: 0 1.5rem;
    }
    
    .banner-1 {
        transform: translateY(-50%) rotate(-8deg);
    }
    
    .banner-2 {
        transform: translateY(-50%) rotate(8deg);
    }
    
    .marquee-track {
        gap: 1.5rem;
    }
    
    .skill-icon {
        font-size: 0.75rem;
    }
    
    .skill-text {
        font-size: 0.5rem;
    }
    
    .separator {
        font-size: 0.375rem;
    }
}

@media (max-width: 480px) {
    .skills-marquee {
        height: 100px;
    }
    
    .marquee-container {
        min-height: 100px;
    }
    
    .marquee-banner {
        height: 40px;
        width: 100%;
        padding: 0 1rem;
    }
    
    .banner-1 {
        transform: translateY(-50%) rotate(-8deg);
    }
    
    .banner-2 {
        transform: translateY(-50%) rotate(8deg);
    }
    
    .marquee-track {
        gap: 1rem;
    }
    
    .skill-text {
        font-size: 0.375rem;
    }
    
    .separator {
        font-size: 0.25rem;
    }
}

/* Work Section */
.work-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Work Categories */
.work-category {
    margin-bottom: 4rem;
}

.work-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #272727;
}

body.light .category-header {
    border-bottom-color: #e2e8f0;
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

body.light .category-title {
    color: #1e293b;
}

.category-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-card.hidden {
    display: none;
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 1rem;
}

.view-more-link:hover {
    color: #3b82f6;
}

body.light .view-more-link {
    color: #3b82f6;
}

body.light .view-more-link:hover {
    color: #2563eb;
}

.view-more-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.view-more-link.expanded svg {
    transform: rotate(180deg);
}

.case-card {
    border: 1px solid #272727;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #161616;
}

body.light .case-card {
    background-color: white;
    border-color: #e2e8f0;
}

.case-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    background-color: #334155;
}

.case-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    
}

.case-content {
    padding: 1.5rem;
}

.case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-impact {
    list-style: disc;
    list-style-position: inside;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.case-impact li {
    margin-bottom: 0.25rem;
}

.case-study-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.case-study-btn:hover {
    background-color: #1d4ed8;
}

.case-study-btn svg {
    transition: transform 0.2s ease;
}

.case-study-btn:hover svg {
    transform: translate(0.125rem, -0.125rem);
}

/* About Section */
.about {
    background-color: #3341552c;
}

body.light .about {
    background-color: transparent;
}

.about-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

@media (max-width: 767px) {
    .about-header {
        /* Keep horizontal layout on mobile - enough space available */
        flex-wrap: wrap;
    }
}

.about-description {
    color: #94a3b8;
}

body.light .about-description {
    color: #64748b;
}

.skills-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-group {
    margin-bottom: 1rem;
}

.skill-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cards */
.card {
    background-color: #161616;
    border: 1px solid #212121;
    border-radius: 0.5rem;
    overflow: hidden;
}

body.light .card {
    background-color: white;
    border-color: #e2e8f0;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

/* Experience */
.experience-item {
    margin-bottom: 1.5rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.experience-role {
    font-weight: 500;
}

.experience-period {
    font-size: 0.75rem;
    opacity: 0.7;
}

.experience-location {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.experience-bullets {
    list-style: disc;
    list-style-position: inside;
    font-size: 0.875rem;
    opacity: 0.9;
}

.experience-bullets li {
    margin-bottom: 0.25rem;
}

/* Education */
.education-item {
    margin-bottom: 0.75rem;
}

.education-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-period {
    font-size: 0.75rem;
    opacity: 0.7;
}

.education-separator {
    height: 1px;
    background-color: #334155;
    margin: 0.75rem 0;
}

body.light .education-separator {
    background-color: #e2e8f0;
}

.certification-item {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

/* Resume Section */
.resume-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .resume-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resume-meta {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.resume-bullets {
    list-style: disc;
    list-style-position: inside;
    font-size: 0.875rem;
    opacity: 0.9;
}

.resume-bullets li {
    margin-bottom: 0.25rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.5) 0%, rgba(22, 22, 22, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

body.light .contact {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.contact::before {
    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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-description {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.light .contact-description {
    color: #64748b;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.contact-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

body.light .contact-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(226, 232, 240, 0.5);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light .contact-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-method-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

body.light .contact-method-title {
    color: #1e293b;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #1d4ed8;
    transform: translateX(4px);
}

.contact-method-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

body.light .contact-method-desc {
    color: #64748b;
}

.contact-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

body.light .contact-cta {
    background: rgba(37, 99, 235, 0.02);
    border-color: rgba(37, 99, 235, 0.1);
}

.cta-text {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

body.light .cta-text {
    color: #64748b;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-input,
.form-textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    background-color: transparent;
    color: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

body.light .form-input,
body.light .form-textarea {
    border-color: #e2e8f0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Footer */
.footer {
    background-color: #161616;
    padding: 3rem 0 2rem;
    position: relative;
    text-align: center;
}

body.light .footer {
    background-color: #f8fafc;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #94a3b8;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

body.light .social-icon {
    color: #64748b;
}

.social-icon:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

.crafted-message {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
}

body.light .crafted-message {
    color: #64748b;
}

.scroll-to-top {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    top: auto !important;
    left: auto !important;
    width: 48px;
    height: 48px;
    background-color: #334155;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Ensure button stays in viewport on all devices */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent any parent transforms from affecting position */
    will-change: opacity, transform;
}

/* Mobile and Tablet - ensure proper positioning */
@media (max-width: 1024px) {
    .scroll-to-top {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 40px;
        height: 40px;
    }
}

/* Ensure button is always on top and visible when active */
.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

body.light .scroll-to-top {
    background-color: #e2e8f0;
    color: #212121;
}

.scroll-to-top:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

body.light .scroll-to-top:hover {
    background-color: #3b82f6;
    color: white;
}

/* Modal */
/* Fullscreen overlay anchored to the viewport */
.modal {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    z-index: 1000;
    display: none;
    /* Ensure it's positioned relative to viewport, not document */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use flexbox for easier overlay/content separation */
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed; /* key: relative to viewport */
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1; /* behind modal content */
}

/* The popup panel - Full screen */
.modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background-color: #161616;
    border: none;
    border-radius: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    z-index: 2; /* above overlay */
}

body.light .modal-content {
    background-color: white;
    border-color: #e2e8f0;
}

.modal-header {
    padding: 1rem 1rem 1rem 4rem;
    border-bottom: 1px solid #272727;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

body.light .modal-header {
    border-bottom-color: #e2e8f0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-description {
    font-size: 0.875rem;
    color: #94a3b8;
}

body.light .modal-description {
    color: #64748b;
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-close:hover {
    background-color: rgba(148, 163, 184, 0.1);
    transform: translateX(-2px);
}

body.light .modal-close:hover {
    background-color: rgba(15, 23, 42, 0.1);
}

/* Back button styling */
.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 4rem;
    overflow-y: auto;
    flex: 1;
}

/* Tablet and Mobile - Reduce padding */
@media (max-width: 1024px) {
    .modal-body {
        padding: 1.5rem;
    }
}

.modal-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.25rem;
}

/* Modal body links */
.modal-body a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.4);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.modal-body a:hover {
    color: #3b82f6;
    text-decoration-color: rgba(59, 130, 246, 0.6);
}

.modal-body a:active,
.modal-body a:visited,
.modal-body a:focus {
    color: #3b82f6;
}

body.light .modal-body a {
    color: #2563eb;
    text-decoration-color: rgba(37, 99, 235, 0.4);
}

body.light .modal-body a:hover {
    color: #1d4ed8;
    text-decoration-color: rgba(29, 78, 216, 0.6);
}

body.light .modal-body a:active,
body.light .modal-body a:visited,
body.light .modal-body a:focus {
    color: #2563eb;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .resume-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal is full screen, no responsive adjustments needed */
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .modal,
    .btn,
    .theme-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}
