/* ==========================================================================
   KR Choice - Dark Theme (with Scroll Snapping)
   ========================================================================== */

:root {
    --primary: #E31E24;
    --primary-dark: #B8171C;
    --secondary: #8BA3C4;
    --bg: #0A1628;
    --bg-alt: #0F1F38;
    --surface: rgba(15, 31, 56, 0.85);
    --text: #F0F4F8;
    --text-muted: #8BA3C4;
    --border: rgba(0, 229, 255, 0.2);
    --neon: #00E5FF;
    --neon-glow: rgba(0, 229, 255, 0.15);
    
    --container-base: 1140px;
    --font-main: 'Inter', sans-serif;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Scroll Snapping Container */
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Sections for Snapping */
section, .service-block {
    height: 100vh; /* Force 100vh for snapping */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* prevent content bleed */
}

/* Override the normal padding to center content vertically */
.section-padding {
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-base);
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    display: block;
    color: var(--neon);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-glow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--neon);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--neon);
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--neon);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   Header & Navigation (Floating Island)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.nav-island {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header.scrolled .nav-island {
    background: rgba(10, 22, 40, 0.9);
    border-color: var(--neon);
    box-shadow: 0 15px 40px var(--neon-glow);
    padding: 8px 20px;
}

.logo {
    height: 40px;
    width: auto;
    /* Removed filter to retain original colors */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--neon);
}

.nav-menu a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: transparent;
    color: var(--neon) !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--neon);
}

.btn-nav:hover {
    background-color: var(--neon);
    color: #000 !important;
    box-shadow: 0 0 15px var(--neon-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--neon);
    margin: 5px 0;
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10,22,40,0.5) 50%, rgba(10,22,40,0.2) 100%);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.slide-text {
    max-width: var(--container-base);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
}

.swiper-slide-active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

.slide-text h2 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.slide-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon);
    opacity: 1;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--neon-glow);
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--surface);
    color: var(--neon);
    padding: 20px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid var(--neon);
    box-shadow: 0 0 20px var(--neon-glow);
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   Services Section (5 blocks)
   ========================================================================== */
.services-section {
    /* Services section itself is just a wrapper now, the snapping happens on .service-block */
    width: 100%;
}

.service-block {
    position: relative;
    background-attachment: fixed;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.85); /* Darker overlay for dark theme */
}

.service-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 600px;
}

.service-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.service-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--secondary);
}

/* Alternate alignment for service blocks */
.service-block:nth-child(even) .service-content {
    margin-left: auto;
    text-align: right;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.portfolio-marquee {
    display: flex;
    gap: 30px;
    width: fit-content;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.portfolio-item {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    background-color: var(--bg);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease, mix-blend-mode 0.5s ease;
    mix-blend-mode: luminosity;
    opacity: 0.5;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,229,255,0.2), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    mix-blend-mode: normal;
    opacity: 1;
}

.portfolio-item:hover .item-overlay {
    transform: translateY(0);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonial-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    height: calc(100% - 40px); /* Account for margin */
    margin: 20px; /* This margin prevents Swiper from clipping the shadow */
    box-sizing: border-box;
}

.testimonials-swiper {
    width: 100%;
    padding-bottom: 50px;
}

.testimonials-swiper .swiper-pagination-bullet {
    background-color: var(--secondary);
    opacity: 0.5;
}
.testimonials-swiper .swiper-pagination-bullet-active {
    background-color: var(--neon);
    opacity: 1;
}


.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--neon-glow);
    border-color: var(--neon);
}

.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: var(--neon);
    opacity: 0.3;
    font-family: serif;
    margin-bottom: -20px;
}

.quote-text {
    font-size: 0.95rem; /* Reduced font size */
    line-height: 1.6;
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
}

.client-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--neon);
}

.client-info span {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #050a14;
    border-top: 1px solid var(--border);
    padding: 60px 0 0 0;
    /* Removed min-height to reduce size */
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    /* Removed filter to retain original colors */
}

.footer-desc {
    color: var(--secondary);
    margin-bottom: 30px;
    max-width: 300px;
}

.accreditations {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cert-logo {
    height: 40px;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--neon);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--neon);
    box-shadow: 0 0 5px var(--neon);
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 12px;
}

.links-col a {
    color: var(--secondary);
}

.links-col a:hover {
    color: var(--neon);
    padding-left: 5px;
    text-shadow: 0 0 5px var(--neon-glow);
}

.contact-col address {
    font-style: normal;
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-methods p {
    color: var(--secondary);
    margin-bottom: 8px;
}

.contact-methods strong {
    color: var(--neon);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: var(--secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary);
}

.footer-bottom a:hover {
    color: var(--neon);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .section-title { font-size: 2.2rem; }
    .slide-text h2 { font-size: 3rem; }
    .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
    /* Disable snap on mobile for better usability */
    html {
        scroll-snap-type: none;
        overflow-y: auto;
    }
    section, .service-block {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
        padding: 80px 0;
    }
    
    .hero-section {
        height: 100vh;
        padding: 0;
    }

    .nav-island {
        border-radius: 8px;
        padding: 15px;
        background: rgba(10, 22, 40, 0.9);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        display: none;
        border-radius: 0 0 8px 8px;
        border: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        bottom: 20px;
        left: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .slide-text h2 {
        font-size: 2.2rem;
    }
}
