/* ============================================
   SHARED STYLES — Centralized Reusable Code
   ============================================
   This file contains ALL shared styles used
   across every page of the portfolio site.

   Sections:
   1. CSS Variables & Global Reset
   2. Fonts & Typography Basics
   3. Navbar
   4. Premium Footer
   5. Lightbox (Image Viewer Overlay)
   6. Responsive — Tablet (992px)
   7. Responsive — Tablet Small (768px)
   8. Responsive — Narrow Phones (600px)
   ============================================ */


/* ============================================
   1. CSS VARIABLES & GLOBAL RESET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-cyan: #00f2ff;
    --ocean-blue: #0077ff;
    --dark-bg: #0a0e14;
    --light-text: #e0faff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}


/* ============================================
   2. FONTS & TYPOGRAPHY BASICS
   ============================================ */

h1, h2, h3, .brand-name {
    font-family: 'Outfit', sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-glow {
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.35);
}

/* Section Divider */
.section-divider {
    height: 1px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    opacity: 0.8;
}


/* ============================================
   3. NAVBAR
   ============================================ */

.site-header {
    position: relative;
    z-index: 1010;
}

.site-nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1010;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Homepage: fixed navbar that scrolls with page */
.home-page .site-nav {
    position: fixed;
}

/* Glass blur effect on scroll */
.site-nav.nav-scrolled {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.1);
}

/* Disable navbar blur when mobile menu is open */
.nav-open .site-nav.nav-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    box-shadow: none;
}

/* Brand / Logo */
.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.brand-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Backdrop + Toggle: hidden on desktop */
.nav-backdrop {
    display: none;
}

.nav-toggle {
    display: none;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

/* Active link */
.nav-active {
    color: var(--primary-cyan) !important;
    position: relative;
}


/* ============================================
   4. PREMIUM FOOTER
   ============================================ */

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 14, 20, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 5% 2rem;
}

/* 3-column grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Footer Brand */
.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.35s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 242, 255, 0.3);
}

/* Footer Headings (Quick Links + Get in Touch) */
.footer-links h4,
.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

/* Footer Quick Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    transform: translateX(4px);
}

/* Footer Contact Column */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-contact-list a:hover {
    color: var(--primary-cyan);
}

.footer-contact-list i {
    font-size: 1rem;
    color: var(--primary-cyan);
    opacity: 0.7;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Copyright Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-bottom .divider {
    color: var(--primary-cyan);
    margin: 0 8px;
    font-weight: 600;
    opacity: 0.6;
}


/* ============================================
   5. LIGHTBOX (Image Viewer Overlay)
   ============================================ */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    font-weight: 500;
}


/* ============================================
   6. RESPONSIVE — Tablet (992px)
   ============================================ */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}


/* ============================================
   7. RESPONSIVE — Tablet Small (768px)
   ============================================ */

@media (max-width: 768px) {

    /* Navbar → hamburger */
    .site-nav {
        flex-wrap: wrap;
        align-items: center;
        padding: 1rem 6%;
        row-gap: 0;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--light-text);
        margin-left: auto;
        position: relative;
        z-index: 1006;
    }

    .nav-toggle-bar {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    /* Hamburger → X */
    .site-nav.is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .site-nav.is-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .site-nav.is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Dropdown */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        flex-basis: 100%;
        order: 3;
        margin-top: 1rem;
        padding: 1rem 0;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .site-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0.5rem;
        font-size: 1rem;
    }

    /* Backdrop */
    .nav-open .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1005;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(0, 0, 0, 0.3);
    }

    .brand {
        z-index: 1006;
        position: relative;
    }

    .nav-links {
        position: relative;
        z-index: 1010;
    }

    /* Footer → 1 column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    /* Lightbox nav buttons */
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
}


/* ============================================
   8. RESPONSIVE — Narrow Phones (600px)
   ============================================ */

@media (max-width: 600px) {
    .site-nav {
        padding: 0.85rem 5%;
    }

    .brand-name {
        font-size: 1.45rem;
    }

    .brand-sub {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .footer-inner {
        padding: 3rem 5% 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.5rem;
    }
}