/* --- RESET & VARIABLES --- */
:root {
    /* Palette */
    --bg-color: #121212; /* Deep Charcoal/Black */
    --bg-secondary: #1e1e1e;
    --text-primary: #f0f0f0; /* Off-White */
    --text-secondary: #a0a0a0;
    --accent-color: #ccff00; /* Acid Green - The "Edgy" Pop */
    
    /* Typography */
    --font-head: 'Syne', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
}

* {
    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);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .cta-button, .nav-links a {
    font-family: var(--font-head);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

/* Mobile Nav Logic */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
}

.nav-links li {
    list-style: none;
    margin: 1rem 0;
}

.nav-links a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-toggle { display: none; }
.nav-icon { cursor: pointer; }
.nav-icon .line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
}

/* Toggle Logic */
#nav-toggle:checked ~ .nav-links {
    display: flex;
    height: 100vh;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
}

.subtitle {
    font-family: var(--font-head);
    color: var(--accent-color);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.intro-text {
    max-width: 600px;
    margin: 2rem auto;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--text-primary);
    font-style: italic;
    border-bottom: 1px solid var(--accent-color);
}

/* Glitch Effect */
.glitch {
    font-size: 4rem;
    font-weight: 800;
    position: relative;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 86px, 0); }
    20% { clip: rect(85px, 9999px, 14px, 0); }
    40% { clip: rect(32px, 9999px, 5px, 0); }
    60% { clip: rect(54px, 9999px, 22px, 0); }
    80% { clip: rect(12px, 9999px, 66px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 11px, 0); }
    20% { clip: rect(2px, 9999px, 90px, 0); }
    40% { clip: rect(12px, 9999px, 56px, 0); }
    60% { clip: rect(44px, 9999px, 3px, 0); }
    80% { clip: rect(2px, 9999px, 86px, 0); }
    100% { clip: rect(67px, 9999px, 4px, 0); }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* --- MASONRY WORK SECTION --- */
.portfolio-section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
    line-height: 1;
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    width: 100%;
    height: 300px;
    background: #333;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #222, #333);
    /* In production, img goes here with object-fit: cover */
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-secondary);
}

/* --- ABOUT & CONTACT --- */
.about-section, .contact-section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item .number {
    display: block;
    font-size: 4rem;
    font-family: var(--font-head);
    color: var(--accent-color);
    line-height: 1;
}

.email-link {
    font-size: 1.0rem; /* Mobile first size */
    font-family: var(--font-head);
    font-weight: 800;
    border-bottom: 2px solid var(--accent-color);
}

.email-link:hover {
    color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.socials {
    margin-top: 1rem;
}

.socials a {
    margin: 0 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- DESKTOP MEDIA QUERIES (Min-Width 768px) --- */
@media (min-width: 768px) {
    /* Layout Adjustments */
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.tall .card-image-wrapper {
        height: 500px; /* Varied heights for masonry feel */
    }

    .about-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .about-text { width: 60%; }
    
    /* Header Desktop */
    .nav-toggle, .nav-icon { display: none; }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        padding: 0;
        background: transparent;
    }
    
    .nav-links li { margin: 0 0 0 2rem; }
    
    .nav-links a {
        font-size: 1rem;
        font-weight: 400;
    }
    
    .glitch { font-size: 6rem; }
    
    .email-link { font-size: 4rem; }
}

@media (min-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* --- CUSTOM CURSOR STYLES --- */
body {
    cursor: none; /* Hides default cursor */
}

/* The small center dot */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference; /* Gives it that edgy inverted look over white text */
}

/* The larger trailing ring */
.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

/* Hover State (When over links) */
.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(204, 255, 0, 0.1); /* Faint acid green tint */
    border-color: var(--accent-color);
}

/* Hide custom cursor on mobile (Touch devices need normal behavior) */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
}

/* --- SCROLL REVEAL ANIMATION --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(50px); /* Push down initially */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* "Luxury" easing */
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for stats or grid items if desired */
.stat-item:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }

.project-card:nth-child(3) { transition-delay: 0.4s; }
