:root {
    --yellow: #ffea00;
    --light-blue: #00e5ff;
    --red: #d90429;
    --dark: #0a0a0a;
    --night-sky: #02040a;
    --white: #ffffff;
	--snowbound: #F5FBFF;
	--dark-blue: #0e1e47;
	--sapphire-blue:#0313a6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--dark); color: var(--white); overflow-x: hidden; scroll-behavior: smooth; }
/* LOGO */
.logo-img {width: 150px; height: auto; }

/* NAVBAR & HAMBURGER */
nav {
    position: fixed; width: 100%; padding: 2.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: 0.4s ease;
}
nav.scrolled { padding: 0.2rem 5%; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(8px); }
.logo { font-size: 1.8rem; font-weight: 900; cursor: pointer; color: white; }

/* Shrink the logo text when scrolled */
nav.scrolled .logo-img {width: 120px; height: auto; padding-top: 10px;}
.logo span { color: var(--light-blue); }
.nav-container { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a 
{
	text-decoration: none; 
	color: white; 
	font-weight: 600; 
	font-size: 1.1rem; 
	text-transform: uppercase; 
	transition: 0.3s;
}

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; transition: 0.3s; }
.bar { width: 30px; height: 3px; background: white; transition: 0.4s; border-radius: 2px; }

.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* HERO - DEEP SPACE */
#hero { background: radial-gradient(circle at center, #00072d 0%, var(--night-sky) 100%); overflow: hidden; position: relative; }

/* STARS */
.star { position: absolute; width: 15px; height: 15px; opacity: 0; transition: opacity 1.5s ease-in-out; pointer-events: none; z-index: 1; }
.shooting-star {
    position: absolute; width: 2px; height: 2px; background: white;
    box-shadow: 0 0 10px 2px white; opacity: 0; pointer-events: none; z-index: 1;
}

/* DISTANT DARK PLANETS */
.orbit-container { position: absolute; z-index: 0; pointer-events: none; opacity: 0.6; }
.oc-mercury { top: 20%; left: 20%; animation: orbitRotate 90s linear infinite; }
.oc1 { top: 10%; right: 15%; animation: orbitRotate 120s linear infinite; } 
.oc2 { bottom: 15%; left: 15%; animation: orbitRotate 180s linear reverse infinite; } 
.oc3 { top: 40%; left: 10%; animation: orbitRotate 240s linear infinite; } 
.oc-uranus { bottom: 10%; right: 10%; animation: orbitRotate 300s linear reverse infinite; }

.planet { border-radius: 50%; position: relative; box-shadow: inset -25px -25px 50px rgba(0,0,0,0.95); }

/* Mercury */
.mercury { width: 30px; height: 30px; background: radial-gradient(circle at 30% 30%, #7f7f7f, #2b2b2b); animation: axisRotate 15s linear infinite; }
/* Mars */
.mars { width: 55px; height: 55px; background: radial-gradient(circle at 30% 30%, #a54a33, #3d140a); animation: axisRotate 20s linear infinite; }
/* Saturn */
.saturn { width: 75px; height: 75px; background: radial-gradient(circle at 30% 30%, #9e936d, #2d2613); animation: axisRotate 35s linear infinite; }
.rings { 
    position: absolute; top: 50%; left: 50%; width: 170%; height: 15%; 
    border: 6px solid rgba(193, 177, 129, 0.2); border-radius: 50%; 
    transform: translate(-50%, -50%) rotateX(80deg); 
}
/* Jupiter */
.jupiter { width: 70px; height: 70px; background: repeating-linear-gradient(0deg, #8a6a56, #8a6a56 10px, #2b1d14 20px); animation: axisRotate 100s linear infinite; }
/* Uranus */
.uranus { width: 65px; height: 65px; background: radial-gradient(circle at 30% 30%, #4ea8b1, #0d2c2f); animation: axisRotate 45s linear infinite; }

@keyframes orbitRotate { from { transform: rotate(0deg) translateX(40px) rotate(0deg); } to { transform: rotate(360deg) translateX(40px) rotate(-360deg); } }
@keyframes axisRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* CLOUDS & MASCOT */
.smoke-container { position: absolute; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.smoke { position: absolute; background: rgba(255, 255, 255, 0.02); filter: blur(90px); border-radius: 50%; animation: cloudDrift 30s infinite ease-in-out; }
.s1 { width: 500px; height: 500px; top: -5%; left: -5%; }
.s2 { width: 700px; height: 400px; bottom: -5%; right: -10%; }

.hero-container { position: relative; width: 100%; max-width: 1200px; display: flex; align-items: center; z-index: 5; margin: 0 auto; padding: 0 5%; }
.hero-left { flex: 1; display: flex; justify-content: center; }
.hero-right { flex: 1; color: white; }

.floating-astronaut { width: 270px; height: auto; filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.4)); animation: floatAstronaut 6s ease-in-out infinite; }
@keyframes floatAstronaut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }

.glow-blue { color: var(--light-blue); text-shadow: 0 0 15px rgba(0,229,255,0.8); font-size: clamp(2.5rem, 8vw, 2.5rem); line-height: 1.1; margin-bottom: 20px; }

/* BUTTONS */
/* BASE BUTTON STYLES */
.btn {
    padding: 1rem 1rem;
    border-radius: 8px; /* Slightly more modern than 5px */
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother "pop" effect */
    position: relative;
    overflow: hidden;
    z-index: 1;
	width: 220px;
	text-align: center;
}

/* PRIMARY BUTTON (Yellow/Dark) */
.primary {
    background: #ffbf0d;
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 234, 0, 0.2);
}

.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 234, 0, 0.4);
    background: #fff34d; /* Slightly lighter yellow on hover */
}

.primary:active {
    transform: translateY(-1px);
}

/* SECONDARY BUTTON (Grey) */
.secondary {
    background: #3e424b;
    color: white;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.2);
}

.secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(128, 128, 128, 1);
    filter: brightness(1.1);
}

.secondary:active {
    transform: translateY(-1px);
}

/* GLASS EFFECT OVERLAY (Optional extra flare) */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::after {
    left: 100%;
}
/* ABOUT US */
.about-us {
	background-color: var(--snowbound);
	color: var(--night-sky);
}

.lead-text {
	max-width: 70%;
	text-align: justify;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 10px;
}
	
.disco-light {
  font-size: 30px;
  font-family: "Allerta Stencil", sans-serif;
  text-transform: uppercase;
  animation: discoFlicker 1.5s infinite alternate;
}

@keyframes discoFlicker {
  0% {
    /* Reduced blur values and removed the heavy 35px outer glow */
    text-shadow: 0 0 1px var(--sapphire-blue), 0 0 4px #0313a6, 0 0 8px #0313a6;
    color: white;
  }
  25% {
    text-shadow: 0 0 1px var(--sapphire-blue), 0 0 4px #9201cb, 0 0 8px #9201cb;
    color: white;
  }
  50% {
    text-shadow: 0 0 1px var(--sapphire-blue), 0 0 4px #f715ab, 0 0 8px #f715ab;
    color: white;
  }
  100% {
    text-shadow: 0 0 1px var(--sapphire-blue), 0 0 4px #34edf3, 0 0 8px #34edf3;
    color: white;
  }
}

/* MACHINE SECTION */
#machine
{
	background:var(--night-sky);
}

.machine-frame-img { max-width: 400px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.15)); }
.vending-image { width: 100px; height: auto; border-radius: 10px; }

/* SECTIONS */
.parallax-section { position: relative; min-height: 100vh; padding: 100px 5%; display: flex; align-items: center; justify-content: center; }
.light-theme { background: var(--white); color: var(--dark); }
.container { width: 100%; max-width: 1200px; text-align: center; }
.section-title { color: var(--dark-blue); font-size: 2.5rem; margin-bottom: 30px; font-family: 'Montserrat'; text-transform: uppercase; }

.secondary-title {
	color: var(--sapphire-blue); 
	font-size: 1.7rem;
	margin-bottom: 30px; 
	font-family: 'Montserrat'; 
}

/* BLOG FILTERING */
.filter-container { margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; margin: 5px; border: 2px solid var(--red); background: none; cursor: pointer; border-radius: 20px; font-weight: 600; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--red); color: white; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card { background: #f9f9f9; padding: 25px; border-radius: 12px; text-align: left; cursor: pointer; transition: 0.3s; border-bottom: 4px solid var(--light-blue); }

/* FORMS & FOOTER */
.contact-wrapper { max-width: 700px; margin: 0 auto; background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px; }
.input-group { display: flex; gap: 20px; }
input, textarea { padding: 15px; border-radius: 8px; border: 1px solid #444; background: #1a1a1a; color: white; width: 100%; margin-bottom: 20px; }
footer { background: #050505; padding: 50px 5%; text-align: center; border-top: 1px solid #222; }
.footer-links a { margin: 0 15px; color: #888; text-decoration: none; }

#scrollTop { position: fixed; bottom: 30px; right: 30px; background: var(--red); color: white; width: 50px; height: 50px; border-radius: 50%; border: none; font-size: 1.5rem; cursor: pointer; display: none; z-index: 2000; }
/*CONTACT*/
/* --- CONNECT SECTION BASE --- */
.connect-hub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.touchpoint-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.touchpoint-card:hover {
    background: rgba(0, 225, 255, 0.05);
    border-color: var(--light-blue);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 255, 0.2);
}

.tp-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--light-blue);
    transition: 0.3s;
}

.touchpoint-card:hover .tp-icon {
    background: var(--light-blue);
    color: #111; /* Dark contrast color */
}

.touchpoint-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light-blue);
}

.touchpoint-card p:not(.tp-detail) {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.touchpoint-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Visibility for specific contact details */
.tp-detail {
    color: var(--white) !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.tp-action {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--light-blue);
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.touchpoint-card:hover .tp-action {
    border-bottom: 2px solid var(--light-blue);
}

/* MODAL */

.modal {
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(2, 4, 10, 0.95); /* Deeper "Night Sky" overlay */
    align-items: center; 
    justify-content: center;
    backdrop-filter: blur(10px); /* Modern frosted effect */
}

.modal-content {
    background: #0d0d0d; /* Obsidian-style dark */
    color: var(--white);
    padding: 60px;
    border-radius: 20px; 
    width: 85%; 
    max-width: 1100px; /* Perfect for wide laptop reading */
    position: relative;
    border: 1px solid rgba(0, 229, 255, 0.3); /* Subtle light-blue glow border */
    max-height: 85vh; 
    overflow-y: auto;	
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
}	
/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #111;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 10px;
}
.close-modal
{
	/* Pinned to the top-right of the viewport */
    position: fixed; 
    top: 70px; 
    right: 120px; 
    left: auto; /* Ensure it stays on the right for larger screens */
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Slightly larger for desktop/tab */
    height: 60px;
    border-radius: 50%;
    /* Styling */
    color: var(--white);
    font-size: 2.2rem;
    z-index: 4000; /* High z-index to stay above modal scrollbar */
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.close-modal:hover
{
	background: rgba(255, 255, 255, 0.25); /* Slightly more opaque */
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 
                0 0 40px rgba(255, 255, 255, 0.1);
    transform: scale(1.05); /* Slight "pulse" to indicate activity */
}

/* MACHINE SLIDER STYLES */
.machine-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
	
	/* Glassmorphism Effect */
    /*background: rgba(255, 255, 255, 0.03); /* Very subtle white tint */
    background: rgba(0, 229, 255, 0.06); /* Very subtle blue tint */
    backdrop-filter: blur(12px);           /* The "frosting" effect */
    -webkit-backdrop-filter: blur(12px);    /* Support for Safari */
    border: .5px solid rgba(255, 255, 255, 0.1); /* Thin light border */
    border-radius: 10px;                   /* Rounded edges for a modern feel */
    
    /* Spacing and Shadow */
    padding: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    /* Ensure it doesn't clip the outer glow of planets/stars behind it */
    z-index: 5;
}


/* Optional: Ensure the dots also use this grey-white glow when active */
.dot.active {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.machine-window {
    width: 100%;
    overflow: hidden;
}

.machine-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.machine-slide.active {
    display: block;
}

.machine-flex-container {
    display: flex;
    align-items: flex-start; /* Forces both info and media to the top boundary */
    gap: 60px;
    text-align: left;
    padding: 2px 20px 2px 20px;
}

/* Columns */
/* Ensure the image container has no extra top spacing */
.machine-media {
    flex: 1;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.machine-description {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.6; /* Adjust line height for clean visual alignment */
    font-family: 'Poppins', sans-serif;
    color: #ccc;
}

.machine-info {
	flex: 1;
    padding-top: 0; 
    margin-top: 0;
	padding-left: 90px;
}

.machine-title-desktop {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.machine-title-mobile { display: none;
 }

/* Arrows */
.main-arrow {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 50%;
}

.main-arrow:hover { background: var(--light-blue); color: var(--dark); }

/* Nested Image Slider & Dots */
.image-stack {
    position: relative;
    width: 100%;
    max-width: 150px; /* Adjust based on your image size */
    height: 300px;    /* Critical: must match machine height */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nested-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;    /* Makes machine fill the container height */
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    pointer-events: none; /* Prevents images from blocking dot clicks */
}

.nested-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* Dots Styling */
.dot-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.dot {
    height: 8px; width: 8px; margin: 0 5px;
    background-color: #444; border-radius: 50%;
    display: inline-block; cursor: pointer; transition: 0.2s;
}
.dot.active { background-color: var(--light-blue); box-shadow: 0 0 10px var(--light-blue); }


/* --- MERGED MOBILE RESPONSIVENESS (MAX 600PX) --- */
@media (max-width: 600px) {
	html, body {
        /* Fixes the "double scroll" lag and stutter[cite: 1] */
        scroll-behavior: auto !important;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    /* 1. NAVIGATION & GLOBAL */
    .hamburger { 
        display: flex; 
        z-index: 1001; 
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        transition: 0.4s;
        padding: 20%;
    }
    
    .nav-links a {
        font-size: 25px;
    }

    .nav-links.active { 
        right: 0; 
    }

    .parallax-section {
        min-height: 100%;
        justify-content: center;
    }

    .input-group { 
        flex-direction: column; 
        gap: 0; 
    }

    /* 2. HERO SECTION FIX */
    #hero.parallax-section {
        height: 100dvh; 
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Start from top to prevent bottom cutoff */
        align-items: center;
        padding: 0;
        /*overflow-y: auto; /* Allow scrolling if screen is very small */
		overflow: hidden; /* CRITICAL: Prevents the "inner scroll" trap */
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        width: 100%;
        height: auto !important; /* Changed from 100% to fit content */
        justify-content: flex-start; 
        gap: 8px; /* Tightened gap */
    }

    .hero-left {
        order: 1;
        width: 100%;
    }

    .floating-astronaut {
        width: 120px !important; /* Slightly smaller for mobile screens */
        margin: 0 auto !important;
        margin-top: 20vh !important; /* Reduced to provide more vertical space */
        margin-bottom: 10px !important;
        position: relative !important;
        z-index: 10;
    }

    .hero-right {
        order: 2;
        width: 100%;
    }

    .hero-right h1 {
        font-size: 1.8rem; /* Scaled down slightly */
        margin-bottom: 5px;
        line-height: 1.1;
    }

    .hero-right p {
        padding: 0 20px;
        font-size: 16px; /* Reduced from 20px to save space */
        margin-bottom: 2px !important;
    }

    .glow-blue {
        font-size: 10px;
        line-height: 1;
    }
    
    .hero-text {
        font-size: 11px;
    }

    .cta-group {
        order: 3; 
        display: flex !important;
        flex-direction: column !important; 
        gap: 8px !important; /* Reduced gap */
        width: 100% !important;
        align-items: center !important; /* Horizontal alignment */
        justify-content: center !important; /* Vertical alignment */
        margin-top: 5px !important;
        padding-bottom: 30px; 
    }

    .cta-group .btn {
        width: 75% !important;
        max-width: 250px !important;
        text-align: center !important; /* Fix alignment inside the button */
        padding: 12px 15px !important; /* Thinner buttons for mobile */
        font-size: 13px !important;
        margin: 0 auto !important; /* Extra insurance for centering */
    }

    /* 3. ABOUT SECTION */
    .section-title {
        font-size: 28px;
        margin-bottom: 8px; 
    }
    
    .secondary-title {
        color: var(--sapphire-blue); 
        font-size: 18px;
        margin-bottom: 8px; 
        font-family: 'Montserrat'; 
    }

    .lead-text {
        max-width: 90%;
        font-size: 12px;
    }
    
    .disco-light {
        font-size: 21px;
        font-family: "Allerta Stencil", sans-serif;
        -webkit-text-stroke: .15px var(--sapphire-blue);
        text-transform: uppercase;
        animation: discoFlicker 1.5s infinite alternate;
    }

    /* 4. MACHINE SLIDER SECTION */
    .machine-slider-outer {
        padding: 20px 15px;
    }

    .machine-flex-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 10px; 
    }

    .machine-title-desktop { 
        display: none; 
    }

    .machine-title-mobile {
        display: block;
        text-align: left;
        font-family: 'Montserrat', sans-serif;
        color: var(--light-blue);
        margin-bottom: 10px;
        font-size: 18px;
    }

    .machine-media { 
        order: 1; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .machine-info { 
        order: 2; 
        padding-left: 0;
        margin-top: 10px;
    }

    .machine-description {
        text-align: justify;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.6;
        color: #eeeeee;
        max-width: 100%;
        font-family: 'Poppins', sans-serif;
    }

    .image-stack { 
        height: 180px;
        width: 100%;
        max-width: 140px;
        margin: 0 auto;
    }

    .nested-img {
        max-height: 100%;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-arrow { 
        padding: 8px; 
        font-size: 1.2rem; 
    }

    .dot-navigation {
        margin-top: 10px;
    }

    .modal-content {
        padding: 35px;
        border-radius: 10px; 
        width: 100%; 
        max-width: 550px; 
        max-height: 90%; 
    }

    .close-modal {
        position: fixed; 
        top: 50px; 
        right: 20px; 
        left: auto; 
        background: rgba(255, 255, 255, 0.2); 
        backdrop-filter: blur(10px); 
        border: 1px solid rgba(255, 255, 255, 0.3); 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%; 
        font-size: 1.6rem;
        color: var(--white); 
        z-index: 3100; 
        cursor: pointer;
        transition: 0.3s ease;
    }
    
    /* 5. CONTACT US */
    .connect-hub {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .touchpoint-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
        justify-content: center !important; 
        text-align: center !important;
        padding: 25px 15px !important; 
    }

    .tp-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 45px !important; 
        height: 45px !important;
        flex-shrink: 0 !important; 
        margin: 0 auto 12px auto !important;
        border-radius: 50% !important;
    }

    .touchpoint-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .tp-detail, 
    .touchpoint-card p {
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .tp-detail {
        font-size: 13px;
        color: var(--white) !important;
        word-break: break-word;
        margin-bottom: 6px;
    }

    .touchpoint-card p:not(.tp-detail) {
        color: #aaa;
        font-size: 10px;
        margin-bottom: 8px;
    }

    .tp-action {
        margin: 5px auto 0 auto !important; 
        font-size: 0.8rem;
        text-align: center !important;
        width: 100%;
    }
	
	.touchpoint-card:hover .tp-action {
		border-bottom: none !important;
	}

    /* 6. FOOTER */
    footer {
        padding: 20px 15px !important;
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .footer-logo {
        font-size: 12px !important;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--white);
        margin-bottom: 5px;
    }

    .footer-links {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important; 
        width: 100%;
        padding-right: 40px !important; 
        box-sizing: border-box;
    }

    .footer-links a {
        font-size: 11px !important;
        text-decoration: none;
        color: #aaa !important;
        white-space: nowrap; 
    }

    footer p {
        font-size: 9px !important;
        color: #555 !important;
        margin-top: 8px;
        padding-right: 40px !important; 
    }
}/* --- MERGED TABLET RESPONSIVENESS (MAX 850PX) --- */
@media (min-width: 601px) and (max-width: 850px) {

    /* 1. NAVIGATION & GLOBAL */
    .hamburger { 
        display: flex; 
        z-index: 1001; 
        transform: scale(1.15); 
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        transition: 0.4s;
        padding: 10% 5%;
    }
    
    .nav-links a {
        font-size: 30px;
    }

    .nav-links.active { 
        right: 0; 
    }

    /* FIX: Prevents previous sections from showing at the top when clicking menu links */
    .parallax-section {
        min-height: 100vh;
        justify-content: center;
        scroll-margin-top: 60px; /* Adjust this value to match your navbar height */
    }

    .input-group { 
        flex-direction: column; 
        gap: 15px; 
    }

    /* 2. HERO SECTION (Full Screen & Stacked) */
    #hero.parallax-section {
        height: 100dvh; 
        min-height: 100dvh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        padding: 0;
        overflow: hidden;
        scroll-margin-top: 0; /* Hero usually doesn't need the offset */
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 92%; 
        max-width: 850px; 
        height: auto !important; /* Changed from 100% to prevent overflow */
        padding-top: 20px; 
        justify-content: center;
        gap: 20px; /* Tightened gap for better vertical fit */
    }

    .hero-left {
        order: 1; 
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .floating-astronaut {
        width: 180px !important; /* Scaled down for tablet height safety */
        margin: 0 auto !important;
        margin-top: 15vh !important; /* Pulls mascot up to make room for buttons */
        margin-bottom: 0px;
    }

    .hero-right {
        order: 2; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Ensures text wrapper is centered */
    }

    .hero-right h1 {
        font-size: clamp(2.2rem, 6vw, 3.5rem); 
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .hero-right p {
        padding: 0 8%;
        max-width: 700px;
        margin: 0 auto;
        font-size: clamp(1rem, 2.5vw, 1.3rem); 
    }

    .glow-blue {
        font-size: clamp(14px, 2.2vw, 18px);
        line-height: 1.3;
    }
    
    .hero-text {
        font-size: 18px;
    }

    /* 3. BUTTON ALIGNMENT FIX FOR TABLET */
    .cta-group {
        order: 3; 
        display: flex !important;
        flex-direction: column !important; /* Vertical stack */
        gap: 15px !important;
        width: 100% !important;
        align-items: center !important; /* Horizontal centering */
        justify-content: center !important;
        margin-top: 10px !important;
        padding-bottom: 40px;
    }

    .cta-group .btn {
        width: 280px !important; /* Uniform width for both buttons */
        margin: 0 !important;    /* Forces center by removing desktop side margins */
        text-align: center !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        font-weight: 600;
        display: block !important; /* Ensures it behaves as a block in the flex column */
    }
	
	.btn {
		font-weight: 500;
		width: 150px;
	}

    /* 4. ABOUT SECTION */
    .section-title {
        font-size: clamp(30px, 8vw, 50px);
        margin-bottom: 25px;
    }

    .lead-text {
        width: 92%;
        max-width: 800px; 
        margin: 0 auto;
        font-size: clamp(14px, 2.8vw, 17px);
        line-height: 1.7;
    }

    .disco-light {
        font-size: 25px;
        font-family: "Allerta Stencil", sans-serif;
        -webkit-text-stroke: .15px var(--sapphire-blue);
        text-transform: uppercase;
        animation: discoFlicker 1.5s infinite alternate;
    }

    /* 5. MACHINE SLIDER SECTION */
    .machine-slider-outer {
        padding: 40px 30px;
        width: 100%;
    }

    .machine-flex-container { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 25px; 
        max-width: 900px;
        margin: 0 auto;
    }

    .machine-title-desktop { 
        display: none; 
    }

    .machine-title-mobile {
        display: block;
        text-align: center; 
        font-family: 'Montserrat', sans-serif;
        color: var(--light-blue);
        margin-bottom: 20px;
        font-size: clamp(20px, 4.5vw, 28px);
    }

    .machine-media { 
        order: 1; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .machine-info { 
        order: 2; 
        padding: 0 !important;
        margin-top: 20px;
    }

    .machine-description {
        text-align: center !important; 
        font-size: clamp(14px, 2.2vw, 17px);
        line-height: 1.8;
        color: #eeeeee;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        font-family: 'Poppins', sans-serif;
    }

    .image-stack { 
        height: clamp(250px, 40vh, 400px); 
        width: 100%;
        max-width: clamp(200px, 40vw, 350px);
        margin: 0 auto;
    }

    .nested-img {
        max-height: 100%;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-arrow { 
        padding: 12px; 
        font-size: 1.6rem; 
    }

    .dot-navigation {
        margin-top: 25px;
        gap: 15px;
    }

    .close-modal {
        position: fixed; 
        top: 100px; 
        right: 40px; 
        background: rgba(255, 255, 255, 0.1); 
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        color: var(--white);
        font-size: 2rem;
        z-index: 4000; 
        transition: all 0.3s ease;
    }
}

/* LAPTOP/DESKTOP MODAL WIDTH */
@media (min-width: 851px) and (max-width: 1000px){
    .modal-content {
        width: 85% !important; /* Overrides the inline 90% */
        max-width: 1100px !important; /* Overrides the 600px limit */
        padding: 60px; /* Gives content more breathing room */
        border: 1px solid var(--light-blue) !important; /* Optional: adds a space-theme glow */
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    }

    /* Adjust the text for better readability on wider screens */
    #modal-body {
        font-size: 1.1rem;
        column-gap: 40px; /* Optional: allows you to use column-count for very long posts */
    }
	.floating-astronaut {
        width: 200px !important; /* Slightly smaller for mobile screens */
    }
	.btn {
		font-weight: 600;
		width: 120px;
		font-size:15px;
	}
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }