/* EXORAZ PREMIUM STYLESHEET
   Theme: Eternal Blue, #000518, Deep Purple
*/

:root {
    --bg-main: #000518;
    --eternal-blue: #007aff;
    --deep-purple: #4b0082;
    --accent-cyan: #00d4ff;
    --text-slate: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    /* We hide the standard cursor to let the spotlight be the focus */
    cursor: crosshair; 
}

/* --- Feature 4: Spotlight Reveal Logic --- */

.spotlight-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Sits behind the Glass Card but above the background image */
    pointer-events: none;
}

.reveal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This reveals your Windows vs Linux graphic */
    background: url('images/cursor-img.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2; /* Furthest layer back */
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This creates the 'Flashlight' hole. Adjust the '150px' to make the circle bigger/smaller */
    background: radial-gradient(
        circle 180px at var(--x, 50%) var(--y, 50%), 
        transparent 0%, 
        rgba(0, 5, 24, 0.98) 100%
    );
}

/* --- Navigation --- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    background: rgba(0, 5, 24, 0.4);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 42px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-slate);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent-cyan);
}

/* --- Hero Section & Glass Card --- */

#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px); /* Strong glass effect */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 900px;
    padding: 50px;
    border-radius: 40px;
    text-align: left;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--text-slate);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-glass-card h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight {
    color: var(--accent-cyan);
}

.description {
    color: var(--text-slate);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
}

/* --- Character Interaction Area --- */

