/* ============================================
   Growdev Infotech - Professional IT Company Website
   Main Stylesheet
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --primary-color: #2563eb;
    --primary-dark: #4f46e5;
    --primary-light: #06b6d4;
    --secondary-color: #4f46e5;
    --accent-color: #06b6d4;
    --ai-accent: #7c3aed;
    --ai-accent-light: #06b6d4;
    --dark-bg: #ffffff;
    --dark-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.background-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 40%, #1e3a5f 70%, #312e81 100%) !important;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    padding: 0.5rem 0;
}

.logo {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    list-style: none;
}

.nav-menu li {
    margin: 0;
}

.nav-menu .nav-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 1px;
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-menu .nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    width: calc(100% - 2rem);
}

.nav-menu .nav-cta {
    margin-left: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white) !important;
    padding: 0.6rem 1.35rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-menu .nav-cta::after {
    display: none;
}

.nav-menu .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    opacity: 0.95;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.hero.hero-has-bg-image::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.88) 0%, rgba(30, 64, 175, 0.85) 50%, rgba(49, 46, 129, 0.82) 100%);
    opacity: 1;
}

.hero-neural {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.35;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><pattern id="neur" width="80" height="60" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.4)"/><circle cx="50" cy="35" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="70" cy="15" r="1" fill="rgba(255,255,255,0.35)"/><path d="M10 10 L50 35 M50 35 L70 15" stroke="rgba(255,255,255,0.12)" stroke-width="0.4" fill="none"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23neur)"/></svg>');
    background-size: 400px 300px;
    pointer-events: none;
}

.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-stars .star {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--size, 2px);
    height: var(--size, 2px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out var(--delay, 0ms) infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ai-accent-light);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-trust {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

/* Homepage View All buttons - professional section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
    letter-spacing: 0.02em;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
    color: var(--white);
    gap: 0.85rem;
}

.btn-view-all:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.btn-view-all-arrow {
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.25s ease;
}

.btn-view-all:hover .btn-view-all-arrow {
    transform: translateX(4px);
}

/* AI Capabilities Section */
.ai-capabilities {
    background: linear-gradient(180deg, var(--white) 0%, #f5f3ff 100%);
}

.ai-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ai-cap-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ai-cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--ai-accent));
}

.ai-cap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--ai-accent-light);
}

.ai-cap-card .ai-cap-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.ai-cap-card .ai-cap-image {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-bg);
}

.ai-cap-card .ai-cap-image img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    display: block;
}

.ai-cap-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ai-cap-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: aliceblue;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services Page - Professional grid */
.services-page-section {
    background: var(--light-bg);
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-page-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-page-card-link {
    display: block;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}

.service-page-card-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.service-page-card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.service-page-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-page-card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-page-card-cta {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.service-page-card:hover .service-page-card-cta {
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-page-card-link {
        padding: 2rem 1.5rem;
    }
}

/* Why Choose Us */
.why-choose {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: var(--white);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-secondary);
}

/* Technologies Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Client Logos */
.client-logos {
    background: var(--light-bg);
    padding: 3rem 0;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

.logo-item img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-radius: 16px;
    margin: 4rem 0;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Stats Section - Professional */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #1e3a5f 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.stat-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

.stats-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    grid-column: 1 / -1;
    padding: 2rem;
}

/* About Page Styles */
.about-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.about-hero:not(.page-hero) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 150px 0 80px;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

/* Company Overview – image left, content right; no image = content full width */
.about-overview-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.about-overview-wrap.about-overview-has-image {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.about-overview-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.about-overview-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.about-overview-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-overview-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-overview-wrap.about-overview-has-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-overview-image {
        order: -1;
    }
}

.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    top: 1rem;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leader-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.leader-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
}

