:root {
    --primary: #6366f1;
    --primary-light: #a5b4fc;
    --accent: #06b6d4;
    --accent-secondary: #ec4899;
    --accent-tertiary: #f59e0b;
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --surface: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    --glass: rgba(15, 23, 42, 0.6);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
    --mesh-gradient: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%), 
                     radial-gradient(at 50% 0%, rgba(236, 72, 153, 0.15) 0, transparent 50%), 
                     radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    background-image: var(--mesh-gradient);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

/* Background Decorations */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
}

.blob-1 { top: -10%; right: -10%; animation: float 20s infinite alternate; }
.blob-2 { bottom: -10%; left: -10%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); animation: float 25s infinite alternate-reverse; }
.blob-3 { top: 40%; left: -20%; background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%); animation: float 30s infinite alternate; }
.blob-4 { top: 70%; right: -20%; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); animation: float 22s infinite alternate-reverse; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -50px) rotate(5deg) scale(1.1); }
    66% { transform: translate(-30px, 80px) rotate(-5deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Global Components */
section {
    padding: 50px 10%;
    min-height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -2px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Glow Section */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 150px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

/* Section Dividers */
.section-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.section-divider .shape-fill {
    fill: var(--bg-secondary);
}

.section-divider.flip {
    transform: rotate(180deg);
}

/* Decorative Text & Lists */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 8px; /* Prevents edge cropping on trailing characters like 's' */
}

/* User Feedback Cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 60%);
    pointer-events: none;
}

.feedback-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.feedback-stars {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.feedback-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.feedback-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.feedback-name::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    margin-right: 15px;
}

.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--primary);
    opacity: 0.1;
    z-index: -1;
    border-radius: 2px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    transition: var(--transition);
}

.feature-list li:hover::before {
    transform: translateX(5px);
}

.accent-box {
    padding: 40px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    font-weight: 800;
    border-radius: 100px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.6);
}

.btn:hover::after {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    box-shadow: none;
}

.btn-outline::after { display: none; }

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.3);
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows buttons to gracefully stack on very small screens automatically */
}

/* Section 1: Hero */
/* ===================================
   Premium Navbar / Header
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px 0;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
    z-index: -1;
}

.site-header.scrolled {
    padding: 16px 0;
}

.site-header.scrolled::before {
    background: var(--glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    animation: rotateSlow 10s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 60%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

/* =================================== 
   Mega Menu & Dropdown Styles
   =================================== */

.has-dropdown {
    position: static; /* Required for full-width mega menu */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 10%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.mega-category h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-category h4 i {
    color: var(--primary);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.mega-item:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateX(10px);
}

.mega-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.mega-item:hover .mega-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1) rotate(-5deg);
}

.mega-content {
    display: flex;
    flex-direction: column;
}

