/* ===== EUGENE ANTWI PORTFOLIO STYLES ===== */

/* Import Sugar Snow font if local */
@font-face {
    font-family: 'Sugar Snow';
    src: url('../fonts/SugarSnow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Adapted from OSU Portfolio */
    --bg-dark: #0a0a0f;
    --bg-darker: #070709;
    --card-bg: #1a1a24;
    --text-light: #ffffff;
    --text-gray: #a0a0aa;
    --text-dim: #6b6b75;
    
    /* Accent Colors - Enhanced for light rays */
     --white-silver: #f0f0f0; /* FIXED: Changed to white default instead of green #24FF72 */
    --purple: #8B5CF6;
    --blue: #4A9EFF;
    --cyan-blue: #00D9FF;
    --green: #f0f0f0; /* Default white — overridden by lightrays.js from localStorage */
    
    /* UI Elements */
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Transitions */
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sugar Snow', cursive;
    line-height: 1.2;
    font-weight: normal;
}

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER/NAVBAR ===== */
/* ALL navbar styles are in navbar.css - DO NOT ADD ANY HERE */

/* ===== HERO SECTION WITH LIGHT RAYS ===== */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--card-bg) 100%);
    padding-top: 0;
    cursor: pointer;
}

.light-rays-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.light-rays-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

/* UPDATED: Main title reduced by 25% */
#hero h1 {
    font-size: 7.3125rem; /* Was 9.75rem, now reduced by 25% */
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 0 15px rgba(240, 240, 240, 0.2); /* FIXED: Changed to white default */
    transition: text-shadow 0.6s ease;
}

/* UPDATED: Subtitle reduced by 25% and moved closer */
#hero .hero-subtitle {
    font-size: 2.625rem; /* Was 3.5rem, now reduced by 25% */
    color: var(--text-gray);
    margin-top: -10px; /* Brings subtitle closer to title */
}

.click-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== SCROLL DOWN INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

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

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-dim);
    border-radius: 13px;
    margin: 0 auto 2px;
    position: relative;
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover .mouse {
    border-color: var(--green); /* Will now use white initially, then follow color changes */
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--text-dim);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
    transition: background 0.3s ease;
}

.scroll-indicator:hover .mouse::before {
    background: var(--green); /* Will now use white initially, then follow color changes */
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.arrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(-45deg);
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover .arrow {
    border-color: var(--green); /* Will now use white initially, then follow color changes */
}

.arrow:first-child {
    animation: arrowBounce 2s ease-in-out infinite;
}

.arrow:last-child {
    animation: arrowBounce 2s ease-in-out 0.3s infinite;
}

@keyframes arrowBounce {
    0%, 100% { opacity: 0.4; transform: rotate(-45deg) translateY(0); }
    50% { opacity: 1; transform: rotate(-45deg) translateY(4px); }
}

.scroll-indicator:active .mouse,
.scroll-indicator:active .arrow {
    border-color: var(--green); /* Will now use white initially, then follow color changes */
}

.scroll-indicator:active .mouse::before {
    background: var(--green); /* Will now use white initially, then follow color changes */
}

/* Force reset on mobile after click */
.scroll-indicator.clicked .mouse,
.scroll-indicator.clicked .arrow {
    border-color: var(--text-dim);
}

.scroll-indicator.clicked .mouse::before {
    background: var(--text-dim);
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    #hero h1 {
        /* Adjust these values until they look right on your mobile device */
        font-size: 4rem; 
        margin-bottom: 10px;
    }

    #hero .hero-subtitle {
        font-size: 1.5rem;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 3rem; /* Even smaller for very small phones */
    }

    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ===== INTRO SECTION STYLES ===== */

#intro {
    position: relative;
    width: 100%;
    padding: 180px 10px 80px;
    background: transparent;
    overflow: visible;
}

/* Slides Container */
/* Updated Slides Container */
.intro-slides-container {
    position: relative;
    overflow: visible;
    max-width: 1400px;
    margin: 0 auto;
    /* Ensure the container has height since children are now absolute */
    min-height: 600px; 
}

/* Individual Slide */
.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    /* Move it slightly to the right for a entrance effect */
    transform: translateX(20px); 
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
    z-index: 1;
}

