@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #0f3460;
    --primary-light: #16213e;
    --primary-dark: #20208d;
    --accent: #e94560;
    --gold: #fbbf24;
    --gold-dark: #d97706;
    --bgcard: #589ccd;

    /* Blue Theme Adaptation (Based on original site) */
    --ksk-blue: #0086d4;
    --ksk-blue-dark: #005a9e;
    --ksk-blue-light: #e0f2fe;

    /* Neutrals */
    --white: #41b0d6;
    --gray-50: #0d47a1;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-800: #000d2e;
    --gray-900: #0f172a;

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 134, 212, 0.3);

    /* Transitions */
    --trans-default: all 0.3s ease;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: var(--font-main);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-default);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ksk-blue), var(--ksk-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: lavender;
    position: relative;
    display: inline-block;
}



.section-subtitle {
    color: lavenderblush;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--trans-default);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ksk-blue), var(--ksk-blue-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(0, 134, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 134, 212, 0.6);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #fb923c);
    color: var(--gray-900);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #ff8903);
    color: white !important;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e19315, #b96e18);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(43, 68, 193, 0.608);
    /* Solid background to fully cover marquee */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--trans-default);
}

/* Blocker element to ensure nothing shows above header */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    max-width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgb(255, 255, 0);
}

.logo-text span {
    font-size: 15px;
    color: rgb(60, 255, 0);
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: auto;
}

/* Header Buttons Container (right side) */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

/* Call Now Button */
.btn-call {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #d97706, #b45309);
}


