/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-header: #0a0f1c;
    --bg-alt: #f8fafc;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --brand-blue: #3b82f6;
    --brand-blue-hover: #2563eb;
    --brand-dark: #1e293b;
    
    --border-color: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Site Header Wrapper */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Top Bar */
.top-bar {
    background-color: #060b17;
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease;
}
.top-bar-item svg {
    width: 13px;
    height: 13px;
    color: #38bdf8;
    flex-shrink: 0;
}
.top-bar-item:hover {
    color: #38bdf8;
}
.top-bar-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-block;
}
@media (max-width: 992px) {
    .top-bar {
        display: block !important;
        padding: 8px 0;
        background-color: #060b17;
    }
    .top-bar .container {
        justify-content: center !important;
    }
    .top-bar-left {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-bar-right, 
    .top-bar-divider, 
    .top-bar-left > span.top-bar-item {
        display: none !important;
    }
    .top-bar-item {
        font-size: 12px;
    }
}

/* Header Navbar */
.navbar {
    background-color: var(--bg-header);
    color: var(--text-light);
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
    margin-top: 5px; /* Keep it close so mouse doesn't fall off */
}
/* Invisible bridge to keep hover active */
.nav-dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: -15px;
    left: 0;
}
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: white;
}
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}
.nav-dropdown-content a {
    color: var(--text-primary);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.nav-dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--brand-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--bg-main);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 80%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-blue);
    border-radius: 50%;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 .text-blue {
    color: var(--brand-blue);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    gap: 24px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-feature-item svg {
    /* Color handled inline */
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Logos Section */
.logos-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
    text-align: center;
}

.logos-section p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.logos-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 500px;
}

/* Card Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Portfolio Card */
.portfolio-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Macbook Frame Mockup */
.portfolio-mockup-wrapper {
    padding: 10px 10px 0 10px;
}
.portfolio-mockup {
    width: 100%;
    padding-top: 62%; /* Screen aspect ratio */
    background: #1e293b;
    position: relative;
    border: 8px solid #0f172a;
    border-bottom: 12px solid #0f172a;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
/* Webcam dot */
.portfolio-mockup::before {
    content: '';
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #334155;
    z-index: 3;
}
/* Laptop Base */
.portfolio-mockup-base {
    width: 110%;
    height: 12px;
    background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
    margin-left: -5%;
    border-radius: 0 0 12px 12px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    z-index: 2;
}
/* Laptop Thumb Groove */
.portfolio-mockup-base::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 15%; height: 4px;
    background: #64748b;
    border-radius: 0 0 4px 4px;
}

.portfolio-mockup img {
    position: absolute;
    top: 0; /* Remove top offset since we removed browser bar */
    left: 0;
    width: 100%;
    height: auto;
    transition: transform 4s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother scrolling */
    z-index: 1;
}
.portfolio-card:hover .portfolio-mockup img {
    /* Scrolls the image up. Since container height varies, we use a rough pixel offset or just object-position */
    transform: translateY(calc(-100% + 250px)); 
}

/* Mobile iPhone Mockup */
.portfolio-mobile-mockup {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 28%;
    padding-top: 55%; /* Tall aspect ratio */
    background: #1e293b;
    border: 5px solid #0f172a;
    border-radius: 16px;
    z-index: 5;
    box-shadow: -5px 10px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}
/* iPhone Notch */
.portfolio-mobile-mockup::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 40%; height: 10px;
    background: #0f172a;
    border-radius: 0 0 6px 6px;
    z-index: 7;
}
.portfolio-mobile-mockup img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 6;
    transition: object-position 4s cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolio-card:hover .portfolio-mobile-mockup img {
    object-position: center bottom;
}

.portfolio-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-title {
    font-size: 16px;
    font-weight: 700;
}

.portfolio-category {
    font-size: 13px;
    color: var(--text-muted);
}

.external-icon {
    color: var(--brand-blue);
}

/* Template Card */
.template-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
}

.template-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.template-content {
    padding: 20px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.template-title {
    font-size: 16px;
    font-weight: 700;
}

.template-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-blue);
}

.template-category {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.template-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--bg-alt);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.template-actions {
    display: flex;
    gap: 8px;
}