.mega-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.mega-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown-trigger i {
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

/* Nav Actions and Button styles are defined below */

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn .arrow {
    transition: transform 0.3s ease;
}

.nav-btn:hover .arrow {
    transform: translateX(4px);
}

.nav-login-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-login-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-login-link:hover::after {
    width: 100%;
}

.desktop-only { display: block; }

/* ===================================
   Mobile Navigation — Minimalist Reference Design
   =================================== */

/* Hide mobile-specific sections on desktop */
.mobile-nav-header, .nav-group-label, .mobile-only, .mobile-close-btn { display: none; }
.nav-link i { display: none; } /* Hide icons on desktop nav */

/* Hamburger hidden on desktop */
.menu-toggle { display: none; }

/* ---- Hamburger bar styles (always defined) ---- */
.menu-toggle .bar {
    width: 26px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.35s ease;
    display: block;
}

@media (max-width: 1100px) {

    /* ---- Show hamburger ---- */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        z-index: 1100;
        padding: 8px 6px;
        background: none;
        border: none;
    }

    /* ---- Hide desktop elements ---- */
    .nav-btn, .desktop-only { display: none !important; }

    /* ---- Full-screen slide-in premium panel ---- */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 380px;
        height: 100%;

        background: rgba(15, 23, 42, 0.95); /* Deep slate dark */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        color: #f8fafc;
        box-shadow: -15px 0 50px rgba(0,0,0,0.8);

        z-index: 10000;
        transform: translateX(105%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);

        list-style: none;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-left: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Sidebar Header */
    .mobile-nav-header {
        display: block;
        padding: 30px 25px;
        background: rgba(255,255,255,0.02);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        margin-bottom: 15px;
    }

    .mobile-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-nav-logo {
        height: 40px;
        width: auto;
        border-radius: 6px;
    }

    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* Group Labels */
    .nav-group-label {
        display: block;
        font-size: 0.7rem;
        font-weight: 800;
        color: #64748b;
        letter-spacing: 2px;
        padding: 25px 25px 10px;
        text-transform: uppercase;
    }

    /* Links Adjustment */
    .nav-links > li {
        width: 100%;
        padding: 0 15px;
    }

    .nav-links a.nav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 14px 18px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #e2e8f0;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-transform: none; /* More natural in sidebar */
        letter-spacing: 0;
    }

    .nav-links a.nav-link i:first-child {
        display: block;
        width: 20px;
        font-size: 1.1rem;
        color: #64748b;
        transition: color 0.3s ease;
        text-align: center;
    }

    .nav-links a.nav-link:hover, 
    .nav-links a.nav-link.active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--primary-light);
    }

    .nav-links a.nav-link:hover i:first-child {
        color: var(--primary-light);
    }

    /* Dropdown Chevron */
    .drop-icon {
        margin-left: auto;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .mobile-open .drop-icon {
        transform: rotate(180deg);
        color: var(--primary-light);
    }

    /* Special Auth Link */
    .auth-link {
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
        border: 1px solid rgba(79, 70, 229, 0.2);
        color: var(--primary-light) !important;
    }

    .mobile-only { display: block; }

    /* Overlay refinement */
    .nav-overlay {
        z-index: 9999;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
    }

    /* Mega Menu on Mobile (Accordion Style) */
    .mega-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 5px 15px 15px 45px;
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
    }

    .mobile-open > .mega-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mega-menu-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mega-category h4 {
        display: none; /* Hide internal headers for cleaner accordion */
    }

    .mega-item {
        padding: 8px 0;
        margin: 0;
        background: none;
        gap: 12px;
    }

    .mega-item:hover {
        background: none;
        transform: translateX(5px);
    }

    .mega-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .mega-title {
        font-size: 0.9rem;
        color: #cbd5e1;
    }

    .mega-desc { display: none; } /* Hide descriptions on mobile sidebar for density */

    /* ---- Hamburger Animation (Premium) ---- */
    .menu-toggle .bar {
        background: var(--text-main);
        width: 30px;
    }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); width: 30px; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); width: 30px; }
}

/* Section 1: Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 180px;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 1.15; /* Increased from 1 to prevent vertical collision */
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -4px;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-images {
    position: relative;
    height: 600px;
}

.hero-img {
    position: absolute;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 8px solid white;
}

.img-1 {
    width: 80%;
    height: 480px;
    top: 0;
    left: 0;
    z-index: 2;
}

.img-2 {
    width: 70%;
    height: 400px;
    bottom: 0;
    right: 0;
    z-index: 1;
    filter: grayscale(0.5);
    opacity: 0.8;
}

/* Section 2: About */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    background: var(--bg-secondary);
}
.head{
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.head h1{
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--primary);
    letter-spacing: -2px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.blog-post-card {
    margin-bottom: 80px;
    padding: 40px;
    background: var(--surface);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.about-img-box, .about-img-col {
    position: relative;
}

.about-img {
    width: 100%;
    max-height: 400px; /* Reduced height to make it smaller/attractive */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}


.about-content h2, .about-text-col h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-content p, .about-text-col p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Section 3: Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0;
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.4);
}

.service-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.service-card__img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===================================
   Blog Section – Premium Article Cards
   =================================== */

.blog-preview {
    background: transparent;
}

.blog-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.blog-header h2 {
    margin-bottom: 20px;
}

.typewriter-wrap {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typewriter-wrap p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* 2-column grid on desktop */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -15px rgba(79, 70, 229, 0.2);
    border-color: var(--primary-light);
}

.blog-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
    flex-shrink: 0;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.blog-card__tag--purple {
    background: rgba(79, 70, 229, 0.85);
    color: white;
}

