/* ========================================
   GLOBAL STYLESHEET
   Modern, Premium Portfolio Design System
   ======================================== */

/* CSS RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS VARIABLES */
:root {
    /* Colors - Minimalist Palette */
    --color-bg: #000000;  /* Pure black */
    --color-white: #ffffff;
    --color-olive: #6b7547;  /* Olive green */
    --color-olive-light: #8a9466;
    --color-olive-dark: #4a4e31;
    --color-gold: #c9b382;  /* Soft gold */
    --color-pink: #d4a5a5;  /* Soft pink */
    
    --color-text-primary: #ffffff;  /* White */
    --color-text-secondary: rgba(255, 255, 255, 0.75);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-accent: #6b7547;  /* Olive as primary accent */
    --color-accent-neon: #c9b382;  /* Gold */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-card-bg: rgba(0, 0, 0, 0.6);
    
    /* Typography Scale - Minimalist */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    --text-8xl: 6rem;        /* 96px */
    --text-9xl: 8rem;        /* 128px */
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;
    
    /* Spacing Scale (8px base) */
    --space-1: 0.5rem;    /* 8px */
    --space-2: 1rem;      /* 16px */
    --space-3: 1.5rem;    /* 24px */
    --space-4: 2rem;      /* 32px */
    --space-5: 2.5rem;    /* 40px */
    --space-6: 3rem;      /* 48px */
    --space-8: 4rem;      /* 64px */
    --space-10: 5rem;     /* 80px */
    --space-12: 6rem;     /* 96px */
    --space-16: 8rem;     /* 128px */
    --space-20: 10rem;    /* 160px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.5rem;    /* 24px */
    --radius-2xl: 2rem;     /* 32px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 600ms cubic-bezier(0.4, 0, 0.1, 1);
    
    /* Container Max Width */
    --container-max: 1200px;
    --container-padding: var(--space-6);
}


/* BASE STYLES */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-family: var(--font-display);
}

h1 { font-size: var(--text-7xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-text-primary);
}

/* UTILITY CLASSES */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-center {
    display: grid;
    place-items: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* SECTION STYLES */
section {
    padding: var(--space-16) 0;
    position: relative;
    background: rgba(0, 0, 0, 0.4);  /* More transparent for glass effect */
    backdrop-filter: blur(40px) saturate(180%);  /* Enhanced iOS-style blur */
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 8px 32px rgba(107, 117, 71, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);  /* Inner highlight */
    margin: var(--space-12) 0;  /* Larger gaps */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);  /* Rounded corners like iOS */
}

/* First section no top margin */
section:first-of-type {
    margin-top: 0;
}

/* Last section no bottom margin */
section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
    text-align: center;
    margin-bottom: var(--space-12);
    letter-spacing: -0.03em;
}

/* RESPONSIVE TYPOGRAPHY */
@media (max-width: 1024px) {
    :root {
        --text-7xl: 3.5rem;   /* 56px */
        --text-5xl: 2.5rem;   /* 40px */
        --text-3xl: 1.5rem;   /* 24px */
    }
    
    section {
        padding: var(--space-12) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --text-7xl: 2.5rem;   /* 40px */
        --text-5xl: 2rem;     /* 32px */
        --text-3xl: 1.25rem;  /* 20px */
        --container-padding: var(--space-4);
    }
    
    section {
        padding: var(--space-10) 0;
    }
    
    .section-title {
        margin-bottom: var(--space-8);
    }
}

@media (max-width: 480px) {
    :root {
        --text-7xl: 2rem;     /* 32px */
        --text-5xl: 1.75rem;  /* 28px */
        --container-padding: var(--space-3);
    }
}

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

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

/* SELECTION STYLES */
::selection {
    background-color: var(--color-accent);
    color: white;
}

::-moz-selection {
    background-color: var(--color-accent);
    color: white;
}

/* SCROLLBAR STYLES */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}
/* ============================
   Resume Section Layout
============================ */
.resume-section {
    text-align: center;
}

.resume-container {
    max-width: 900px;
}

/* side-by-side layout */
.resume-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* PDF preview */
.resume-preview {
    width: 320px;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

/* PDF embed */
.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Button section */
.resume-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resume-download-btn {
    padding: 14px 28px;
    background: #4a91cb;
    color: white;
    font-size: 1.2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.resume-download-btn:hover {
    background: linear-gradient(135deg, #4a91cb 0%, #d97ae0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* Footer contact info */
.resume-footer-contact {
    margin-top: 2.5rem;
    text-align: left;
    opacity: 0.8;
}

.resume-footer-contact span {
    color: #ffffff;
    font-weight: var(--font-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .resume-content {
        flex-direction: column;
        text-align: center;
    }

    .resume-footer-contact {
        text-align: center;
    }
}

/* ============================
   Resume Preview Styling
============================ */
.resume-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

/* ================================
   Resume Modal (CONTAINED VERSION)
================================ */

.resume-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.resume-modal-content {
    position: relative;
    max-width: 850px;
    max-height: 90vh;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: #111;
}

/* Close button */
.resume-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 26px;
    cursor: pointer;
    color: rgb(190, 68, 68);
    z-index: 10000;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

/* Image must scale inside */
.resume-modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}


/* ============================
   Loader*/


   /* ==========================
   Fade-In Loader
========================== */

#fade-loader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 999999;
    opacity: 1;
    transition: opacity 1s ease;
}

/* disable scroll while loading */
.no-scroll {
    overflow: hidden !important;
}


/* ============================
   FOOTER (RAW BACKGROUND)
============================ */
.site-footer {
    width: 100%;
    padding: 1.2rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 0.9rem;
    color: var(--color-text-muted);

    position: relative;
    margin-top: 3rem;

    /* Remove any glassmorphism / box look */
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-left,
.footer-right {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