/* Services Page */
.services-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.services-hero:not(.page-hero) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 150px 0 80px;
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.service-detail {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.service-detail h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Careers Page */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.job-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Contact Page – professional & simple UI */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

/* Get In Touch – contact info card */
.contact-info {
    background: var(--white);
    padding: 2.25rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-info-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-item:last-of-type {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-item-body {
    flex: 1;
    min-width: 0;
}

.contact-item-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.contact-item-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item-content a:hover {
    text-decoration: underline;
}

.contact-social-block {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.contact-social-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Send Us a Message – form card */
.contact-form {
    background: var(--white);
    padding: 2.25rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Contact form – professional submit button */
.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
    gap: 0.85rem;
}

.btn-contact-submit:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.btn-contact-arrow {
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.25s ease;
}

.btn-contact-submit:hover .btn-contact-arrow {
    transform: translateX(4px);
}

.map-container {
    width: 100%;
    height: 400px;
    background: var(--light-bg);
    border-radius: 12px;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.20rem;
}

.footer-section a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--dark-secondary);
    border-radius: 8px;
    background: var(--dark-secondary);
    color: var(--white);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-secondary);
    color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-in"] {
    transform: none;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 72px);
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
        overflow-y: auto;
        border-right: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 1.25rem;
        border-radius: 0;
        font-size: 1rem;
        border: none;
        text-align: left;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:focus {
        background: rgba(37, 99, 235, 0.08);
        color: var(--primary-color);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-cta {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 1rem 1.25rem;
        text-align: center;
        border-radius: 0;
        border-bottom: none;
    }

    .nav-menu .nav-cta:hover {
        background: rgba(37, 99, 235, 0.12);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 3.5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.75rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

/* ===== 2026 UI Modernization Layer ===== */
:root {
    --primary-color: var(--brand-primary, #2563eb);
    --primary-dark: #4f46e5;
    --primary-light: #06b6d4;
    --ai-accent: var(--brand-accent-end, #06b6d4);
    --ai-accent-light: #06b6d4;
    --dark-bg: #ffffff;
    --dark-secondary: #f8fafc;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --surface: #ffffff;
    --radius-sm: 3px;
    --radius-md: 5px;
}

body {
    background: #ffffff;
    color: var(--text-primary);
}

.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
}

.nav-menu .nav-link,
.logo,
.section-title,
.service-card h3,
.feature-item h3,
.contact-info-title,
.contact-form-title,
.author-info h4,
.service-page-card-title {
    color: var(--text-primary);
}

.nav-menu .nav-link:hover,
.inline-link,
.service-page-card-cta {
    color: #2563eb;
}

.hero,
.services-hero,
.about-hero,
.stats-section,
.background-gradient {
    background: linear-gradient(90deg, var(--brand-accent-start, #2563eb), #7c3aed, var(--brand-accent-end, #06b6d4)) !important;
}

.hero.hero-has-bg-image {
    background-image: var(--hero-bg-image) !important;
    background-size: cover !important;
    background-position: center !important;
}

.hero::before,
.services-hero:not(.page-hero)::before,
.about-hero:not(.page-hero)::before {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ----- Shared compact inner page header (.page-hero) — blue / purple / cyan + pattern ----- */
@keyframes pageHeroGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pageHeroGlowPulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.82;
    }
}

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding-top: max(8.25rem, calc(4.25rem + env(safe-area-inset-top, 0px)));
    padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
    background: linear-gradient(
        118deg,
        #1d4ed8 0%,
        #4c1d95 38%,
        #7c3aed 52%,
        #0891b2 82%,
        #2563eb 100%
    ) !important;
    background-size: 260% 260%;
    animation: pageHeroGradientFlow 18s ease-in-out infinite;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.1) 0, transparent 45%),
        radial-gradient(circle at 82% 72%, rgba(6, 182, 212, 0.14) 0, transparent 42%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size:
        100% 100%,
        100% 100%,
        36px 36px,
        36px 36px;
    background-position: center, center, 0 0, 0 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 95% 60% at 50% -5%, rgba(255, 255, 255, 0.16), transparent 55%);
    animation: pageHeroGlowPulse 9s ease-in-out infinite;
}

.page-hero .container,
.page-hero .page-hero__inner {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.65rem, 4.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 auto 0.65rem;
    max-width: 22ch;
    letter-spacing: -0.02em;
    text-shadow:
        0 0 36px rgba(255, 255, 255, 0.38),
        0 0 72px rgba(6, 182, 212, 0.22),
        0 1px 2px rgba(15, 23, 42, 0.25);
}

.page-hero .hero-subtitle,
.page-hero .page-hero__subtitle {
    font-size: clamp(0.9rem, 2.1vw, 1.06rem);
    font-weight: 500;
    line-height: 1.55;
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.93);
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.22);
}