.character-area {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.character {
    width: 65px;
    height: 85px;
    background-color: var(--color);
    border-radius: 35px 35px 12px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.eye {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.pupil {
    width: 9px;
    height: 9px;
    background: #000000;
    border-radius: 50%;
    position: absolute;
    top: 25%;
    left: 25%;
}

/* --- UI Components --- */

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-blue {
    background: var(--accent-cyan);
    color: #000518;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Feature 7: Typing Cursor */
.typewriter {
    border-right: 3px solid var(--accent-cyan);
    padding-right: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* --- Sections --- */

.section {
    padding: 100px 20px;
    min-height: 100vh;
    background: var(--bg-main);
}


/* --- ADD-ONS START HERE --- */

/* Enable Instant Snapping */
html, body {
    height: 100%;
    overflow: hidden; /* Critical for the scroll-container to take over */
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* Feature: Instant Snap Scroll */
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

/* Layout Helpers for New Sections */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.section-title { font-size: 3rem; margin-bottom: 30px; text-align: center; }
.content-text { font-size: 1.2rem; line-height: 1.8; color: var(--text-slate); max-width: 800px; margin: 0 auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Methodology Styling */
.method-list { display: flex; flex-direction: column; gap: 15px; text-align: left; max-width: 600px; margin: 0 auto; }
.method-item { font-size: 1.5rem; color: #fff; padding: 15px; border-left: 3px solid var(--accent-cyan); background: rgba(255,255,255,0.03); }
.method-item span { color: var(--accent-cyan); margin-right: 20px; font-weight: 800; }

.glass-card { 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 30px; 
    padding: 40px; 
}
/* --- ADD-ONS END HERE --- */

/* --- ADD-ONS FOR METHODOLOGY TILE & SNAP SCROLLING --- */

html, body {
    height: 100%;
    overflow: hidden;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

/* Reusing your hero glass card style for the Methodology Tile */
#methodology .hero-glass-card {
    margin: 0 auto;
    max-width: 900px;
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.method-item {
    font-size: 1.4rem;
    color: #fff;
    padding: 12px 20px;
    border-left: 4px solid var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 10px 10px 0;
    transition: 0.3s ease;
}

.method-item:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(10px);
}

.method-item span {
    color: var(--accent-cyan);
    margin-right: 15px;
    font-weight: 800;
}

/* Grid helpers for other sections */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.section-title { font-size: 3rem; margin-bottom: 25px; text-align: center; }
.content-text { font-size: 1.2rem; color: var(--text-slate); text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }



/* --- METHODOLOGY TILE & SNAP SCROLL ADD-ONS --- */

/* Scroll Snapping Logic */
html, body {
    height: 100%;
    overflow: hidden;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

/* Methodology Tile Design */
.methodology-tile {
    max-width: 900px !important;
    margin: 0 auto;
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Hover & Shine Effect */
.method-item {
    font-size: 1.5rem;
    color: #fff;
    padding: 20px;
    border-left: 4px solid var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 15px 15px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.method-item::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: 0.5s;
}

.method-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(15px);
    border-left: 4px solid #fff;
}

.method-item:hover::after {
    left: 100%; /* Triggers the 'Shine' on hover */
}

.method-item span {
    color: var(--accent-cyan);
    margin-right: 25px;
    font-weight: 800;
}

/* New Section Layouts */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.glass-card { 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 30px; 
    padding: 40px; 
}
.section-title { font-size: 3rem; margin-bottom: 30px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }


/* --- UNIVERSAL HOVER TILES & SNAP SCROLLING --- */

/* Scroll Snapping Container */
html, body {
    height: 100%;
    overflow: hidden;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

/* The Hover Effect for All Tiles */
.hover-tile {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-tile:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

/* Layout Helpers */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.glass-card { 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 30px; 
    padding: 40px; 
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Methodology Specific Hover */
.method-item {
    font-size: 1.5rem;
    padding: 15px;
    border-left: 4px solid var(--accent-cyan);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s;
    margin-bottom: 10px;
    border-radius: 0 10px 10px 0;
}

.method-item:hover {
    background: rgba(0, 212, 255, 0.05);
    padding-left: 30px;
}


/* Update Tagline to Bold Deep Purple */
#home .tagline {
    color: #4b0082 !important; /* Deep Purple */
    font-weight: 900 !important; /* Makes the text extra bold */
    letter-spacing: 6px; /* Maintains the professional spaced-out look */
    opacity: 1;
}

/* Update Description to Solid White */
#home .description {
    color: #ffffff !important; /* Pure White */
    opacity: 1;
}

/* Update About Us description to solid white */
#about .content-text {
    color: #ffffff !important;
    opacity: 1; /* Ensures full visibility against the dark background */
    font-weight: 400; /* Keeps the professional body text weight */
}


/* --- UPDATED REVEAL LOGIC --- */

/* The mask now sits on top of everything to 'hide' the background media */
.spotlight-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 5; /* Sit above the background but BELOW the text/tiles */
    pointer-events: none;
    background: radial-gradient(circle 180px at var(--x, 50%) var(--y, 50%), transparent 0%, rgba(0, 5, 24, 0.98) 100%);
}

/* Base style for all background media */
.bg-reveal {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; /* Lowest layer within the section */
    overflow: hidden;
}

/* Section Specific Images */
.img-home { background: url('images/cursor-img.jpg') no-repeat center center; background-size: cover; }
.img-about { background: url('images/about-bg.jpg') no-repeat center center; background-size: cover; }
.img-method { background: url('images/method-bg.jpg') no-repeat center center; background-size: cover; }

/* Video Styling */
.reveal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure tiles stay on top of the mask */
.hero-glass-card, .glass-card, header {
    z-index: 10 !important;
}



/* Update Tagline to Bold Deep Purple */
#home .tagline {
    color: #4b0082 !important; 
    font-weight: 900 !important; 
    letter-spacing: 6px; 
    opacity: 1;
}

/* Update Description to Solid White */
#home .description, #contact .description {
    color: #ffffff !important;
    opacity: 1;
}

/* Update About Us description to solid white */
#about .content-text {
    color: #ffffff !important;
    opacity: 1;
    font-weight: 400;
}

/* Background Reveal Placeholders */
/* Add your own images here or replace with <video> tags in HTML */
.img-advantage { background: url('images/advantage-bg.jpg') no-repeat center center; background-size: cover; }
.img-projects { background: url('images/projects-bg.jpg') no-repeat center center; background-size: cover; }
.img-contact { background: url('images/contact-bg.jpg') no-repeat center center; background-size: cover; }
.img-method { background: url('images/method-bg.jpg') no-repeat center center; background-size: cover; }


/* Methodology Specific Styles */
.method-list { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.method-item { 
    font-size: 1.5rem; color: #fff; padding: 15px; 
    border-left: 4px solid var(--accent-cyan); background: rgba(255,255,255,0.02); 
    border-radius: 0 10px 10px 0; transition: 0.3s;
}
.method-item:hover { background: rgba(0, 212, 255, 0.05); padding-left: 30px; }
.method-item span { color: var(--accent-cyan); margin-right: 20px; font-weight: 800; }

/* --- NESTED ADVANTAGE TILES --- */

/* The Big Parent Tile */
.main-advantage-card {
    max-width: 1000px !important;
    padding: 60px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Grid and Inner Tiles */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.inner-value-tile {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 30px 20px !important;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hover effect specifically for the inner cards */
.inner-value-tile:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-10px);
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.icon-accent {
    color: var(--accent-cyan);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.inner-value-tile h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.inner-value-tile p {
    font-size: 0.9rem;
    color: var(--text-slate);
    line-height: 1.5;
}

/* --- Advantage Section Cards --- */
#advantage .tile-content {
    /* Override existing flex properties if necessary to allow grid to manage layout */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the title and the grid itself */
    justify-content: center;
    width: 100%; /* Ensure it takes full width of its parent */
    max-width: 1200px; /* Limit width as per other sections */
    margin: 0 auto;
}

#advantage .grid-3 {
    width: 100%; /* Ensure the grid takes full width within the tile-content */
    max-width: 1000px; /* Adjust as needed */
    margin-top: 40px;
}

.advantage-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: visible; /* Allow popup to extend beyond card */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    transform-style: preserve-3d; /* For parallax effect */
    perspective: 1000px; /* For 3D transformations */
    z-index: 2; /* Ensure cards are above background */
}

.advantage-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.card-content {
    position: relative; /* Needed for z-index stacking */
    z-index: 3; /* Above vector and popup (when hidden) */
    width: 100%;
}

.advantage-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.advantage-card p {
    font-size: 0.95rem;
    color: var(--text-slate);
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-button {
    background: var(--accent-cyan);
    color: #000518;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4; /* Ensure button is clickable */
    position: relative;
    /* Prevent button text from getting blurred by backdrop-filter on popup */
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden;
}

.card-button:hover {
    background: #00aaff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.card-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Start smaller */
    width: 350px;
    max-width: calc(100% + 150px); /* Extend beyond card */
    background: rgba(0, 5, 24, 0.9); /* Darker background for contrast */
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    z-index: 10; /* Definitely above everything else */
    pointer-events: none; /* Do not block mouse events on card */
}

/* Show popup on button hover (or card hover, will refine with JS) */
.advantage-card:hover .card-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto; /* Re-enable pointer events for the popup content */
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.popup-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
}

.card-popup h4 {
    font-size: 1.3rem;
    color: #ffffff;
}

.card-popup p {
    font-size: 0.9rem;
    color: var(--text-slate);
    line-height: 1.5;
    margin-bottom: 0;
}

.card-vector-bg {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.3), rgba(75, 0, 130, 0.3)); /* Mixed gradient */
    border-radius: 50%; /* Circular by default */
    z-index: 1; /* Below content, above card background */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: vector-rotate 15s linear infinite; /* Will apply per card in JS */
    opacity: 0.3; /* Subtle */
}

@keyframes vector-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Specific positioning for each vector, will handle in JS to randomize */
/* For now, just a generic placement */

/* Adjust tile-placeholder dimensions for advantage section */
.advantage-dimensions { 
    width: 1000px; 
    /* Adjust height to accommodate cards and popups, maybe a bit more */
    min-height: 700px; /* Ensure enough space */
    height: auto; /* Let content define height */
    padding-bottom: 50px; /* Add some bottom padding */
}



/* --- SECTION SPECIFIC BACKGROUND IMAGES --- */

/* Home already uses cursor-img.jpg */
.img-home { 
    background: url('images/cursor-img.jpg') no-repeat center center; 
    background-size: cover; 
}

/* 2. About Us Background */
.img-about { 
    background: url('images/about-bg.jpg') no-repeat center center; 
    background-size: cover; 
}

/* 3. Advantage Background */
.img-advantage { 
    background: url('images/advantage-bg.jpg') no-repeat center center; 
    background-size: cover; 
}

/* 4. Methodology Background */
.img-method { 
    background: url('images/method-bg.jpg') no-repeat center center; 
    background-size: cover; 
}

/* 5. Projects Background */
.img-projects { 
    background: url('images/projects-bg.jpg') no-repeat center center; 
    background-size: cover; 
}

/* 6. Contact Background */
.img-contact { 
    background: url('images/contact-bg.jpg') no-repeat center center; 
    background-size: cover; 
}

/* --- Support for Section-Specific Reveals --- */
.bg-reveal {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; /* Lowest layer */
}

/* Assigning your individual images */
.img-home { background: url('images/cursor-img.jpg') no-repeat center center/cover; }
.img-about { background: url('images/about-bg.jpg') no-repeat center center/cover; }
.img-advantage { background: url('images/advantage-bg.jpg') no-repeat center center/cover; }
.img-method { background: url('images/method-bg.jpg') no-repeat center center/cover; }
.img-projects { background: url('images/projects-bg.jpg') no-repeat center center/cover; }
.img-contact { background: url('images/contact-bg.jpg') no-repeat center center/cover; }

/* Ensuring the spotlight sits correctly */
.spotlight-overlay {
    position: fixed;
    z-index: 5; /* Above background, below tiles */
    pointer-events: none;
    /* ... keep your existing radial-gradient code ... */
}


/* --- NESTED TILE ARCHITECTURE --- */

.main-tile-container {
    max-width: 1000px !important;
    padding: 60px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inner-nested-tile {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 30px 25px !important;
    transition: all 0.3s ease;
}

.inner-nested-tile:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-10px);
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-card {
    text-align: left;
}

.btn-text {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-text:hover {
    letter-spacing: 1px;
    color: #fff;
}




/* --- MORPHING FLIP ANIMATION --- */

#global-morph-tile {
    position: fixed;
    z-index: 8; /* Above spotlight, below nav */
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Flipping Spring Effect */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
}

/* State when flipping */
.flipping {
    transform: rotateX(180deg) scale(0.9);
    filter: brightness(1.5);
}

.tile-placeholder {
    opacity: 0; /* Ghost tile is invisible */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Placeholders define the sizes for the JS to read */
.hero-dimensions { width: 900px; height: 500px; }
.about-dimensions { width: 700px; height: 350px; }
.advantage-dimensions { width: 1000px; height: 600px; }
.methodology-dimensions { width: 900px; height: 550px; }
.projects-dimensions { width: 1000px; height: 500px; }
.contact-dimensions { width: 800px; height: 400px; }

/* The actual content fades in when the morph tile arrives */
.tile-content {
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
    pointer-events: auto;
    z-index: 10;
    position: absolute;
    width: 100%;
    padding: 40px;
}

.snap-section.active .tile-content {
    opacity: 1;
}





/* --- CRITICAL TEXT VISIBILITY FIX --- */

/* 1. Ensure the ghost placeholder allows content to be seen */
.tile-placeholder {
    opacity: 1 !important; /* Make the container visible */
    pointer-events: none;  /* Let clicks pass through to buttons */
}

/* 2. Force text and buttons to the very front */
.tile-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 20 !important; /* Higher than the morph tile (8) and spotlight (5) */
    pointer-events: auto;   /* Re-enable clicking for buttons */
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 3. Show content only when the section is active */
.snap-section.active .tile-content {
    opacity: 1;
    visibility: visible;
}

/* 4. Ensure Hero text specifically is left-aligned as per your design */
#home .tile-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 10%;
}

/* 5. Fix for the Morph Tile z-index */
#global-morph-tile {
    z-index: 8; /* Sits behind the text (20) but above the background (1) */
    pointer-events: none; 
}


/* --- FASTER MORPHING FLIP ANIMATION --- */

#global-morph-tile {
    position: fixed;
    z-index: 8;
    pointer-events: none;
    /* Faster duration (0.4s) and snappier easing */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    transform-style: preserve-3d;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
}

/* State when flipping - reduced scale for faster feel */
.flipping {
    transform: rotateX(90deg) scale(0.95);
    filter: brightness(1.2);
}

/* Speed up the content fade-in to match */
.tile-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
    z-index: 20 !important;
    pointer-events: auto;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- About Section Floating Boxes --- */

.floating-box {
    position: absolute;
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.5s ease-out;
    opacity: 0;
}

.floating-box.animate-in {
    opacity: 1;
    transform: scale(1);
}

.floating-box-content {
    text-align: center;
}

.floating-box-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.floating-box-content p {
    font-size: 0.9rem;
    color: var(--text-slate);
}

.box-top-left {
    top: -50px;
    left: -50px;
}

.box-top-right {
    top: -50px;
    right: -50px;
}

.box-bottom-left {
    bottom: -50px;
    left: -50px;
}

.box-bottom-right {
    bottom: -50px;
    right: -50px;
}

/* --- About Section Border Animation --- */

.border-bike {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: border-run 10s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.snap-section.active .border-bike {
    opacity: 1;
}

@keyframes border-run {
    0% {
        top: 0;
        left: 0;
    }
    25% {
        top: 0;
        left: calc(100% - 20px);
    }
    50% {
        top: calc(100% - 20px);
        left: calc(100% - 20px);
    }
    75% {
        top: calc(100% - 20px);
        left: 0;
    }
    100% {
        top: 0;
        left: 0;
    }
}


/* --- PRECISE LAYOUT FIXES --- */

/* 1. Pull the Title into the center and give it space */
#advantage .section-title {
    margin-bottom: 40px !important;
    text-align: center !important;
}

/* 2. Center the Grid and add a "Safe Zone" so cards don't touch edges */
#advantage .grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 30px !important; /* This is the fix for cards touching borders */
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* 3. Center the Methodology list */
#methodology .tile-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Ensure the Morph Tile is large enough for the 3-column grid */
.advantage-dimensions { 
    width: 1100px !important; 
    height: 750px !important; 
}


/* Precise Fix to lower the Advantage Title into the tile */

#advantage .section-title {
    /* Pushes the title down from the top edge of the tile-content container */
    margin-top: 83px !important; 
    
    /* Reduces space between title and cards if they get pushed too far down */
    margin-bottom: 0.4px !important; 
    
    text-align: center !important;
    width: 100% !important;
}

