/* 
    Konkan Creative Studio - Premium Light Theme
    Base CSS Architecture 
*/

:root {
    /* Premium Light Theme Colors */
    --bg-primary: #FDFDFD;
    --bg-secondary: #F3F4F6;
    --bg-tertiary: #E5E7EB;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    /* Brand Accents (Vibrant on Light) */
    --accent-blue: #2563EB;
    /* Electric Blue */
    --accent-blue-hover: #1D4ED8;
    --accent-purple: #7C3AED;
    /* Vibrant Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

    /* Layout & Utilities */
    --nav-height: 100px;
    --border-light: rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(253, 253, 253, 0.7);
    --glass-panel-bg: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.08);

    --font-main: 'Plus Jakarta Sans', sans-serif;
}



/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
}

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

/* Hide Native Scrollbars completely */
::-webkit-scrollbar {
    display: none;
}
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: initial;
    /* Lenis handles smooth scrolling */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
    /* Custom Cursor */
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-wrap: break-word;
}

#smooth-wrapper {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* When hovering over interactive elements */
.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--accent-blue);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-padding {
    padding: 120px 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    overflow-x: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    /* fallback if custom cursor fails */
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

/* Hover Underline Effect */
.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    /* 100px */
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.logo-img {
    height: 70px;
    transition: height 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
}

.navbar.scrolled .logo-img {
    height: 55px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 60px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
}

.mega-dropdown.active .mega-menu,
.mega-dropdown:hover .mega-menu {
    /* Fallback */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.mega-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.purple-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    display: inline-block;
}

.mega-column a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mega-column a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Premium Footer */
.premium-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: 100px 0 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

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

.social-links-modern {
    display: flex;
    gap: 16px;
}

.social-links-modern a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-links-modern a:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-decoration: none;
    width: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-item svg {
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
}

/* Animations Setup for GSAP */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .hero-container, .projects-grid, .testimonial-cards { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid, .process-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-light);
        gap: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn { display: flex; }
    .hero-visual { display: none; }
    
    .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 10px 0 10px 20px;
        display: none;
    }
    .mega-dropdown.active .mega-menu {
        display: block;
    }
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
}

@media (max-width: 768px) {

    .stats-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .glass-panel {
        padding: 24px;
    }

    /* Disable animations on mobile for better performance & UX */
    .fade-up,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 990;
}

.fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.5rem;
}

.fab:hover {
    transform: translateY(-5px) scale(1.1);
}

.fab-wa {
    background: #25D366;
}

.fab-call {
    background: var(--accent-blue);
}

.fab-top {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-top.visible {
    opacity: 1;
    pointer-events: auto;
}



/* --- HOME PAGE SECTIONS --- */

/* Hero */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
    background-color: var(--bg-primary) !important;
    clip-path: inset(0); /* Forcing 3D clipping on iOS */
    width: 100%;
    max-width: 100vw;
}

.hero-bg-gradients {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #fff;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 10s infinite ease-in-out alternate;
}

.blue-blob {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -10%;
    left: -10%;
}

.purple-blob {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -10%;
    right: -10%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Glass Panel & Cards */
.glass-panel {
    background: var(--glass-panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
}

.glass-panel:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Marquee */
.marquee-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    width: 200%;
    animation: marquee 20s linear infinite;
}

.marquee-content {
    display: flex;
    width: 50%;
    justify-content: space-around;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-arrow {
    font-size: 1.2rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(10px);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
}

.project-img-wrapper {
    height: 400px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 24px 0;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: currentColor;
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -20px;
}

.process-step h3 {
    margin-bottom: 12px;
    color: inherit;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

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

.test-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

/* CTA */
.cta-box {
    text-align: center;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.cta-box h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-box .btn-primary {
    background: #fff;
    color: var(--accent-blue);
}

.cta-box .btn-primary:hover {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {

    .hero-container,
    .projects-grid,
    .testimonial-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }
}