@media (max-width: 480px) {
    .page-hero {
        padding-top: max(4.75rem, calc(3.85rem + env(safe-area-inset-top, 0px)));
        padding-bottom: clamp(2rem, 6vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero {
        animation: none;
        background-size: 100% 100%;
    }

    .page-hero::after {
        animation: none;
        opacity: 0.68;
    }
}

.section {
    padding: 52px 0;
}

.hero {
    padding: 118px 0 62px;
}

.container {
    max-width: 1140px;
    padding: 0 16px;
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: 0.7rem;
}

.section-subtitle {
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 1rem;
}

.hero-description {
    margin-bottom: 1.25rem;
}

.hero-badge,
.btn-view-all,
.btn-contact-submit,
.nav-menu .nav-cta {
    border-radius: var(--radius-md);
}

.btn,
.service-card,
.ai-cap-card,
.testimonial-card,
.job-card,
.portfolio-card,
.blog-card,
.service-page-card,
.contact-info,
.contact-form,
.value-card,
.leader-card,
.timeline-content,
.stat-card,
.tag,
.newsletter-form input,
.newsletter-form button,
.form-group input,
.form-group textarea,
.form-group select,
.mobile-menu-toggle,
.contact-icon {
    border-radius: var(--radius-md);
}

.feature-icon,
.leader-avatar,
.author-avatar,
.social-link,
.back-to-top {
    border-radius: 50%;
}

.surface-section,
.services-overview,
.services-page-section,
.why-choose,
.client-logos {
    background: #f8fafc;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
}

.inline-link {
    font-weight: 600;
    margin-top: 0.75rem;
    display: inline-block;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.vm-card {
    background: #ffffff;
    padding: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 100%;
}

.vm-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
}

.vm-icon-vision {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.vm-icon-mission {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.vm-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: #2563eb;
    margin-bottom: 0.4rem;
}

.leader-role {
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.single-post-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.single-post-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 0.65rem;
}

.single-post-meta,
.single-post-thumbnail {
    margin-bottom: 1rem;
}

.single-post-content {
    line-height: 1.75;
    font-size: 1.03rem;
}

.footer-text {
    color: #cbd5e1;
    margin-bottom: 0.7rem;
}

.footer {
    background: #111318;
    color: #e5e7eb;
    padding: 2.2rem 0 1rem;
    margin-top: 2.2rem;
    border-top: 1px solid #1f2937;
}

.footer-content {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-section h3 {
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e1;
}

.footer-section a:hover {
    color: #ffffff;
}

.social-links {
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.social-link {
    width: 34px;
    height: 34px;
    background: #1f2937;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.social-link:hover {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
    border-color: transparent;
    color: #ffffff;
}

.newsletter-form {
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.newsletter-form input {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 0.55rem 0.7rem;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #ffffff;
    padding: 0.55rem 0.9rem;
}

.newsletter-form button:hover {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
}

.footer-bottom {
    padding-top: 0.85rem;
    border-top: 1px solid #293548;
    color: #94a3b8;
    font-size: 0.92rem;
}

.map-section {
    padding-top: 0;
}

.map-section-light {
    background: #f8fafc;
}

.map-section-light .map-container {
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    padding: 8px;
    border-radius: 12px;
}

.map-section-light .map-container iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 8px;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.benefit-desc,
.job-desc {
    color: var(--text-secondary);
}

.job-type-line {
    color: #2563eb;
    font-weight: 600;
    margin: 0.4rem 0;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.job-apply-btn {
    display: inline-block;
    margin-top: 0.8rem;
}

.btn-full {
    width: 100%;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #2563eb;
    font-size: 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section {
        padding: 38px 0;
    }

    .hero {
        padding: 98px 0 48px;
    }

    .service-card,
    .ai-cap-card,
    .testimonial-card,
    .contact-info,
    .contact-form,
    .service-page-card-link,
    .portfolio-content,
    .blog-content {
        padding: 1rem;
    }

    .hero-trust {
        margin-top: 1rem;
        font-size: 0.82rem;
    }
}

/* Portfolio page modern card refresh */
.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.portfolio-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.16);
}

.portfolio-image {
    height: 220px;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.1rem 1rem;
}

.portfolio-content h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.portfolio-card-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-tags {
    margin-top: 0.7rem;
}

.portfolio-tags .tag {
    border: 1px solid #dbe6f6;
    background: #f8fbff;
    color: #334155;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 500;
}

.portfolio-placeholder-image {
    object-fit: cover;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Technologies - compact scalable UI (home + technologies page) */
.tech-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.tech-item {
    padding: 0.7rem 0.5rem;
    min-height: 96px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.tech-item:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.tech-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 1;
}

.tech-name {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .tech-item {
        min-height: 90px;
        padding: 0.6rem 0.45rem;
    }
}

@media (max-width: 640px) {
    .tech-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .tech-item {
        min-height: 82px;
        padding: 0.55rem 0.4rem;
    }

    .tech-icon {
        font-size: 1.3rem;
    }

    .tech-name {
        font-size: 0.72rem;
    }
}

/* ===== AI SaaS Light Theme Refinement ===== */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --container-max: 1120px;
}

.container {
    max-width: var(--container-max);
    padding-inline: clamp(var(--space-2), 2vw, 20px);
}

.section {
    padding-block: clamp(30px, 4.5vw, 52px);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-subtitle {
    margin-bottom: clamp(20px, 3vw, 30px);
    max-width: 760px;
}

.hero {
    padding: clamp(100px, 12vw, 126px) 0 clamp(46px, 7vw, 64px);
}

.hero-content {
    max-width: 860px;
}

.hero-cta {
    gap: var(--space-3);
}

.hero-trust {
    margin-top: var(--space-3);
    gap: var(--space-2);
}

.ai-cap-grid,
.services-grid,
.features-grid,
.testimonials-grid,
.benefits-grid,
.jobs-grid {
    gap: clamp(var(--space-2), 2vw, 20px);
    margin-top: clamp(18px, 2.5vw, 28px);
}

.service-card,
.ai-cap-card,
.testimonial-card,
.job-card,
.benefit-card,
.feature-item,
.contact-info,
.contact-form,
.leader-card,
.value-card,
.timeline-content,
.service-page-card-link {
    padding: clamp(14px, 2vw, 22px);
}

.feature-icon {
    margin-bottom: var(--space-3);
}

.footer {
    background: #f8fafc;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-text,
.footer-section a,
.footer-bottom {
    color: var(--text-secondary);
}

.footer-section h3 {
    color: var(--text-primary);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-link {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    color: #ffffff;
    background: var(--primary-color);
}

.newsletter-form input {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

/* New homepage components */
.ai-use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(var(--space-2), 2vw, 18px);
}

.ai-use-case-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: clamp(14px, 2vw, 20px);
}

.ai-use-case-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--space-3);
}

.ai-use-case-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eff6ff;
    margin-bottom: var(--space-3);
    font-size: 22px;
}

.ai-use-case-card h3,
.ai-workflow-step h3 {
    margin-bottom: var(--space-2);
    font-size: 1.1rem;
}

.ai-use-case-card p,
.ai-workflow-step p {
    color: var(--text-secondary);
    line-height: 1.55;
}

.ai-workflow {
    background: #ffffff;
}

.ai-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(var(--space-2), 2vw, 16px);
}

.ai-workflow-step {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: clamp(14px, 2vw, 18px);
}

.ai-workflow-step-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.home-cta-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(var(--space-3), 3vw, 28px);
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: clamp(16px, 3vw, 30px);
}

.home-cta-content h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: var(--space-3);
}

.home-cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.home-cta-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .home-cta-block {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Homepage & global section rhythm — SaaS-style backgrounds (append layer)
   Loaded last so it wins over earlier theme blocks. Pure CSS; prefers reduced
   motion respected for optional hero drift.
   ============================================================================= */
:root {
    --section-pad-y: clamp(40px, 6vw, 30px);
    --section-radius-lg: 6px;
    --section-glow-blue: 0 20px 50px rgba(37, 99, 235, 0.18);
    --section-glow-violet: 0 0 40px rgba(124, 58, 237, 0.2);
    --pattern-grid: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><path d="M64 0H0V64" fill="none" stroke="%2394a3b8" stroke-width="0.35" opacity="0.35"/></svg>');
    --pattern-grid-light: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M48 0H0V48" fill="none" stroke="%232563eb" stroke-width="0.4" opacity="0.12"/></svg>');
}

/* Optional utilities for inner pages / blocks */
.section-light {
    background: var(--white);
    color: var(--text-primary);
}

.section-gradient-soft {
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #ecfeff 100%);
    color: var(--text-primary);
}

.section-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
}

.section-dark .section-title {
    color: #f8fafc;
}

.section-dark .section-subtitle {
    color: #cbd5e1;
}

.section-pattern-grid {
    position: relative;
    isolation: isolate;
}

.section-pattern-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-grid-light);
    background-size: 48px 48px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.section-pattern-grid > .container {
    position: relative;
    z-index: 1;
}