.intro-slide.active {
    position: relative; /* The active slide dictates the height of the section */
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

/* Content Layout - Portrait Left, Text Right */
.intro-content {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 60px;
    align-items: flex-start;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Portrait Container - Left Side */
.intro-portrait {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 1;
}

.intro-portrait img {
    width: 580px;
    height: 580px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Caption for CG Portrait */
.intro-portrait-caption {
    position: absolute;
    bottom: 40px;
    left: 15px;
    padding: 8px 16px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 5;
}

/* Show caption when slide is active */
.intro-slide.active .intro-portrait-caption {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; /* Slight delay for smooth entrance */
}

/* Accent color for "CG" text */
.intro-portrait-caption .caption-accent {
    color: var(--green);
    font-weight: 600;
}

/* Hover effect on portrait shows caption more prominently */
.intro-portrait:hover .intro-portrait-caption {
    background: rgba(10, 10, 15, 0.95);
    border-color: var(--green);
    color: var(--text-light);
}

/* Statement Container - Right Side, Overlaps Portrait */
.intro-statement-container {
    position: relative;
    z-index: 10;
    padding: 40px;
    margin-left: -100px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

/* Quotation Mark Symbol - Top Left */
.intro-quote-symbol {
    position: absolute;
    top: -80px;
    left: -20px;
    font-size: 20em;
    color: var(--green);
    font-family: 'Sugar Snow', cursive, serif;
    line-height: 0.8;
    z-index: 1;
    opacity: 1;
    transition: color 0.3s ease;
}

/* Statement Text */
.intro-statement {
    position: relative;
    z-index: 2;
    font-size: 2.6em;
    line-height: 1.3;
    color: #dde7f1;
    margin: 0;
    font-weight: 800;
    text-align: left;
    font-style: normal;
}

/* Indicators - Bottom Center */
.intro-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    position: relative;
    z-index: 15;
}

.intro-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.intro-dot.active {
    background-color: var(--green);
    transform: scale(1.2);
}

.intro-dot:hover {
    background-color: var(--green);
    transform: scale(1.1);
    opacity: 0.8;
}

/* CTA Buttons - Below Indicators */
.intro-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 15;
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--green);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.intro-btn:hover {
    background: var(--green);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.intro-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.intro-btn:hover svg {
    transform: translateX(3px);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1400px) {
    .intro-content {
        grid-template-columns: 450px 1fr;
        gap: 60px;
        padding: 0 120px;
    }
    
    .intro-portrait img {
        width: 500px;
        height: 500px;
    }

    .intro-statement-container {
        margin-left: -80px;
        margin-top: 60px;
    }

    .intro-quote-symbol {
        font-size: 18em;
        top: -35px;
    }
    
    .intro-statement {
        font-size: 2.4em;
    }
}

@media (max-width: 1200px) {
    .intro-content {
        grid-template-columns: 400px 1fr;
        gap: 25px;
        padding: 20px;
    }
    
    .intro-portrait img {
        width: 450px;
        height: 450px;
    }
    
    .intro-statement-container {
        margin-left: -60px;
        margin-top: 40px;
    }
    
    .intro-quote-symbol {
        font-size: 16em;
        top: -30px;
    }
    
    .intro-statement {
        font-size: 2.2em;
    }
}

@media (max-width: 1024px) {
    #intro {
        padding: 60px 20px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .intro-portrait {
        order: -1;
        justify-content: center;
    }
    
    .intro-portrait img {
        width: 420px;
        height: 420px;
    }

    .intro-statement-container {
        margin-left: 0;
        margin-top: 0;
        padding: 30px 20px;
    }
    
    .intro-statement {
        font-size: 2em;
        text-align: center;
    }

    .intro-quote-symbol {
        font-size: 12em;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .intro-content {
        gap: 30px;
        padding: 20px 15px;
    }
    
    .intro-portrait img {
        width: 350px;
        height: 350px;
    }

    .intro-portrait-caption {
        bottom: 30px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.688rem;
    }

    .intro-statement-container {
        padding: 20px 15px;
    }
    
    .intro-quote-symbol {
        font-size: 8em;
        top: -20px;
    }
    
    .intro-statement {
        font-size: 1.6em;
        line-height: 1.4;
    }
    
    .intro-indicators {
        margin-top: 40px;
        gap: 12px;
    }

    .intro-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .intro-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #intro {
        padding: 50px 15px;
    }
    
    .intro-content {
        gap: 25px;
        padding: 15px 10px;
    }
    
    .intro-portrait img {
        width: 300px;
        height: 300px;
    }

    .intro-portrait-caption {
        bottom: 25px;
        left: 8px;
        padding: 5px 10px;
        font-size: 0.625rem;
    }

    .intro-statement-container {
        padding: 15px 10px;
    }
    
    .intro-quote-symbol {
        font-size: 6em;
        top: -15px;
    }
    
    .intro-statement {
        font-size: 1.3em;
        line-height: 1.4;
    }
    
    .intro-indicators {
        margin-top: 30px;
        gap: 10px;
    }
    
    .intro-dot {
        width: 12px;
        height: 12px;
    }

    .intro-buttons {
        margin-top: 20px;
    }

    .intro-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== WORK CTA SECTION - COMPLETE ===== */
#work-cta {
    position: relative;
    width: 100%;
    padding: 120px 20px;
    background: var(--card-bg, #1a1a24);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Pattern Container */
.work-pattern-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Individual Pattern Icons */
.pattern-icon {
    position: absolute;
    opacity: 0.06;
    filter: blur(0.5px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pattern-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--green, #f0f0f0);
    fill: none;
    stroke-width: 1.5;
}

/* Icon sizes and positions - More icons, better placement */
.pattern-icon:nth-child(1) { top: 8%; left: 5%; width: 80px; height: 80px; }
.pattern-icon:nth-child(2) { top: 12%; left: 18%; width: 60px; height: 60px; }
.pattern-icon:nth-child(3) { top: 5%; right: 15%; width: 70px; height: 70px; }
.pattern-icon:nth-child(4) { top: 18%; right: 5%; width: 65px; height: 65px; }

.pattern-icon:nth-child(5) { top: 35%; left: 8%; width: 55px; height: 55px; }
.pattern-icon:nth-child(6) { top: 45%; left: 3%; width: 75px; height: 75px; }
.pattern-icon:nth-child(7) { top: 38%; right: 10%; width: 68px; height: 68px; }
.pattern-icon:nth-child(8) { top: 48%; right: 3%; width: 58px; height: 58px; }

.pattern-icon:nth-child(9) { bottom: 15%; left: 6%; width: 72px; height: 72px; }
.pattern-icon:nth-child(10) { bottom: 8%; left: 20%; width: 62px; height: 62px; }
.pattern-icon:nth-child(11) { bottom: 18%; right: 12%; width: 78px; height: 78px; }
.pattern-icon:nth-child(12) { bottom: 10%; right: 6%; width: 66px; height: 66px; }

/* Center icons for more coverage */
.pattern-icon:nth-child(13) { top: 25%; left: 50%; transform: translateX(-50%); width: 70px; height: 70px; }
.pattern-icon:nth-child(14) { bottom: 30%; left: 50%; transform: translateX(-50%); width: 65px; height: 65px; }

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

.work-cta-content h2 {
    font-family: 'Sugar Snow', cursive;
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: normal;
}

.work-cta-content p {
    font-size: 1.125rem;
    color: #a0a0aa;
    margin-bottom: 40px;
    line-height: 1.6;
}

.work-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #8B5CF6 0%, #4A9EFF 40%, #00D9FF 70%, #24FF72 100%);
    border: none;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.work-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #24FF72 0%, #00D9FF 30%, #4A9EFF 60%, #8B5CF6 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.work-btn:hover::before {
    opacity: 1;
}

.work-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(74, 158, 255, 0.2);
}

.work-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.work-btn:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.work-btn:active {
    transform: translateY(-2px);
}

/* Responsive Design for Work CTA */
@media (max-width: 768px) {
    #work-cta {
        padding: 80px 20px;
    }

    .work-cta-content h2 {
        font-size: 2.5rem;
    }

    .work-cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .work-btn {
        padding: 16px 40px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .work-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Scale down patterns on mobile */
    .pattern-icon {
        opacity: 0.04;
    }
    .pattern-icon:nth-child(n) {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    #work-cta {
        padding: 60px 15px;
    }

    .work-cta-content h2 {
        font-size: 2rem;
    }

    .work-cta-content p {
        font-size: 0.938rem;
    }

    .work-btn {
        padding: 14px 32px;
        font-size: 0.938rem;
    }

    .work-btn svg {
        width: 20px;
        height: 20px;
    }
}