/* --- METHODOLOGY FLIP CARD STYLES --- */

.method-card-container {
    perspective: 1500px; /* Essential for 3D effect */
    cursor: pointer;
    margin-top: 20px;
}

#method-card {
    width: 600px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* The 3-Spin Animation */
.rapid-flip {
    animation: triple-flip 0.7s ease-in-out;
}

@keyframes triple-flip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(720deg); } /* 360 * 3 = 1080 degrees */
}

.method-card-inner {
    text-align: center;
    padding: 40px;
}

.method-step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-cyan);
    opacity: 1;
    margin-bottom: 10px;
}

#method-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

#method-card p {
    font-size: 1.1rem;
    color: var(--text-slate);
    line-height: 1.6;
}

.click-hint {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Precise Hover Effect for Methodology Card */

#method-card {
    /* Ensures the transition for the hover effect is smooth */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

#method-card:hover {
    /* Lifts the card slightly and adds a cyan glow to match the numbers */
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan) !important;
}

/* Ensures the click-flip animation still takes priority over the hover scale */
.rapid-flip {
    animation: triple-flip 0.8s ease-in-out !important;
}


/* --- HIGH-SPEED PROJECT SLOT ROLL --- */
#project-card {
    width: 500px;
    height: 320px !important; /* Reduced height to make it look less 'stretched' */
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- AGGRESSIVE HIGH-SPEED PROJECT ROLL --- */