/* Consistent vertical rhythm for main sections */
body.home .section,
body.front-page .section,
.stats-section {
    padding-block: var(--section-pad-y);
}

.stats-section {
    padding-block: clamp(30px, 5vw, 92px);
}

/* Hero — richer mesh + subtle neural drift (CSS only) */
.hero {
    background-image:
        radial-gradient(ellipse 100% 80% at 20% 0%, rgba(6, 182, 212, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 30%, rgba(124, 58, 237, 0.28) 0%, transparent 50%),
        linear-gradient(125deg, #1d4ed8 0%, #4338ca 42%, #312e81 88%);
}

.hero-neural {
    animation: gdiHeroNeuralDrift 28s linear infinite;
}

@keyframes gdiHeroNeuralDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 400px 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-neural {
        animation: none;
    }

    .hero::after {
        animation: none;
    }
}

/* Company intro — clean light + faint grid */
.home-section--intro {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-section--intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-grid);
    background-size: 64px 64px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.home-section--intro .container {
    position: relative;
    z-index: 1;
}

/* Intro: optional image (float) + text wraps; long copy flows full width below image */
.home-section-intro__layout {
    display: block;
}

.home-section-intro__body {
    display: block;
}

.home-section--intro--has-image .home-section-intro__layout {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.home-section--intro--has-image .home-section-intro__layout::after {
    content: '';
    display: block;
    clear: both;
}

.home-section--intro--has-image .home-section-intro__media {
    float: none;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.home-section--intro--has-image .home-section-intro__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.home-section--intro--has-image .section-title {
    text-align: center;
}

.home-section--intro--has-image .home-section-intro__body .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.home-section--intro--has-image .home-section-intro__body .intro-content {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
}

@media (min-width: 768px) {
    .home-section--intro--has-image .home-section-intro__media {
        float: left;
        width: 40%;
        max-width: 440px;
        margin-left: 0;
        margin-right: clamp(1.25rem, 3vw, 2.25rem);
        margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    }
}

/* AI capabilities — soft AI gradient band */
.section.ai-capabilities {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #faf5ff 0%, #f0f9ff 40%, #ffffff 100%);
}

.section.ai-capabilities::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.section.ai-capabilities .container {
    position: relative;
    z-index: 1;
}

/* Use cases — contrasting cool surface */
.section.surface-section.ai-use-cases {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #f1f5f9 0%, #e0e7ff 55%, #f8fafc 100%);
    border-block: 1px solid rgba(148, 163, 184, 0.25);
}

.section.surface-section.ai-use-cases::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.section.surface-section.ai-use-cases .container {
    position: relative;
    z-index: 1;
}

/* Services — elevated cards on gradient mesh */
.section.services-overview {
    position: relative;
    isolation: isolate;
    background: linear-gradient(160deg, #ffffff 0%, #dfe7ff 50%, #ecfeff 100%);
}

.section.services-overview::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 10% 20%, rgba(37, 99, 235, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section.services-overview .container {
    position: relative;
    z-index: 1;
}

.services-overview .service-card {
    border-radius: var(--section-radius-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
}

.services-overview .service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--section-glow-blue), var(--section-glow-violet), 0 0 0 1px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
}

.services-overview .service-icon {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

/* Why choose — dark spotlight band */
.section.why-choose {
    position: relative;
    isolation: isolate;
    background: linear-gradient(165deg, #0b1220 0%, #1e1b4b 48%, #0f172a 100%);
    color: #e2e8f0;
    border-block: 1px solid rgba(148, 163, 184, 0.12);
}

.section.why-choose::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.section.why-choose .container {
    position: relative;
    z-index: 1;
}

.section.why-choose .section-title {
    color: #f8fafc;
}

.section.why-choose .section-subtitle {
    color: #cbd5e1;
}

.section.why-choose .feature-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--section-radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.section.why-choose .feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.section.why-choose .feature-item h3 {
    color: #f8fafc;
}

.section.why-choose .feature-item p {
    color: #cbd5e1;
}

.section.why-choose .feature-icon {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.9));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45), 0 0 24px rgba(124, 58, 237, 0.25);
    font-size: 2.15rem;
}

.section.why-choose .feature-item:hover .feature-icon {
    background: linear-gradient(145deg, #38bdf8, #6366f1);
    color: #ffffff;
    box-shadow: 0 10px 32px rgba(56, 189, 248, 0.45);
}

/* Technologies strip */
.home-section--tech {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-section--tech::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-grid);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.home-section--tech .container {
    position: relative;
    z-index: 1;
}

/* Testimonials — airy light band */
.home-section--testimonials {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
}

/* Workflow — subtle separation */
.section.ai-workflow {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* Homepage CTA — full-bleed bold band */
.section.home-section--cta {
    position: relative;
    isolation: isolate;
    padding-block: clamp(64px, 9vw, 100px);
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 60%, rgba(124, 58, 237, 0.22) 0%, transparent 50%),
        linear-gradient(135deg, #020617 0%, #1e1b4b 42%, #0f172a 100%);
    border-block: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section.home-section--cta .container {
    position: relative;
    z-index: 1;
}

.section.home-section--cta .home-cta-block {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--section-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section.home-section--cta .home-cta-content h2 {
    color: #f8fafc;
}

.section.home-section--cta .home-cta-content p {
    color: #cbd5e1;
}

.section.home-section--cta .btn.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a78bfa 100%);
    color: #0f172a;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.95rem 2.1rem;
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section.home-section--cta .btn.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 44px rgba(99, 102, 241, 0.55), 0 0 40px rgba(56, 189, 248, 0.35);
    color: #0f172a;
}

.section.home-section--cta .home-cta-image {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Portfolio template — section backdrop + image treatments */
.section.section-portfolio {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.section.section-portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-grid);
    background-size: 64px 64px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.section.section-portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.001);
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.15) 45%, transparent 100%);
    opacity: 0.75;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.07);
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-image img {
        transition: none;
    }

    .portfolio-card:hover .portfolio-image img {
        transform: none;
    }
}

/* Portfolio — modern card layout, typography, read more */
.section.section-portfolio .portfolio-grid {
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.section.section-portfolio .portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 6px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease;
    background: var(--white);
}

.section.section-portfolio .portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.06),
        0 20px 48px rgba(37, 99, 235, 0.14);
}