.template-actions .btn {
    flex: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.service-card {
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.02) 100%);
    color: var(--brand-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1e293b;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Stats Section */
.stats-section .container {
    display: flex;
    gap: 40px;
}

.stats-left {
    flex: 1;
}

.stats-list {
    list-style: none;
    margin-top: 24px;
}

.stats-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-list svg {
    color: var(--brand-blue);
}

.stats-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.02) 100%);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* CTA Footer */
.cta-footer {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, #0a0f1c, #1e293b);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-box p {
    color: #cbd5e1;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.cta-buttons .btn-outline {
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Page Headers for Inner Pages */
.page-header {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    padding: 80px 0 40px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

/* Main Footer */
.main-footer {
    background-color: var(--bg-header);
    color: #94a3b8;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.footer-brand {
    color: white;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-col-links a:hover {
    color: var(--brand-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

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

.social-links a {
    color: #94a3b8;
}

.social-links a:hover {
    color: white;
}

/* Utility classes */
.py-section {
    padding: 80px 0;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.pricing-card.popular {
    border: 2px solid var(--brand-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}
.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pricing-card .price {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
}
.pricing-card .price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}
.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}
.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-primary);
}
.pricing-features li svg {
    color: #10b981;
    flex-shrink: 0;
}
.pricing-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}
.pricing-features li.disabled svg {
    color: #94a3b8;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover {
    background: #f8fafc;
}
.faq-question svg {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}
.faq-question.active svg {
    transform: rotate(180deg);
    color: var(--brand-blue);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}
.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Floating Widgets: WhatsApp & Back To Top */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}
.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.back-to-top {
    position: fixed;
    bottom: 92px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--brand-blue);
    transform: translateY(-4px);
    color: white;
}

/* Footer Trust Badges */
.footer-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0 0 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #94a3b8;
}
.footer-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Legal & Information Pages Styling
   ========================================================================== */
.legal-hero {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e293b 100%);
    padding: 70px 0 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.legal-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
.legal-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.legal-nav-link {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}
.legal-nav-link:hover, .legal-nav-link.active {
    color: #ffffff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}
@media (max-width: 992px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }
}

.legal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.legal-card:hover {
    box-shadow: var(--shadow-md);
}
.legal-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.legal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.legal-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.legal-card-body {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 15px;
}
.legal-card-body p {
    margin-bottom: 16px;
}
.legal-card-body p:last-child {
    margin-bottom: 0;
}
.legal-card-body ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.legal-card-body li {
    margin-bottom: 8px;
}

.legal-sidebar-box {
    background: #0f172a;
    color: #f8fafc;
    border-radius: var(--radius-md);
    padding: 28px;
    position: sticky;
    top: 90px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.legal-sidebar-box h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 14px;
}
.legal-sidebar-box p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.legal-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.legal-contact-btn:hover {
    background: var(--brand-blue-hover);
    color: #ffffff;
}

/* Accordion for FAQ */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.active {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}
.faq-question {
    padding: 20px 24px;
    background: #ffffff;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question:hover {
    color: var(--brand-blue);
}
.faq-toggle-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    background: var(--brand-blue);
    color: #ffffff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    background: #f8fafc;
}
.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
}


@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
}


/* Animated Gradient View All Button */
.btn-view-all { position: relative; z-index: 1; overflow: hidden; transition: all 0.3s ease; border-color: var(--border-color); color: var(--text-primary); }
.btn-view-all::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #38bdf8 0%, #1e40af 100%); opacity: 0; transition: opacity 0.4s ease; z-index: -1; }
.btn-view-all:hover { color: white !important; border-color: transparent; box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.4); transform: translateY(-2px); }
.btn-view-all:hover i { color: white !important; }
.btn-view-all:hover::before { opacity: 1; }

@keyframes sweepGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.btn-view-all { position: relative; z-index: 1; overflow: hidden; transition: all 0.3s ease; border-color: var(--border-color) !important; color: var(--text-primary) !important; }
.btn-view-all::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #0ea5e9, #3b82f6, #4f46e5, #0ea5e9); background-size: 300% 300%; opacity: 0; transition: opacity 0.4s ease; z-index: -1; }
.btn-view-all:hover { color: white !important; border-color: transparent !important; box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5); transform: translateY(-3px); }
.btn-view-all:hover i, .btn-view-all:hover svg { stroke: white !important; color: white !important; }
.btn-view-all:hover::before { opacity: 1; animation: sweepGlow 3s ease infinite; }

