:root {
    --primary-color: #1E3A8A;
    --secondary-color: #3B82F6;
    --accent-color: #60A5FA;
    --dark-blue: #1E40AF;
    --light-blue: #DBEAFE;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --background-light: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    --shadow-lg: 0 10px 25px rgba(30, 58, 138, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Page fade-in after intro */
.site-content {
    opacity: 0;
    transition: opacity 600ms ease;
}
.site-content.visible {
    opacity: 1;
}

/* Intro Animation */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 800ms ease;
    /* Safety: don't block clicks unless explicitly enabled by JS */
    pointer-events: none;
}

.intro-overlay.hidden {
    display: none;
}

/* Ensure overlay doesn't block clicks once fading starts */
.intro-overlay.no-pointer {
    pointer-events: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.code-editor {
    width: 90%;
    max-width: 800px;
    background: #1E293B;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.editor-header {
    background: #0F172A;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #334155;
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.editor-title {
    color: #94A3B8;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin-left: 12px;
}

.editor-content {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.8;
    color: #E2E8F0;
    min-height: 300px;
}

.code-line {
    display: flex;
    opacity: 0;
    animation: typeLine 0.3s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.9s; }
.code-line:nth-child(5) { animation-delay: 1.2s; }
.code-line:nth-child(6) { animation-delay: 1.5s; }
.code-line:nth-child(7) { animation-delay: 1.8s; }
.code-line:nth-child(8) { animation-delay: 2.1s; }
.code-line:nth-child(9) { animation-delay: 2.4s; }
.code-line:nth-child(10) { animation-delay: 2.7s; }
.code-line:nth-child(11) { animation-delay: 3s; }
.code-line:nth-child(12) { animation-delay: 3.3s; }

@keyframes typeLine {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.line-number {
    color: #475569;
    margin-right: 24px;
    user-select: none;
    min-width: 30px;
    text-align: right;
}

.keyword { color: #C084FC; }
.class-name { color: #60A5FA; }
.function { color: #34D399; }
.string { color: #FCD34D; }
.comment { color: #64748B; font-style: italic; }
.operator { color: #F472B6; }
.variable { color: #A78BFA; }
.decorator { color: #FB923C; }

.cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #60A5FA;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Language Switch (two-option group) */
.lang-switch-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
    padding: 0.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.18);
    border-radius: 999px;
}
.lang-option {
    border: none;
    background: transparent;
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}
.lang-option:hover { background: rgba(96, 165, 250, 0.25); }
.lang-option.active,
.lang-option[aria-pressed="true"] {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(59, 130, 246, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.feature i {
    color: var(--accent-color);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-visual {
    position: relative;
    min-height: 460px;
    border-radius: 16px;
    overflow: hidden;
    /* Replace plain box with a subtle mesh-like gradient */
    background:
        radial-gradient(1000px 500px at 20% 20%, rgba(96, 165, 250, 0.18), transparent 60%),
        radial-gradient(900px 500px at 80% 70%, rgba(30, 58, 138, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.10);
}

.circuit-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="circuit" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M20 20h60v60H20z" fill="none" stroke="%2360A5FA" stroke-width="1" opacity="0.3"/><circle cx="20" cy="20" r="3" fill="%233B82F6" opacity="0.5"/><circle cx="80" cy="20" r="3" fill="%233B82F6" opacity="0.5"/><circle cx="20" cy="80" r="3" fill="%233B82F6" opacity="0.5"/><circle cx="80" cy="80" r="3" fill="%233B82F6" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>') center/cover;
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
/* Subtle blueprint lines overlay */
.hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" preserveAspectRatio="xMidYMid slice"><defs><linearGradient id="fade" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="%23FFFFFF" stop-opacity="0.0"/><stop offset="40%" stop-color="%231E3A8A" stop-opacity="0.12"/><stop offset="100%" stop-color="%231E3A8A" stop-opacity="0.05"/></linearGradient></defs><g stroke="url(%23fade)" stroke-width="2" fill="none" opacity="0.9"><path d="M200,120 C400,80 520,180 740,140"/><path d="M260,300 C520,240 680,340 940,300"/><path d="M340,520 C620,480 720,560 1000,520"/><path d="M880,220 C960,300 980,420 920,520"/><path d="M360,180 C420,260 440,380 380,480"/></g></svg>') center/cover no-repeat;
    transform: translateZ(0);
}


/* Hero decorative elements for ultra-wide: make right side feel intentional */
.hero-ornament,
.hero-badges { display: none; }

@keyframes spinSlow {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.hero-ornament {
    position: absolute;
    top: 50%;
    right: -8%;
    width: clamp(420px, 38vw, 680px);
    height: clamp(420px, 38vw, 680px);
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(96,165,250,0.10), rgba(59,130,246,0.05) 40%, transparent 70%),
        radial-gradient(closest-side at 60% 40%, rgba(30,58,138,0.18), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-ornament::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(96,165,250,0) 0deg,
        rgba(96,165,250,0.0) 200deg,
        rgba(96,165,250,0.45) 260deg,
        rgba(96,165,250,0.0) 320deg,
        rgba(96,165,250,0.0) 360deg);
    /* Create a ring by masking center */
    -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
            mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
    animation: spinSlow 28s linear infinite;
}

.hero-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-badges .badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(30,58,138,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(30,58,138,0.12);
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(8px);
}

.hero-badges .badge i { color: var(--accent-color); font-size: 1rem; }

@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes floatC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

@keyframes badgeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge-a { top: 12%; right: 10%; animation: badgeIn 600ms ease 150ms forwards, floatA 12s ease-in-out 900ms infinite; }
.badge-b { bottom: 16%; right: 22%; animation: badgeIn 600ms ease 280ms forwards, floatB 14s ease-in-out 1000ms infinite; }
.badge-c { top: 48%; right: 35%; animation: badgeIn 600ms ease 380ms forwards, floatC 16s ease-in-out 1100ms infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.principle {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.principle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.principle-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.principle-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.principle-content p {
    color: var(--text-light);
}

.profile-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: sticky;
    top: 120px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-color);
}

.profile-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Works Section */
.works {
    padding: 5rem 0;
    background: var(--white);
}

.works-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.work-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.work-card.featured {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

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

.work-card.featured:hover {
    transform: translateY(-5px) scale(1.04);
}

.work-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.work-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: var(--white);
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-title-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-client {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.work-client a {
    color: inherit;
    text-decoration: none;
}
.work-client a:hover { text-decoration: underline; }

.work-description a {
    color: var(--accent-color);
    text-decoration: underline;
}

.work-description {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.work-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.work-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.work-feature i {
    color: var(--accent-color);
    font-size: 1.125rem;
}

.work-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-item i {
    color: var(--accent-color);
    width: 20px;
}

.contact-form-container {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E1E8ED;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 90, 0.1);
}

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .principles {
        margin-top: 2rem;
    }
    
    .work-header {
        flex-direction: column;
        text-align: center;
    }
    
    .work-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .profile-card {
        position: static;
    }

    .lang-switch-group {
        position: fixed;
        top: 16px;
        right: 60px;
        z-index: 1100;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
}

/* Large screens: improve density and spacing */
@media (min-width: 1440px) {
    .container,
    .nav-container { max-width: 1320px; }

    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 6rem;
    }

    .hero-title { font-size: 4rem; }
    .section-title { font-size: 2.75rem; }
    .hero-visual { min-height: 520px; }
    .hero-ornament,
    .hero-badges { display: block; }
}

@media (min-width: 1600px) {
    .container,
    .nav-container { max-width: 1440px; }

    /* Trim extreme vertical whitespace while keeping presence */
    .hero { min-height: 85vh; }

    /* Subtle background dot grid to reduce emptiness on ultra-wide */
    body {
        background-image: radial-gradient(rgba(30, 58, 138, 0.05) 1px, transparent 1px);
        background-size: 28px 28px;
        background-position: 0 0;
    }

    .circuit-background { opacity: 0.16; }
    .hero-visual { min-height: 580px; }
}

/* Show hero ornaments for all non-mobile widths (consistency across desktop/laptop) */
@media (min-width: 969px) {
    .hero-ornament,
    .hero-badges { display: block; }
}

/* Hide duplicated text features for tablet/desktop; keep only on mobile */
@media (min-width: 769px) {
    .hero .hero-content .hero-features { display: none !important; }
}

/* Cookie Consent (reimplemented) */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    border-top: 1px solid rgba(30, 58, 138, 0.15);
    box-shadow: 0 -10px 30px rgba(30, 58, 138, 0.12);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 260ms ease;
}
.cookie-consent.show { transform: translateY(0); }

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
}
.cookie-consent__text {
    color: var(--text-dark);
    font-size: 0.9rem;
}
.cookie-consent__actions { display: flex; gap: 0.5rem; }
.cookie-consent__btn {
    border: 1px solid rgba(30, 58, 138, 0.25);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.cookie-consent__btn.primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-consent__inner { flex-direction: column; align-items: flex-start; }
    .cookie-consent__actions { width: 100%; justify-content: flex-end; }
}