.section.section-portfolio .portfolio-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.25rem 1.35rem 1.35rem;
}

.section.section-portfolio .portfolio-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 0.65rem;
}

.section.section-portfolio .portfolio-description {
    flex: 1 1 auto;
    min-width: 0;
}

.section.section-portfolio .portfolio-card-content {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.section.section-portfolio .portfolio-card-content p {
    margin: 0 0 0.65em;
}

.section.section-portfolio .portfolio-card-content p:last-child {
    margin-bottom: 0;
}

.section.section-portfolio .portfolio-card-content.is-clamped {
    max-height: 7.35em;
    overflow: hidden;
}

.section.section-portfolio .portfolio-description:not([data-expanded='true']).has-overflow .portfolio-card-content.is-clamped {
    position: relative;
}

.section.section-portfolio .portfolio-description:not([data-expanded='true']).has-overflow .portfolio-card-content.is-clamped::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 88%);
}

.section.section-portfolio .portfolio-see-more {
    margin-top: 0.4rem;
    padding: 0.35rem 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-align: left;
    transition: color 0.2s ease;
}

.section.section-portfolio .portfolio-see-more:hover {
    color: var(--primary-dark);
}

.section.section-portfolio .portfolio-see-more:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.section.section-portfolio .portfolio-see-more__label--less {
    display: none;
}

