/* =========================================
   VARIABLES & THEME TOKENS
   ========================================= */
:root {
    --bg-color: #050505;
    --bg-secondary: #0f0f11;
    --text-primary: #ededed;
    --text-secondary: #a3a3a3;
    --accent-color: #e2fc52; /* Vibrant chartreuse for high contrast in dark mode */
    --accent-hover: #c4dc3d;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover {
    width: 0;
    height: 0;
    background-color: transparent;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    background-color: rgba(226, 252, 82, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
    font-weight: 300;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-hover);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    mix-blend-mode: difference;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
    overflow: hidden;
}

/* Subtle moving gradient background effect */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(226, 252, 82, 0.05) 0%, transparent 40%);
    animation: pulseGlow 15s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(5%, 5%); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    margin-bottom: 3rem;
    text-transform: uppercase;
    line-height: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

.mouse {
    width: 24px;
    height: 36px;
    border: 1px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-section {
    padding: 10rem 5%;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: none;
}

/* Masonry-like layout using Grid */
.gallery-item:nth-child(1) { grid-column: 1 / 8; aspect-ratio: 16/9; }
.gallery-item:nth-child(2) { grid-column: 8 / 13; aspect-ratio: 4/5; }
.gallery-item:nth-child(3) { grid-column: 1 / 6; aspect-ratio: 4/5; margin-top: -10%; }
.gallery-item:nth-child(4) { grid-column: 6 / 13; aspect-ratio: 16/9; }

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: grayscale(40%) contrast(1.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}

.item-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.item-overlay p {
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-more {
    text-align: center;
    margin-top: 5rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin: 0 auto;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 10%;
    background-color: var(--accent-color);
    color: var(--bg-color);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 10rem 0;
    background-color: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-decoration: underline;
    text-underline-offset: 8px;
    color: var(--text-primary);
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.socials a:hover {
    color: var(--accent-color);
}

/* Form Styles */
.contact-form {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

/* Move label up when input has content or is focused */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.submit-btn {
    width: 100%;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

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

.scroll-to-top {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: none;
    transition: var(--transition-smooth);
}

.scroll-to-top:hover {
    color: var(--accent-color);
}

/* =========================================
   ANIMATIONS (Intersection Observer)
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}
.fade-in.is-visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.appear-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media screen and (max-width: 992px) {
    .gallery-grid {
        display: flex;
        flex-direction: column;
    }
    
    .gallery-item {
        aspect-ratio: auto !important;
        margin-top: 0 !important;
    }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .experience-badge {
        right: 0;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, implement mobile menu here */
    }
    
    .hamburger {
        display: flex;
    }
    
    h2 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