/* --- PREMIUM SUBTLE ANIMATIONS --- */
/* 1. Nav Underline Reveal */
.nav-links > a, .nav-dropdown > a { position: relative; text-decoration: none; }
.nav-links > a::after, .nav-dropdown > a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background-color: var(--brand-blue); transition: width 0.3s ease-in-out; border-radius: 2px; }
.nav-links > a:hover::after, .nav-dropdown > a:hover::after, .nav-dropdown:hover > a::after { width: 100%; }

/* 2. Primary CTA Lift & Glow */
.btn-primary { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important; }
.btn-primary:hover { transform: translateY(-3px) !important; box-shadow: 0 10px 20px -6px rgba(56, 189, 248, 0.6) !important; }

/* 3. Card Image Zoom */
.card img { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.card:hover img { transform: scale(1.05) !important; }

/* 4. Icon Interaction in Lists */
@keyframes tiltPulse { 0% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.15) rotate(8deg); } 100% { transform: scale(1) rotate(0deg); } }
li { transition: transform 0.2s ease; }
li i, li svg { transition: all 0.3s ease; }
li:hover > i, li:hover > div > i, li:hover > svg, li:hover > div > svg { animation: tiltPulse 0.4s ease-in-out; stroke-width: 3px; color: var(--brand-blue) !important; }
/* --- RESPONSIVE HELPER CLASSES (DESKTOP DEFAULTS) --- */
.hero-heading {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.hero-heading .text-blue {
    color: var(--brand-blue);
}
.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}
.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    max-width: 450px;
}
.hero-feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.hero-laptop-img {
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(56, 189, 248, 0.4);
    width: 100%;
    height: auto;
    display: block;
}
.service-feature-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.service-feature-row.reverse {
    flex-direction: row-reverse;
}
.service-feature-media, .service-feature-text {
    flex: 1;
}
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}
.service-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}
.contact-form-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.07);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.budget-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.about-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 50px;
    color: white;
    box-shadow: 0 20px 50px -15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.about-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.join-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}