.nav-link {
    font-weight: 500;
    color: rgb(0, 255, 208);
    position: relative;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--ksk-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-header {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

/* Header CTA Button (appears on scroll) */
.header-cta-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    animation: fadeInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
    vertical-align: middle;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #d97706, #b45309);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        /* Start from Left */
        right: auto;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
        flex-direction: column;
        justify-content: flex-start;
        /* Items start at top */
        padding-top: 60px;
        /* Space for top area */
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        /* Shadow on right */
        transition: left 0.4s ease;
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
        right: auto;
    }

    /* LinkedIn-Style Professional Header for Mobile Menu */
    .nav-links::before {
        content: 'KSK VASU & Co.';
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 30px 20px 25px;
        background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        background-image:
            url('images/Group 2.png'),
            linear-gradient(135deg, #0f3460 0%, #16213e 100%);
        background-size: 80px auto, cover;
        background-position: center 20px, center;
        background-repeat: no-repeat, no-repeat;
        padding-top: 110px;
        font-size: 1.4rem;
        font-weight: 700;
        color: white;
        letter-spacing: 0.5px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        order: -1;
    }

    .nav-link {
        color: #334155;
        font-weight: 500;
        text-align: left;
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Target the Call Now button specifically in mobile menu */
    .nav-links .btn-primary {
        margin-top: 20px;
        /* Space after Contact */
        margin-bottom: 40px;
        width: 80% !important;
        /* Override inline width */
        height: 45px !important;
        border-radius: 8px !important;
        align-self: center;
        background: #f59e0b;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    }

    .mobile-toggle {
        display: block;
        z-index: 1002;
    }

    /* Menu Backdrop */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .menu-backdrop.active {
        opacity: 1;
        pointer-events: all;
    }
}


/* =========================================
   MARQUEE SECTION
   ========================================= */
.marquee-container {
    position: fixed;
    top: 95px;
    left: 0;
    width: 100%;
    background: #ffd700;
    z-index: 999;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 10px 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.marquee-content {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.marquee-text {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.marquee-text span {
    color: rgba(0, 0, 0, 0.95);
    font-weight: 600;
    font-size: 16px;
    padding-right: 50px;
    display: inline-block;
}

.marquee-container:hover .marquee-text {
    animation-play-state: paused;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content block to left */
    /* Background moved to ::before for blur effect */
    color: lavender;
    padding-top: 130px;
    /* Header height */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/111.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(0px);
    /* Blur effect */
    z-index: -1;
    transform: scale(1.05);
    /* Prevent blur edges */
    animation: bgScroll 30s linear infinite alternate;
    /* Horizontal scroll animation */
}

@keyframes bgScroll {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-left: 5%;
    /* Align left with some spacing */
    margin-right: 0;
    text-align: left;
}

.hero-tag {
    font-size: 35px;
    font-weight: 700;
    color: #fff7c8;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tag1 {
    font-size: 22px;
    font-weight: 700;
    color: #eaff00;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    color: #ffffff;
}

.hero p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0;
    max-width: 700px;
    line-height: 1.6;
    /* Removed auto margins for left alignment */
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Hero Text + Button container */
.hero-text-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align flex items */
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-text-btn p {
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    gap: 20px;
    /* justification default is flex-start (left) */
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-btns .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hero Button Color Override (Orange/Gold) */
#hero-cta {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: white !important;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4) !important;
    border: none;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#hero-cta:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.6) !important;
    transform: translateY(-2px);
}

/* Sticky Mode - When button follows scroll */
#hero-cta.sticky-mode {
    box-shadow: 0 10px 30px rgba(205, 3, 255, 0.5);
    animation: pulse-gold 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        background-attachment: scroll;
        /* Better for mobile */
        text-align: left;
        /* As requested in previous prompt */
        justify-content: flex-start;
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .hero-content {
        padding-left: 20px;
        align-items: flex-start;
        margin-left: 0;
        /* Reset margin for true centering */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        /* Center the button */
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================
   FEATURES / SERVICES
   ========================================= */
.features {
    padding: 50px 0px 50px 0px;
    background: var(--bgcard);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--trans-default);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--ksk-blue-light);
    z-index: -1;
    transition: 0.4s ease;
    opacity: 0.3;
}

.feature-card:hover::before {
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--ksk-blue);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--ksk-blue);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 134, 212, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
}

/* =========================================
   PRODUCTS
   ========================================= */
.products {
    padding: 50px 0 50px 0;
    background: var(--bgcard);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--trans-default);

}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.product-info p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: 50px 0 50px 0;
    background: var(--bgcard);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-text h2 {
    font-size: 2.5rem;
    font-family: sans-serif;
    margin-bottom: 1.5rem;
    color: rgb(255, 251, 0);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-weight: 500;
    color: white;
    /* Better contrast on blue bg */
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.check-list li:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.check-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--ksk-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        /* Image on top on mobile */
    }
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 60px 0;
    background: #0f172a;
    color: white;
}

.contact-title {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.contact-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    transition: var(--trans-default);
}

.contact-card:hover {
    background: #273549;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Icon Wrapper with colored backgrounds */
.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon-wrapper.location {
    background: linear-gradient(135deg, #1e3a5f, #2d4a6f);
}

.contact-icon-wrapper.phone {
    background: linear-gradient(135deg, #1a4d2e, #2d6b40);
}

.contact-icon-wrapper.email {
    background: linear-gradient(135deg, #5c4a1a, #7a6321);
}

.contact-icon-wrapper.hours {
    background: linear-gradient(135deg, #4a1a5c, #6b2180);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.contact-highlight {
    font-size: 1.1rem;
    color: #fbbf24 !important;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-desc {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-link {
    color: #fbbf24 !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #fcd34d !important;
}

.contact-status {
    color: #22c55e !important;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CTA BANNER SECTION
   ========================================= */
.cta-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1810 50%, #1a1a2e 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.cta-text p {
    color: #9ca3af;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.cta-secondary {
    background: transparent;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #050570;
    color: var(--gray-300);
    padding: 20px 0 1px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    margin-bottom: 30px;
}

.copyright {
    font-size: 0.9rem;
    padding-top: 5px;
    opacity: 0.7;
}

/* =========================================
   STICKY FLOATING CTA (The Fix)
   ========================================= */
#floating-cta-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease-out,
        visibility 0.3s;
    will-change: transform, opacity;
}

#floating-cta-container.visible {
    visibility: visible;
}

.floating-btn {
    background: linear-gradient(145deg, #cd03ff, #18d3f5);
    color: lavender;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse-gold 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.05);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 255, 203, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Mobile Floating CTA - Centered */
@media (max-width: 768px) {
    #floating-cta-container {
        bottom: 20px;
        right: 0;
        left: 0;
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0 20px;
    }

    .floating-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

/* =========================================
   LOADING SCREEN
   ========================================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.brick-loader {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    width: 80px;
    height: 50px;
    margin: 0 auto 20px;
}

.brick {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    border-radius: 3px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    animation: brickBuild 1.5s ease-in-out infinite;
    opacity: 0;
    transform: translateY(-20px);
}

.brick-1 {
    animation-delay: 0s;
}

.brick-2 {
    animation-delay: 0.15s;
}

.brick-3 {
    animation-delay: 0.3s;
}

.brick-4 {
    animation-delay: 0.45s;
}

.brick-5 {
    animation-delay: 0.6s;
}

.brick-6 {
    animation-delay: 0.75s;
}

@keyframes brickBuild {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(5px) scale(0.9);
    }
}

.loader-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-brand {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-container {
    position: fixed;
    top: 130px;
    /* Default value - JavaScript dynamically updates this based on actual header height */
    left: 0;
    width: 100%;
    background: rgb(101, 201, 1);
    z-index: 999;
    /* Just below header (1000) to ensure it never overlaps */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 5px 0;
    /* Ensure marquee clips properly and never shows above header */
    clip-path: inset(0 0 0 0);
}

.marquee-content {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.marquee-text {
    display: flex;
    white-space: nowrap;
    animation: smooth-scroll 30s linear infinite;
}

.marquee-text span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 16px;
    padding-right: 50px;
    display: inline-block;
}

.marquee-container:hover .marquee-text {
    animation-play-state: paused;
}

@keyframes smooth-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   NEW YEAR CELEBRATION
   ========================================= */
.newyear-hidden {
    display: none !important;
}

#newyear-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: none;
}

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 100001;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    top: -10px;
    opacity: 0;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotateZ(720deg);
    }
}

.newyear-banner {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #ffed4e 50%, var(--gold) 100%);
    padding: 8px 0;
    z-index: 500;
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4);
    overflow: hidden;
}

