@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-rgb: 79, 70, 229;
    --secondary: #0F172A;
    --secondary-rgb: 15, 23, 42;
    --accent: #06B6D4;
    --accent-rgb: 6, 182, 212;
    --success: #22C55E;
    --bg-light: #F8FAFC;
    --surface-light: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    
    /* Dark Mode overrides / alternate styles */
    --bg-dark: #090D16;
    --surface-dark: #111827;
    --border-dark: #1F2937;
    --text-light: #F1F5F9;
    --text-gray: #9CA3AF;
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
    --shadow-glow-primary: 0 0 20px rgba(79, 70, 229, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--text-light);
}

.section-dark p {
    color: var(--text-gray);
}

.text-center { text-align: center; }

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-dark .section-tag {
    color: var(--accent);
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .section { padding: 4rem 0; }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.header-dark {
    background: rgba(9, 13, 22, 0.85);
    border-bottom: 1px solid var(--border-dark);
}

.header-dark .nav-link {
    color: var(--text-gray);
}

.header-dark .nav-link:hover, .header-dark .nav-link.active {
    color: var(--accent);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
}

.header-dark .logo {
    color: var(--text-light);
}

.logo span {
    color: var(--primary);
}

.header-dark .logo span {
    color: var(--accent);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface-light);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-primary);
}

/* Burger Menu Toggle */
.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary);
}

.header-dark .burger-bar {
    background-color: var(--text-light);
}

@media (max-width: 768px) {
    .burger-menu { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--surface-light);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 999;
        border-top: 1px solid var(--border-light);
    }
    
    .header-dark .nav-menu {
        background-color: var(--surface-dark);
        border-top: 1px solid var(--border-dark);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        margin: 1.5rem 0;
    }

    .burger-menu.active .burger-bar:nth-child(2) { opacity: 0; }
    .burger-menu.active .burger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu.active .burger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366F1);
    color: white;
    box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338CA, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.section-dark .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.section-dark .btn-secondary:hover {
    background: var(--text-light);
    color: var(--secondary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #0891B2);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 7rem 0;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 45%);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--accent), #818CF8, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-family: var(--font-accent);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 4rem;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 1.5rem; }
    .stat-item:nth-child(2)::after { display: none; }
    .stat-item:not(:last-child)::after { right: -0.75rem; }
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.about-img {
    transition: var(--transition);
    object-fit: cover;
    width: 100%;
    height: 480px;
}

.about-img-container:hover .about-img {
    transform: scale(1.03);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.about-founder-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
}

.founder-info h5 {
    color: var(--secondary);
    font-weight: 600;
}

.founder-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img { height: 350px; }
}

/* Why Choose Flowgrid Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.why-card:hover::before {
    height: 100%;
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.why-card h4 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.why-card p {
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* Services Grid UI */
.services-catalog-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--surface-light);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-primary);
}

.service-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link:hover {
    color: #4338CA;
}

.service-link svg {
    transition: var(--transition);
}

.service-link:hover svg {
    transform: translateX(3px);
}

/* Our Process Timeline */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 3.5rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border: 4px solid var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-family: var(--font-accent);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.process-content {
    width: 45%;
    padding: 1.75rem 2rem;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.process-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .process-timeline::before { left: 20px; }
    .process-step { flex-direction: row !important; margin-bottom: 2.5rem; }
    .process-dot { left: 20px; transform: translateX(-50%); }
    .process-content { width: calc(100% - 50px); margin-left: 40px; padding: 1.25rem 1.5rem; }
}

/* Portfolio grid items */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--border-light);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-details {
    padding: 1.5rem;
}

.portfolio-tag {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.portfolio-details h4 {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.portfolio-details p {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-title {
    margin-bottom: 1.5rem;
}

.modal-meta {
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.25rem;
}

.modal-section h5 {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Testimonial slider UI */
.testimonial-section {
    overflow: hidden;
    position: relative;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 320px;
}

.testimonial-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-card.prev {
    transform: translateX(-100px);
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-meta h5 {
    font-weight: 600;
}

.author-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rating {
    color: #FBBF24;
    display: flex;
    gap: 0.25rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .testimonial-container { height: 420px; }
    .testimonial-card { padding: 1.5rem; }
    .testimonial-quote { font-size: 1rem; }
}

/* FAQ Accordion UI */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
    cursor: pointer;
    font-family: var(--font-heading);
}

.faq-icon {
    font-size: 1.25rem;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Tech Stack logo items */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tech-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-row h4 {
    font-size: 0.95rem;
    font-family: var(--font-accent);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.tech-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Blogs Page and post grid items */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: var(--border-light);
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-family: var(--font-accent);
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-author-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.blog-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.blog-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Contact lead form */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-form-container {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.honey {
    display: none;
}

.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form-container { padding: 1.5rem; }
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 5rem 0 2rem 0;
    color: var(--text-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-about p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Toast Success Message */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2500;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-success-icon {
    color: var(--success);
    font-size: 1.25rem;
}

/* CMS Admin Panel CSS styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #F1F5F9;
}

.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    color: var(--text-light);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.admin-logo span {
    color: var(--accent);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.admin-nav-item.active {
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(6, 182, 212, 0.1);
}

.admin-main {
    flex-grow: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-section-content {
    display: none;
}

.admin-section-content.active {
    display: block;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-card {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    font-weight: 600;
    color: var(--secondary);
    background: #F8FAFC;
}

.admin-table tr:hover {
    background: #FAFAFA;
}

.badge-lead-status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.action-btn-group {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--border-light);
}

.action-btn-delete {
    color: #EF4444;
}

.action-btn-edit {
    color: var(--primary);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}