/* --- AGGRESSIVE ROLL WITH SLOW-DOWN SNAP --- */

/* --- AGGRESSIVE REEL-TO-SMOOTH-STOP --- */

.slot-machine-roll {
    /* Extreme Out curve: Starts at light-speed, ends with a very long glide */
    animation: reel-to-stop 1.5s cubic-bezier(0.05, 0.7, 0.1, 1) !important;
}

@keyframes reel-to-stop {
    /* Phase 1: High-Frequency "Ghost" Frames (0% - 30%) */
    0% { transform: translateY(0); filter: blur(0); opacity: 1; }
    
    10% { transform: translateY(400%); filter: blur(40px); opacity: 0; }
    11% { transform: translateY(-400%); }
    
    20% { transform: translateY(400%); filter: blur(40px); opacity: 0; }
    21% { transform: translateY(-400%); }
    
    30% { transform: translateY(400%); filter: blur(40px); opacity: 0; }
    31% { transform: translateY(-400%); }

    /* Phase 2: Deceleration & Re-entry (30% - 100%) */
    32% { transform: translateY(-150%); filter: blur(20px); opacity: 0.5; }
    
    /* The project slowly glides from -150% down to 0% for the rest of the time */
    100% { transform: translateY(0); filter: blur(0); opacity: 1; }
}