.section.section-portfolio .portfolio-description[data-expanded='true'] .portfolio-see-more__label--more {
    display: none;
}

.section.section-portfolio .portfolio-description[data-expanded='true'] .portfolio-see-more__label--less {
    display: inline;
}

.section.section-portfolio .portfolio-tags {
    margin-top: auto;
    padding-top: 0.85rem;
}

.section.section-portfolio .portfolio-tags .tag {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
}

.section.section-portfolio .portfolio-image {
    height: 200px;
}

@media (min-width: 768px) {
    .section.section-portfolio .portfolio-image {
        height: 220px;
    }
}

/* Footer — deep dark, readable (overrides end-of-file light footer block) */
.footer {
    background: linear-gradient(180deg, #030712 0%, #0a0f1a 45%, #0f172a 100%);
    color: #94a3b8;
    margin-top: 0;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    padding: 4.2rem 0 1rem;
}

.footer-content {
    gap: clamp(1.5rem, 4vw, 2.75rem);
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.footer-section h3 {
    color: #f1f5f9;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-text {
    color: #94a3b8;
    line-height: 1.65;
    max-width: 36ch;
}

.footer-section a {
    color: #cbd5e1;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-section a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
    border-top: 1px solid rgba(51, 65, 85, 0.75);
    color: #64748b;
    font-size: 0.9375rem;
}

.social-link {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.85);
}

.social-link:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #ffffff;
}

.newsletter-form input {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(71, 85, 105, 0.9);
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form button {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    border-radius: 10px;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