.newyear-banner-text {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #000;
    animation: bannerSlide 30s linear infinite;
    white-space: nowrap;
}

@keyframes bannerSlide {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-200%);
    }
}

@media (max-width: 768px) {
    .newyear-banner-text {
        font-size: 0.7rem;
        animation: bannerSlide 15s linear infinite;
    }
}

/* =========================================
   DEVELOPER SECTION (Premium)
   ========================================= */

/* =========================================
   BREATHING LINE EFFECT
   ========================================= */
@keyframes breathingLine {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
        transform: translateX(-50%) scaleX(0.95);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
        transform: translateX(-50%) scaleX(1);
    }

    100% {
        opacity: 0.4;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
        transform: translateX(-50%) scaleX(0.95);
    }
}

.features,
.products,
.about,
.contact,
.developer-section,
footer {
    position: relative;
}

.features::after,
.products::after,
.about::after,
.contact::after,
.developer-section::after,
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: breathingLine 3s ease-in-out infinite;
    border-radius: 2px;
}

.developer-section {
    padding: 10px 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.developer-heading {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.developer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 134, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.developer-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0px 30px 20px 30px;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    transition: all var(--trans-default);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: block;
    /* Override flex */
}

.developer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
}

.developer-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(102, 126, 234, 0.4) 60deg,
            transparent 120deg,
            rgba(59, 130, 246, 0.4) 180deg,
            transparent 240deg,
            rgba(102, 126, 234, 0.4) 300deg,
            transparent 360deg);
    animation: rotateGlow 8s linear infinite;
    opacity: 0;
    transition: opacity var(--trans-default);
}