/* Ensure images fit nicely inside the rolling tile */
#project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

#project-label {
    
    color: var(--accent-cyan) !important; 
    
}




/* --- CRISP INFINITE REEL --- */

.project-reel-window {
    width: 500px;
    height: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    /* No blur here - keep it crisp */
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1); 
}

.project-frame {
    width: 500px;
    height: 320px; /* Must match window height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-frame h3 {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-top: 15px;
}

/* Ensure images are sharp during motion */
.project-frame img {
    width: 85%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    backface-visibility: hidden; /* Helps prevent flickering in some browsers */
}


/* --- PROJECTS FINAL POLISH --- */

/* 1. Glowing Effect for the Small Tile */
.project-reel-window {
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 15px rgba(0, 212, 255, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-reel-window:hover {
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.6) !important;
}

/* 2. View More Button (Top Right) */
.view-more-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: #00d4ff; /* Brand Cyan */
    color: #000518; /* Dark background color */
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    z-index: 100;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    filter: brightness(1.1);
}

/* 3. Click to Reveal Hint */
.click-hint-reveal {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}


/* --- UNIVERSAL DEVICE & ZOOM OPTIMIZATION --- */

/* 1. Tablet & Small Laptops (Width < 1200px) */
@media screen and (max-width: 1200px) {
    /* Scale down the big placeholders */
    .advantage-dimensions, 
    .projects-dimensions, 
    .methodology-dimensions, 
    .hero-dimensions { 
        width: 90% !important; 
        height: auto !important;
        min-height: 60vh;
    }

    /* Switch Advantage Grid to 2 columns */
    #advantage .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 2. Mobile & High Zoom (Width < 768px) */
@media screen and (max-width: 768px) {
    
    /* Global Text Scaling for readability */
    html { font-size: 14px; } /* Scales down 1rem units */
    
    .section-title { font-size: 2.2rem !important; }
    
    /* Ensure content doesn't get cut off vertically */
    .snap-section {
        height: auto !important; /* Allow section to grow if needed */
        min-height: 100vh;
        padding: 80px 20px !important;
    }
    
    /* --- HERO SECTION --- */
    #home .tile-content {
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    .hero-glass-card h1 { font-size: 2.5rem; }
    
    /* --- ADVANTAGE SECTION (Scrollable Grid) --- */
    #advantage .grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        /* Allow internal scrolling if cards overflow the screen height */
        max-height: 60vh; 
        overflow-y: auto; 
        padding: 10px !important;
    }
    
    .advantage-card {
        width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
    }
    
    /* --- METHODOLOGY (Responsive Flip Card) --- */
    #method-card {
        width: 100% !important;
        max-width: 350px !important; /* Prevents it from being too wide */
        height: 450px !important; /* Taller to fit text on narrow screens */
    }
    
    /* --- PROJECTS (Responsive Reel) --- */
    .project-reel-window {
        width: 100% !important;
        max-width: 340px !important; /* Fits perfectly on most phones */
        /* Height MUST remain 320px for the Javascript calculation to work */
        height: 320px !important; 
    }
    
    .project-frame {
        width: 100% !important; /* Adapts to the window width */
    }
    
    /* --- ABOUT SECTION --- */
    .floating-box {
        display: none !important; /* Hide floating elements on mobile to save space */
    }
    
    /* --- NAVIGATION --- */
    nav ul {
        display: none; /* Simple hiding for now, or use a hamburger menu */
    }
    
    header {
        justify-content: center;
        padding: 15px;
    }
    
    /* --- GENERAL FIXES --- */
    .tile-content {
        padding: 20px !important;
        width: 100% !important;
    }
    
    /* Adjust View More Button position */
    .view-more-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* 3. Landscape Mode (Short Height Screens) */
@media screen and (max-height: 600px) {
    .snap-section {
        min-height: 120vh !important; /* Force scrollability */
    }
    .project-reel-window {
        transform: scale(0.8); /* Scale down purely visual */
    }
}











/* --- LAPTOP & ZOOM STABILITY FIX --- */

/* 1. Prevent Navbar Overlap */
/* Instead of forcing exactly 100vh height, we say 'at least' 100vh.
   This allows the section to stretch if the content gets bigger (like at 150% zoom). */
.snap-section {
    min-height: 100vh !important; 
    height: auto !important; 
    padding-top: 100px !important; /* Pushes content down below the nav bar */
    padding-bottom: 50px !important;
    box-sizing: border-box; /* Ensures padding doesn't add extra width */
}

/* 2. Fix Tile Distortion on Zoom (50% - 200%) */
/* This rule says: "Be your normal pixel size, BUT if the screen is too small 
   (like when zoomed in), shrink to 90% of the screen width." */
.tile-placeholder, 
.hero-glass-card, 
.project-reel-window, 
#method-card, 
.advantage-card,
.advantage-dimensions,
.projects-dimensions,
.methodology-dimensions,
.hero-dimensions,
.about-dimensions {
    /* Keeps your original design size, but becomes fluid if space runs out */
    max-width: 90vw !important; 
}

/* 3. Center the Tiles perfectly */
.tile-placeholder {
    margin: 0 auto;
}





/* --- SOCIAL HUB & CONTACT STYLES --- */

#contact .tile-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px; /* Space between title, icons, and text */
}

/* 1. The Container for Icons */
.social-hub {
    display: flex;
    gap: 50px; /* Wide spacing for a premium look */
    margin-bottom: 20px;
}

/* 2. The Logos (Instagram, LinkedIn, X) */
.social-icon {
    font-size: 3.5rem; /* Large, clickable size */
    color: var(--accent-cyan); /* Matches website theme */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 3. The Glowing Hover Effect */
.social-icon:hover {
    transform: translateY(-8px) scale(1.1); /* Lifts up */
    color: #fff; /* Center turns white */
    /* intense cyan glow outer */
    text-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
}

/* 4. Contact Details (Email & Phone) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.contact-item {
    font-size: 1.2rem;
    color: var(--text-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: color 0.3s ease;
}

.contact-item i {
    color: var(--accent-cyan); /* Icons match theme */
    font-size: 1.1rem;
}

.contact-item:hover {
    color: #fff; /* Text brightens on hover */
}

