/* style.css */

/* --- 1. GLOBAL RESET (Crucial to prevent collapsing) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- 2. FONTS & THEME --- */
/* Importing Thin (100), ExtraLight (200), and Medium (500) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;500&display=swap');

:root {
    --bg-deep: #050505;
    --text-main: #ffffff;
    --text-muted: #d0d0d0; /* Brighter grey needed for readability of thin fonts */
    --accent: #FF9F1C; /* Cyber Orange */
    --accent-glow: rgba(255, 159, 28, 0.4); 
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    
    /* UPDATED: Smaller base size & Extra Light weight */
    font-size: 15px; 
    font-weight: 200; 
}

/* --- TYPOGRAPHY --- */

/* H1/H2: The "Ultra Thin" Look */
h1, h2 { 
    font-weight: 100; /* Thin */
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
    line-height: 1.1; 
}

/* H3: Subtitles - Thicker (Medium) */
h3 { 
    font-weight: 500; /* Medium */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Body Text: Extra Light */
p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    line-height: 1.8; 
    margin-top: 25px; 
    font-weight: 200; /* Extra Light */
    max-width: 550px; 
}

/* --- NEW: Sleek styling for links within paragraphs --- */
p a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease-in-out;
}

p a:hover {
    color: var(--text-main);
    border-bottom: 1px solid var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* --- 3. LAYOUT UTILITIES --- */
section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0; /* Safety padding */
}

.split-layout {
    display: flex;
    width: 100%;
    max-width: 1300px; /* Tighter container */
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    flex-direction: row;
}

.section-reverse .split-layout {
    flex-direction: row-reverse;
}

/* Text Column */
.text-col {
    flex: 0 0 45%;
    padding: 50px;
    opacity: 0; /* Hidden for animation */
    transform: translateY(30px);
    z-index: 10;
}
.text-col h2 { 
    font-size: 4.5rem; 
    margin-bottom: 25px; 
}

/* Visual Column */
.visual-col {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* CRITICAL FIX: Prevents flex overflow */
}

/* --- 4. NAVIGATION (UPDATED) --- */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1100px; height: 60px;
    background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 35px; z-index: 1000;
}

/* Logo: Thicker (Medium) */
.logo { 
    font-weight: 500; 
    font-size: 1.2rem; 
    cursor: pointer; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 35px; }

/* Menu Links: Thicker (Medium) */
.nav-links a { 
    color: #ddd; 
    text-decoration: none; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.3s; 
    font-weight: 500; /* Medium weight */
    letter-spacing: 1px; 
}
.nav-links a:hover { color: var(--accent); }

/* --- 5. SPECIFIC ELEMENTS --- */

/* Hero */
#hero { flex-direction: column; text-align: center; }
#hero canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-text { position: relative; z-index: 10; pointer-events: none; mix-blend-mode: exclusion; }
.hero-text h1 { 
    font-size: 7rem; 
    font-weight: 100; /* Ultra Thin Headline */
    line-height: 0.9; 
}

/* Images */
#char-img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }

/* Web Stage */
.web-stage { width: 100%; max-width: 750px; height: 450px; position: relative; transform-style: preserve-3d; }
.layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 20px; background-size: cover; background-position: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.layer-bg { background-color: #151515; border: 1px solid #333; }
/* Note: Update these URLs to your local ./images/ folder */
.layer-ui { background-image: url('https://placehold.co/800x600/333/666/png?text=UI+Interface'); transform: translateZ(50px); }
.layer-float { 
    background-image: url('https://placehold.co/300x300/FF9F1C/fff/png?text=Widget'); 
    width: 180px; height: 180px; top: -50px; right: -50px; 
    transform: translateZ(90px); border-radius: 15px; border: 1px solid rgba(255,255,255,0.15); 
}

/* AI Scanner */
/* style.css - AI SCANNER SECTION */
.scanner-container { 
    width: 100%; 
    max-width: 850px; 
    height: 500px; 
    position: relative; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid #333; 
    background: #000; /* Backdrop for loading */
}

.scan-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* The "After" image starts completely hidden by a clip-path */
.scan-after { 
    z-index: 2;
    clip-path: inset(0 100% 0 0); /* Clips from the right side */
}

.scan-before {
    z-index: 1;
}

/* The Orange Line */
.scan-line { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 3px; 
    height: 100%; 
    background: var(--accent); 
    box-shadow: 0 0 30px var(--accent); 
    z-index: 5; 
    pointer-events: none;
}

/* Contact */
#contact { background: radial-gradient(circle, #1a1a2e 0%, #000 70%); text-align: center; }
.contact-btn {
    display: inline-block; margin-top: 40px; padding: 18px 50px; 
    background: var(--accent); color: #000; text-decoration: none; border-radius: 50px; 
    font-weight: 500; /* Medium weight button text */
    font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 30px var(--accent-glow); transition: 0.3s;
}
.contact-btn:hover { transform: scale(1.05); background: #fff; }

.social-icons { margin-top: 60px; display: flex; gap: 40px; justify-content: center; }
.social-icons a { color: #666; font-size: 1.8rem; transition: 0.3s; }
.social-icons a:hover { transform: translateY(-5px); color: var(--accent); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-text h1 { font-size: 3.5rem; }
    
    section { height: auto; min-height: 100vh; }
    
    .split-layout, .section-reverse .split-layout { 
        flex-direction: column-reverse; /* Stack Vertically */
        padding: 40px 20px;
    }
    
    .text-col { width: 100%; padding: 20px; text-align: center; }
    .text-col h2 { font-size: 2.5rem; }
    
    .visual-col { width: 100%; height: 50vh; margin-bottom: 20px; }
    #char-img { max-height: 40vh; }
    .web-stage, .scanner-container { height: 300px; width: 100%; }
}