.developer-card:hover .developer-glow {
    opacity: 1;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.developer-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.developer-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.developer-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #667eea, #764ba2, #3b82f6);
    border-radius: 50%;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.developer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    border: 4px solid #1a1a2e;
}

.developer-info {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.developer-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.developer-role {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

.developer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--trans-default);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.developer-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

.developer-btn svg {
    transition: transform var(--trans-default);
}

.developer-btn:hover svg {
    transform: translateX(5px);
}

/* Developer Section Mobile */
@media (max-width: 600px) {
    .developer-card {
        padding: 28px 20px;
    }

    .developer-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .developer-info {
        text-align: center;
    }

    .developer-name {
        font-size: 1.3rem;
    }

    .developer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   GLOBAL MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {

    /* Global Typography Reduction */
    html {
        font-size: 14px;
        /* Base scale reduction */
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* Container Spacing */
    .container {
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* Section Padding Reduction */
    .features,
    .products,
    .about,
    .contact,
    .developer-section {
        padding: 40px 0 !important;
    }

    /* Card Compactness */
    .feature-card,
    .product-card,
    .service-card,
    .contact-card,
    .developer-card {
        padding: 15px !important;
        /* Reduced padding from 20px */
        border-radius: 12px !important;
    }

    /* Reduce icon size */
    .feature-icon,
    .service-icon {
        font-size: 1.5rem !important;
        /* Reduced from 2rem */
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        margin-bottom: 10px !important;
    }

    /* Compact Typography for Cards */
    .feature-card h3,
    .product-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .feature-card p,
    .product-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Product Grid Sizing */
    .products-grid,
    .features-grid {
        gap: 15px !important;
        /* Reduced gap from 20px */
        margin-top: 20px !important;
    }

    /* Hero Specifics */
    .hero {
        padding-top: 120px !important;
        padding-bottom: 30px !important;
        min-height: 80vh !important;
    }

    /* Faster background animation on mobile */
    .hero::before {
        animation: bgScroll 5s linear infinite alternate !important;
        /* Faster speed */
    }

    @keyframes waveMove {
        0% {
            background-position: center center;
        }

        25% {
            background-position: left center;
        }

        50% {
            background-position: center top;
        }

        75% {
            background-position: right center;
        }

        100% {
            background-position: center center;
        }
    }

    .hero-content {
        padding: 0 15px !important;
        text-align: center !important;
        /* Ensure centered on mobile */
        margin: 0 auto !important;
        /* Center container on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text-btn {
        align-items: center !important;
        /* Center flex items on mobile */
    }

    .hero-btns {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        /* Center buttons on mobile */
    }

    .hero p {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-tag {
        font-size: 1.1rem !important;
    }

    .hero-text-btn {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .hero-text-btn p {
        font-size: 1rem !important;
        flex: 1;
        text-align: center;
        /* Ensure text is centered on mobile */
    }

    #hero-cta {
        padding: 10px 20px !important;
        /* Smaller button for mobile */
        font-size: 0.9rem !important;
        width: auto !important;
        /* Don't take full width if set elsewhere */
    }

    .hero-text-btn .btn {
        white-space: nowrap;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    /* Grid Adjustments */
    .features-grid,
    .products-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    /* Sticky Button Mobile Position */
    #floating-cta-container {
        bottom: 15px !important;
        padding: 0 15px !important;
    }

    /* Header Mobile Optimization */
    .header {
        padding: 10px 0 !important;
    }

    .logo-img {
        height: 75px !important;
    }

    .logo-text h1 {
        font-size: 1.1rem !important;
    }

    .logo-text span {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }

    .mobile-toggle {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: white !important;
    }

    /* Redundant Mobile Nav Styles Removed - Consolidated in main media query */

    /* Mobile Navigation (Amazon Style Drawer) */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        /* Drawer width */
        max-width: 320px;
        height: 100vh;
        background: rgb(187, 220, 253);
        flex-direction: column;
        padding: 0;
        gap: 0 !important;
        transition: left 0.3s ease;
        z-index: 10001;
        /* Above everything */
        margin-left: 0 !important;
        overflow-y: auto;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        left: 0;
    }

    /* Drawer Header */
    /* Mobile Nav Header */
    .mobile-nav-headerlogo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
        padding-top: 5px;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 10px;
        background: linear-gradient(135deg, var(--ksk-blue), var(--ksk-blue-dark));
        width: 100%;
        margin-bottom: 10px;
    }

    .mobile-logo-img {
        height: 90px;
        margin-right: 0;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .mobile-logo-text h3 {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 1.2rem;
        color: white;
        line-height: 1;
        letter-spacing: -0.5px;
    }

    .mobile-logo-text span {
        font-size: 0.7rem;
        color: var(--gold);
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: 700;
    }

    /* Fixed styling for Call Button in Mobile Menu */
    .nav-links .mobile-call-btn {
        width: 45% !important;
        margin: 15px auto !important;
        display: flex;
        justify-content: center;
        border-radius: 12px;
        padding: 12px 10px;
        background: linear-gradient(135deg, var(--gold), #f59e0b);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }

    /* Drawer Items */
    .nav-link {
        font-size: 1.1rem !important;
        padding: 15px 20px;
        color: #333 !important;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
        display: block;
        font-weight: 500;
        transition: background 0.2s;
    }

    .nav-link:hover,
    .nav-link:active {
        background: #f5f5f5;
        color: var(--ksk-blue) !important;
        padding-left: 25px;
        /* Subtle slide */
    }

    /* Mobile Header Buttons (Menu Footer) */
    .header-buttons {
        position: fixed;
        bottom: 0;
        left: -100%;
        /* Hidden initially */
        width: 85%;
        max-width: 320px;
        background: white;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid #eee;
        transition: left 0.3s ease;
        z-index: 10002;
    }

    .nav-links.active~.header-buttons,
    .header-buttons.active {
        /* Ensure it slides with menu */
        left: 0;
    }

    /* Mobile Header Buttons (Menu) */
    .btn-call,
    .header-cta-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem !important;
        padding: 12px 20px !important;
    }
}

/* Universal Sticky Bottom Button (Desktop and Mobile) */
.universal-sticky-btn {
    position: fixed;
    bottom: -100px;
    right: 20px;
    left: auto;
    transform: none;
    width: auto;
    max-width: 220px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
}

.universal-sticky-btn.visible {
    bottom: 25px;
    opacity: 1;
    pointer-events: auto;
}

.universal-sticky-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.5);
}

/* Hide sticky button when menu is open */
body:has(.nav-links.active) .universal-sticky-btn {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile: Center the sticky button */
@media (max-width: 768px) {
    .universal-sticky-btn {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(70% - 40px);
        max-width: 320px;
    }

    .universal-sticky-btn:hover {
        transform: translateX(-50%) scale(1.02);
    }
}

/* =========================================
   RESPONSIVE SIZING FOR LARGER MOBILE DEVICES
   ========================================= */
/* Optimized for 414x896 (iPhone 11/12/13/14, etc.) */
@media (min-width: 375px) and (max-width: 428px) and (min-height: 800px) {

    /* Increase header logo and text size */
    .logo-img {
        height: 110px;
    }

    .logo-text h1 {
        font-size: 1.65rem;
    }

    .logo-text span {
        font-size: 16px;
    }

    /* Increase marquee text size */
    .marquee-text span {
        font-size: 17px;
    }

    .newyear-banner-text {
        font-size: 0.95rem;
    }
}