.blog-card__tag--blue {
    background: rgba(14, 165, 233, 0.85);
    color: white;
}

.blog-card__body {
    padding: 28px 30px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.blog-card:hover .blog-card__title {
    color: var(--primary);
}

.blog-card__excerpt {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 24px;
}

.blog-card__cta {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-card:hover .blog-card__cta {
    gap: 12px;
}

.blog-footer {
    text-align: center;
    margin-top: 50px;
}

/* Blog card responsive breakpoints */
@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-card__img-wrap {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .blog-card__img-wrap {
        height: 200px;
    }

    .blog-card__body {
        padding: 22px 20px 26px;
    }

    .blog-card__title {
        font-size: 1.2rem;
    }

    .blog-header {
        margin-bottom: 40px;
    }
}

/* Section 4: Technology Marquee */
.tech-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
    padding: 20px 0;
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    min-width: 100%;
    /* Scroll linearly to the left (100% of its own width + 30px gap) */
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 30px)); }
}

/* Premium Tech Badge */
.tech-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: default;
}

.tech-box .tech-icon {
    font-size: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Colorful Hover Effect */
.tech-box:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--surface);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* Reacts dynamically based on HTML inline style flag */
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.tech-box:hover .tech-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* Section 5: Contact & Feedback */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feedback-card {
    padding: 30px;
    background: var(--surface);
    border-radius: 24px;
    border-left: 8px solid var(--primary);
    box-shadow: var(--shadow);
}

.feedback-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.feedback-card .author {
    font-weight: 700;
    color: var(--primary);
}