.join-form-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.07);
}
.free-audit-card {
    padding: 50px;
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.industries-bottom-banner {
    margin-top: 80px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 40px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}

/* --- HAMBURGER BUTTON & MOBILE MENU SYSTEM --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1005;
}
.mobile-menu-btn .bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-btn.active .bar-1 {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.active .bar-3 {
    transform: translateY(-7.5px) rotate(-45deg);
}

.desktop-cta-btn {
    display: inline-flex;
}
.mobile-menu-cta {
    display: none;
}

/* Global Overflow Protection */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* --- TABLET BREAKPOINT (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Top Bar Mobile Rule */
    .top-bar {
        display: block !important;
        padding: 8px 0;
        background-color: #060b17;
    }
    .top-bar .container {
        justify-content: center !important;
    }
    .top-bar-left {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-bar-right, 
    .top-bar-divider, 
    .top-bar-left > span.top-bar-item {
        display: none !important;
    }
    .top-bar-item {
        font-size: 12px;
    }

    /* Mobile Hamburger Menu */
    .mobile-menu-btn {
        display: flex !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    .desktop-cta-btn {
        display: none !important;
    }
    .mobile-menu-cta {
        display: block !important;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .navbar {
        position: relative;
        z-index: 1000;
    }
    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 12px 16px !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0f1c !important;
        border-bottom: 2px solid #1e293b;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
        padding: 18px 20px 24px 20px !important;
        z-index: 9999;
        gap: 0 !important;
    }
    .nav-links.active {
        display: flex !important;
        animation: menuSlideDown 0.25s ease-out forwards;
    }
    @keyframes menuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .nav-links > a,
    .nav-dropdown > a {
        color: #f1f5f9 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 14px 12px !important;
        border-radius: 8px;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .nav-links > a:hover,
    .nav-dropdown > a:hover,
    .nav-links > a:active {
        background: rgba(56, 189, 248, 0.1) !important;
        color: #38bdf8 !important;
    }
    .nav-links .nav-partner-link {
        color: #38bdf8 !important;
    }
    /* Mobile Dropdown Sub-links */
    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-dropdown > a {
        border-bottom: none !important;
    }
    .nav-dropdown-content {
        display: flex !important;
        position: static !important;
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 8px !important;
        box-shadow: none !important;
        transform: none !important;
        margin: 4px 0 10px 0 !important;
        padding: 6px 0 !important;
        flex-direction: column;
    }
    .nav-dropdown-content::before {
        display: none !important;
    }
    .nav-dropdown-content a {
        color: #94a3b8 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        padding: 10px 16px !important;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: none !important;
    }
    .nav-dropdown-content a:hover {
        background: rgba(56, 189, 248, 0.1) !important;
        color: #ffffff !important;
    }

    /* Two-column Layouts collapse to 1 column */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        padding: 40px 15px;
    }
    .hero-heading {
        font-size: 40px;
    }
    .hero-description {
        margin: 0 auto 24px auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-features {
        margin: 24px auto 0 auto;
    }
    .hero-image-wrapper {
        transform: none !important;
        max-width: 550px;
        margin: 0 auto;
    }

    .service-detail-grid,
    .contact-page-grid,
    .about-grid-2,
    .about-cta-grid,
    .join-main-grid,
    .legal-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    .service-feature-row,
    .service-feature-row.reverse {
        flex-direction: column !important;
        gap: 30px !important;
        margin-bottom: 60px !important;
        text-align: center;
    }
    .service-feature-text .stats-list {
        display: inline-block;
        text-align: left;
    }

    .stats-section .container {
        flex-direction: column !important;
        gap: 36px !important;
    }

    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

/* --- MOBILE PHONE BREAKPOINT (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Spacing & Padding */
    .py-section {
        padding: 45px 0 !important;
    }
    .page-header {
        padding: 45px 0 25px 0 !important;
    }
    .container {
        padding: 0 16px !important;
    }

    /* Typography */
    .hero-heading {
        font-size: 30px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    .hero-description {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }
    .section-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .section-subtitle {
        font-size: 14px !important;
    }
    .page-header h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    .page-header p {
        font-size: 14px !important;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        margin-bottom: 28px !important;
    }
    .section-header > div {
        width: 100% !important;
    }
    .section-header .btn-view-all,
    .section-header .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100% !important;
        justify-content: center;
        padding: 14px !important;
        font-size: 15px !important;
    }

    /* Hero Badges */
    .hero-features {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .hero-feature-badge {
        font-size: 12px;
        padding: 8px 10px;
        justify-content: center;
    }

    /* Grids to 1 Column */
    .pricing-grid, 
    .services-grid, 
    .portfolio-grid, 
    .features-grid, 
    .grid-4, 
    .grid-3, 
    .grid-2,
    .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Form Rows to 1 Column */
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .budget-options-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* Card Paddings */
    .card,
    .contact-form-card,
    .join-form-card,
    .free-audit-card,
    .service-content {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }
    .about-cta-box,
    .industries-bottom-banner {
        padding: 30px 16px !important;
        border-radius: 16px !important;
    }
    .about-cta-box h2,
    .industries-bottom-banner h2 {
        font-size: 24px !important;
    }

    /* Stats Section */
    .stats-right {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .stat-box {
        padding: 18px 12px !important;
    }
    .stat-number {
        font-size: 28px !important;
    }
    .stat-label {
        font-size: 12px !important;
    }

    /* Portfolio Mockup adjustments */
    .portfolio-mockup-base {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .portfolio-mobile-mockup {
        right: 0 !important;
        bottom: -5px !important;
    }

    /* Logos Grid */
    .logos-grid {
        justify-content: center !important;
        gap: 20px !important;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom div {
        justify-content: center;
    }

    /* Floating Widgets */
    .floating-whatsapp {
        bottom: 20px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
        z-index: 2147483647 !important;
        display: flex !important;
    }
    .back-to-top {
        bottom: 78px !important;
        right: 18px !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 2147483646 !important;
    }
}

/* --- EXTRA SMALL SCREENS (max-width: 480px) --- */
@media (max-width: 480px) {
    .hero-features {
        grid-template-columns: 1fr !important;
    }
    .stats-right {
        grid-template-columns: 1fr !important;
    }
    .hero-heading {
        font-size: 26px !important;
    }
    .cta-box {
        padding: 24px 14px !important;
    }
}