.contact-form {
    background: var(--surface);
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid var(--bg-secondary);
    border-radius: 15px;
    background: var(--bg-secondary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
/* Section 3.7: Project Estimator */
.estimator-section {
    background: var(--bg-main);
    padding-top: 100px;
    padding-bottom: 100px;
}

.estimator-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.estimator-left h2, .estimator-right h2 {
    text-align: left;
    margin-bottom: 20px;
}

.estimator-left p, .estimator-right p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.estimator-card {
    background: var(--surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.estimator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-gradient);
}

.estimator-select {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    /* Prevent overflow on long names */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 45px;
}

.estimator-select:focus {
    border-color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.complexity-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 18px;
}

.complexity-btn {
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.complexity-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.price-display {
    margin: 40px 0;
    padding: 30px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 24px;
    text-align: center;
    border: 1px dashed var(--primary-light);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -2px;
}

.tech-recommendation {
    margin-top: 20px;
}

.tech-label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Contact Channels */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.channel-card {
    display: flex;
    align-items: center;
    padding: 24px;
    background: var(--surface);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.channel-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.channel-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: var(--transition);
}

.channel-card:hover .channel-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.channel-info h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.channel-info p {
    margin: 0;
    font-size: 0.95rem;
}

.channel-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 900;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.channel-card:hover .channel-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Channel Colors on Hover */
.channel-card.whatsapp:hover .channel-icon { background: #25D366; }
.channel-card.mail:hover .channel-icon { background: var(--primary); }
.channel-card.phone:hover .channel-icon { background: var(--accent); }

.consultation-box {
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 30px;
    text-align: center;
}

.consultation-box p {
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===================================
   Floating Social Media Sidebar (Vibrant & Dynamic)
   =================================== */
.floating-socials {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9995; /* High enough to be over most content, but under the main nav menu (10000) */
    padding-right: 0;
    pointer-events: auto;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    font-size: 1.3rem;
    text-decoration: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    right: -10px; /* Hidden state */
}

/* Entrance animation */
@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.floating-socials .float-btn {
    animation: slideInRight 0.8s ease backwards;
}

.floating-socials .float-btn:nth-child(1) { animation-delay: 0.1s; }
.floating-socials .float-btn:nth-child(2) { animation-delay: 0.2s; }
.floating-socials .float-btn:nth-child(3) { animation-delay: 0.3s; }
.floating-socials .float-btn:nth-child(4) { animation-delay: 0.4s; }

.float-btn:hover {
    right: 0;
    width: 65px;
    color: white !important;
    border-radius: 12px 0 0 12px;
    box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.2);
}

.float-btn i {
    transition: transform 0.4s ease;
}

.float-btn:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Vibrant Brand Gradients */
.float-btn.in:hover { background: linear-gradient(45deg, #0077b5, #00a0dc); }
.float-btn.ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.float-btn.gh:hover { background: linear-gradient(45deg, #24292e, #444d56); }
.float-btn.tw:hover { background: linear-gradient(45deg, #000000, #222222); }
.float-btn.fb:hover { background: linear-gradient(45deg, #1877f2, #3b5998); }

/* Mobile Optimization: More compact and subtle */
@media (max-width: 768px) {
    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        right: 0; /* Fully visible on mobile since no hover */
        border-radius: 8px 0 0 8px;
        box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Make brand colors visible by default on mobile */
    .float-btn.in { background: #0077b5; color: white !important; }
    .float-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white !important; }
    .float-btn.fb { background: #1877f2; color: white !important; }
    .float-btn.gh { background: #24292e; color: white !important; }
    .float-btn.tw { background: #000000; color: white !important; }

    .float-btn:hover {
        width: 48px;
    }
}

@media (max-width: 480px) {
    .floating-socials {
        top: auto;
        bottom: 80px; /* Elevated to clear browser toolbars */
        transform: none;
        gap: 6px;
    }
    .float-btn {
        border-radius: 10px 0 0 10px;
    }
}
@media (max-width: 1100px) {
    .estimator-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 600px) {
    .complexity-toggle { 
        display: flex;
        justify-content: space-between;
        gap: 5px;
    }
    .complexity-btn { 
        padding: 10px 5px; 
        font-size: 0.85rem;
        flex: 1;
    }
    .price-value { font-size: clamp(2rem, 10vw, 3rem); }
}


/* ===================================
   Premium Site Footer
   =================================== */

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f1e3c 100%);
    color: #94a3b8;
    padding: 80px 10% 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #4f46e5, #0ea5e9, #4f46e5);
    background-size: 200% auto;
    animation: footerLine 4s linear infinite;
}

@keyframes footerLine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 60px;
}

/* Brand Column */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 28px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Link Columns */
.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
    color: #4f46e5;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Column */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.25s;
}

.footer-contact a:hover {
    color: #818cf8;
}

.footer-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-copy strong {
    color: #94a3b8;
}

.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 5px 12px;
    border-radius: 50px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 60px 5% 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-badges {
        gap: 8px;
    }
}


/* =============================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- Tablets / Small Laptops (≤ 1024px) --- */
@media (max-width: 1024px) {
    section { padding: 60px 8%; }
    .hero { 
        gap: 40px;
        padding-top: 150px;
    }
    .hero-text h1 { font-size: clamp(3rem, 7vw, 4rem); }
    .about { gap: 40px; }
    .about-img { max-height: 350px; }
}

/* --- Tablets / Large Mobile (≤ 900px) --- */
@media (max-width: 1100px) {

    /* Layout stacks */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 130px;
        gap: 40px;
    }
    .hero-text p { margin: 0 auto 30px; max-width: 90%; }
    .hero-images {
        height: 360px;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        position: relative;
    }
    .img-1 { width: 78%; height: 300px; left: 0; top: 0; }
    .img-2 { width: 64%; height: 250px; right: 0; bottom: 0; }

    .about,
    .about-grid,
    .contact-container,
    .estimator-container { grid-template-columns: 1fr; }

    .about-img-box { order: 2; margin-top: 30px; }
    .about-content { order: 1; text-align: center; }
    .about-content h2 { text-align: center; }

    h2 { font-size: 2.4rem; }

    .services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .blog-preview .services-grid { grid-template-columns: 1fr; }

    .contact-form { padding: 36px 22px; }
    .estimator-card { padding: 24px; }

    .feedback-col { width: 100%; }
}

/* --- Mobile Phones (≤ 600px) --- */
@media (max-width: 600px) {

    /* Global */
    html, body { overflow-x: hidden; max-width: 100vw; }
    section { padding: 60px 5%; }

    /* Navbar */
    .navbar { padding: 18px 5%; }

    /* Hero */
    .hero-text h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-btns { flex-direction: column; gap: 12px; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-images { height: 300px; width: 100%; }
    .img-1 { width: 84%; height: 230px; border-width: 4px; border-radius: 18px; }
    .img-2 { width: 72%; height: 190px; border-width: 4px; border-radius: 18px; }

    /* Typography */
    h2 { font-size: clamp(1.8rem, 7vw, 2.2rem); margin-bottom: 30px; }
    p { font-size: 1rem !important; }

    /* Hero heading */
    .hero-text h1 { letter-spacing: -1px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 30px 20px; }

    /* Estimator */
    .price-value { font-size: 2.3rem; }
    .estimator-card { padding: 20px; }
    .price-display { padding: 20px 10px; margin: 25px 0; }
    .complexity-toggle { 
        display: flex;
        justify-content: space-between;
        gap: 5px;
    }
    .complexity-btn { 
        padding: 10px 5px; 
        font-size: 0.85rem;
        flex: 1;
    }

    /* Tech marquee */
    .tech-box { padding: 16px 28px; font-size: 1rem; }

    /* Feedback grid → stack */
    #feedback-container {
        grid-template-columns: 1fr !important;
    }
    .feedback-card { padding: 20px; }

    /* Contact */
    .contact-container { gap: 30px; }
    .contact-form { padding: 28px 18px; }
    .feedback-col { width: 100%; }

    /* About */
    .about { gap: 30px; }
    .about-grid { gap: 30px; }
    .about-img { max-height: 280px; }
    
    .blog-post-card {
        padding: 20px !important;
        margin-bottom: 40px !important;
        border-radius: 20px !important;
    }

    /* Footer */
    .site-footer { padding: 50px 5% 0; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-badges { flex-wrap: wrap; gap: 8px; }
    .footer-social { flex-wrap: wrap; }
}

/* --- Small Phones (≤ 430px) --- */
@media (max-width: 430px) {
    section { padding: 50px 4%; }
    .hero-text h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
    .hero-images { height: 260px; }
    .img-1 { height: 190px; width: 88%; }
    .img-2 { height: 150px; width: 76%; }
    .section-tag { font-size: 0.72rem; }
    .nav-links > li > a.nav-link { font-size: 1.1rem; padding: 13px 16px; }
}


/* ===================================
   Site Logo Styles
   =================================== */
.site-logo-img {
    height: 55px !important; 
    width: 55px !important;
    object-fit: contain !important;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.logo:hover .logo-subtitle,
.footer-logo:hover .logo-subtitle {
    color: var(--primary);
}

.logo:hover .site-logo-img,
.footer-logo:hover .site-logo-img {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(79, 70, 229, 0.4));
}

@media (max-width: 1100px) {
    .site-logo-img {
        height: 45px;
    }
}
/* ===================================
   Next-Gen Solutions Section
   =================================== */
.solutions-section {
    padding: 60px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.solution-card {
    padding: 30px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-10px);
    background: var(--surface);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.solution-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.2) rotate(-5deg);
}

.solution-card h4 {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.solution-card .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Showcase (NEW) */
#portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* =================================== 
   Running Portfolio Marquee
   =================================== */
.marquee-container {
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: portfolioScroll 50s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-list {
    display: flex;
    gap: 30px;
}

@keyframes portfolioScroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 15px), 0, 0); }
}

/* Responsiveness for Portfolio Cards */
@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 30s; /* Faster for smaller screens to keep it lively */
    }
    .portfolio-card {
        min-width: 280px;
        flex: 0 0 280px;
    }
    .portfolio-img-wrap {
        height: 200px;
    }
}

.portfolio-card {
    flex: 0 0 380px;
    min-width: 320px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.portfolio-img-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-category {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

@media (max-width: 480px) {
    .portfolio-card {
        min-width: 100%;
        flex: 1 1 100%;
    }
    #portfolio-grid {
        gap: 20px;
        padding: 0 15px;
    }
}
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-logo {
    height: 80px !important;
    width: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    margin-bottom: 25px;
    animation: pulseLoader 2s infinite ease-in-out;
}

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
}

.loader-text span {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: white;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    animation: loadProgress 2s infinite ease-in-out;
}

@keyframes pulseLoader {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(79, 70, 229, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.5)); }
}

@keyframes loadProgress {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 70%; transform: translateX(0); }
    100% { width: 100%; transform: translateX(100%); }
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
