body {
    box-sizing: border-box;
}

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

:root {
    /* Color palette */
    --color-bg: #0C1424;
    --color-bg-rgb: 12, 20, 36;
    --color-text: #E8F0FB;
    --color-text-rgb: 232, 240, 251;
    --color-muted: #A7B8D5;
    --color-muted-2: #8CA0C0;
    --color-accent: #4AA8FF;
    --color-accent-rgb: 74, 168, 255;
    --color-accent-hover: #2F8BE0;
    --color-secondary: #12D6C2;
    --color-secondary-rgb: 18, 214, 194;
    --color-surface: #111C32;
    --color-dark-2: #0A0F1A;
    --color-white: #FFFFFF;
    --color-panel: #0F192B;
    --autofill-bg: var(--color-panel);
    --autofill-bg-focus: var(--color-panel);
    --autofill-text: var(--color-text);

    --nav-bg: rgba(var(--color-bg-rgb), 0.9);
    --nav-shadow-color: rgba(var(--color-accent-rgb), 0.18);
    --nav-shadow-strong: rgba(0, 0, 0, 0.35);

    --border-light: rgba(var(--color-accent-rgb), 0.18);
    --border-medium: rgba(var(--color-accent-rgb), 0.22);
    --border-strong: rgba(var(--color-accent-rgb), 0.3);
    --border-card: rgba(var(--color-accent-rgb), 0.18);
    --tag-bg: rgba(var(--color-accent-rgb), 0.16);
    --contact-border: rgba(var(--color-text-rgb), 0.2);
    --footer-border: rgba(var(--color-text-rgb), 0.12);
    --footer-text: rgba(var(--color-text-rgb), 0.7);
    --footer-text-strong: rgba(var(--color-text-rgb), 0.92);

    --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-1-strong: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-service: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-nav: 0 14px 30px var(--nav-shadow-strong);
    --shadow-cta: 0 10px 20px rgba(0, 0, 0, 0.35);

    /* Typography scale (multiplier of base rem) */
    --fs-base: 1rem;
    --fs-logo: 1.75;
    --fs-nav-link: 0.95;
    --fs-nav-cta: 0.95;
    --fs-hero-title: 4;
    --fs-hero-subtitle: 1.35;
    --fs-btn: 1.05;
    --fs-section-title: 2.75;
    --fs-section-subtitle: 1.15;
    --fs-capability-icon: 2;
    --fs-capability-title: 1.5;
    --fs-body: 1;
    --fs-feature-icon: 1.5;
    --fs-feature-title: 1.15;
    --fs-feature-body: 0.95;
    --fs-portfolio-icon: 3;
    --fs-portfolio-title: 1.4;
    --fs-tech-tag: 0.85;
    --fs-service-number: 3;
    --fs-mv-title: 1.3;
    --fs-mv-body: 1.05;
    --fs-contact-label: 0.95;
    --fs-contact-body: 1;
    --fs-info-title: 1.15;
    --fs-info-body: 0.95;
}

.theme-light {
    --color-bg: #FFFFFF;
    --color-bg-rgb: 255, 255, 255;
    --color-text: #1A1A1A;
    --color-text-rgb: 26, 26, 26;
    --color-muted: #4A4A4A;
    --color-muted-2: #666666;
    --color-accent: #1479FF;
    --color-accent-rgb: 20, 121, 255;
    --color-accent-hover: #0d5fd6;
    --color-secondary: #0FD4C7;
    --color-secondary-rgb: 15, 212, 199;
    --color-surface: #F8FEFF;
    --color-dark-2: #2A2A2A;
    --color-white: #FFFFFF;
    --color-panel: #FFFFFF;
    --autofill-bg: var(--color-white);
    --autofill-bg-focus: var(--color-white);
    --autofill-text: var(--color-text);

    --nav-bg: rgba(var(--color-bg-rgb), 0.95);
    --nav-shadow-color: rgba(var(--color-accent-rgb), 0.1);
    --nav-shadow-strong: rgba(0, 0, 0, 0.08);

    --border-light: rgba(var(--color-accent-rgb), 0.1);
    --border-medium: rgba(var(--color-accent-rgb), 0.12);
    --border-strong: rgba(var(--color-accent-rgb), 0.15);
    --border-card: rgba(var(--color-accent-rgb), 0.1);
    --tag-bg: rgba(var(--color-accent-rgb), 0.1);
    --contact-border: rgba(var(--color-bg-rgb), 0.2);
    --footer-border: rgba(var(--color-bg-rgb), 0.1);
    --footer-text: rgba(var(--color-bg-rgb), 0.6);
    --footer-text-strong: rgba(var(--color-bg-rgb), 0.9);

    --shadow-1: 0 8px 24px rgba(var(--color-accent-rgb), 0.25);
    --shadow-1-strong: 0 12px 32px rgba(var(--color-accent-rgb), 0.35);
    --shadow-2: 0 16px 48px rgba(var(--color-accent-rgb), 0.15);
    --shadow-3: 0 20px 60px rgba(var(--color-accent-rgb), 0.2);
    --shadow-service: 0 12px 40px rgba(var(--color-accent-rgb), 0.15);
    --shadow-nav: 0 14px 30px rgba(0, 0, 0, 0.08);
    --shadow-cta: 0 10px 20px rgba(var(--color-accent-rgb), 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
}

input,
textarea,
select,
option {
    user-select: text;
}

/* Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(var(--color-bg-rgb), 0.5);
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(var(--color-bg-rgb), 0.95) 0%, rgba(var(--color-bg-rgb), 0.85) 100%);
    border-radius: 12px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 12px;
    border: 2px solid rgba(var(--color-bg-rgb), 0.9);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 16px rgba(var(--color-accent-rgb), 0.25);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-accent-hover) 0%, var(--color-secondary) 100%);
    box-shadow: 0 10px 24px rgba(var(--color-accent-rgb), 0.35);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    min-height: 78px;
    transform: translateZ(0);
    will-change: background, box-shadow;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * var(--fs-logo));
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: 1.25rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: calc(var(--fs-base) * var(--fs-nav-link));
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a.active {
    color: var(--color-accent);
    font-weight: 600;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    font-size: calc(var(--fs-base) * var(--fs-nav-cta));
    cursor: pointer;
    box-shadow: var(--shadow-1);
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-1-strong);
}

.nav-scrolled {
    box-shadow: var(--shadow-nav);
    background: rgba(var(--color-bg-rgb), 0.98);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(var(--color-accent-rgb), 0.15);
    border-radius: 10px;
    background: rgba(var(--color-accent-rgb), 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    background: rgba(var(--color-accent-rgb), 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(var(--color-accent-rgb), 0.14);
    border-color: var(--border-strong);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.theme-toggle i {
    font-size: 1.2rem;
}

.nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 4px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.3s ease;
}

.nav-toggle:hover {
    box-shadow: 0 10px 20px rgba(var(--color-accent-rgb), 0.15);
    background: rgba(var(--color-accent-rgb), 0.12);
}

.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 5% 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * var(--fs-hero-title));
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-subheadline {
    font-size: calc(var(--fs-base) * var(--fs-hero-subtitle));
    color: var(--color-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: calc(var(--fs-base) * var(--fs-btn));
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--color-accent-rgb), 0.35);
}

.btn-secondary {
    background: var(--color-panel);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-1);
}

/* Section Styles */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * var(--fs-section-title));
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: calc(var(--fs-base) * var(--fs-section-subtitle));
    color: var(--color-muted-2);
    max-width: 700px;
    margin: 0 auto;
}

/* Capabilities Cards */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.capability-card {
    background: var(--color-panel);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(var(--color-accent-rgb), 0.15);
    border-color: var(--color-accent);
}

.capability-card:hover::before {
    transform: scaleX(1);
}

.capability-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: calc(var(--fs-base) * 2);
}

.capability-icon i,
.feature-icon i,
.portfolio-image i,
.info-icon i {
    display: inline-flex;
    line-height: 1;
}

.capability-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 1.5);
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.capability-card p {
    color: var(--color-muted-2);
    line-height: 1.7;
    font-size: calc(var(--fs-base) * 1);
}

/* Why Nourvix Section */
.why-nourvix {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
    padding: 6rem 5%;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: calc(var(--fs-base) * 1.5);
}

.feature-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 1.15);
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 600;
}

.feature-content p {
    color: var(--color-muted-2);
    font-size: calc(var(--fs-base) * 0.95);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: var(--color-panel);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(var(--color-accent-rgb), 0.2);
}

.portfolio-image {
    height: 220px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--fs-base) * 3);
    color: var(--color-white);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 1.4);
    margin-bottom: 0.8rem;
    color: var(--color-text);
    font-weight: 600;
}

.portfolio-content p {
    color: var(--color-muted-2);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: calc(var(--fs-base) * 0.85);
    font-weight: 500;
}

.portfolio-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.portfolio-link:hover {
    gap: 1rem;
}

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

.service-card {
    background: var(--color-panel);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    mask: linear-gradient(var(--color-panel) 0 0) content-box, linear-gradient(var(--color-panel) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(var(--color-accent-rgb), 0.15);
}

.service-number {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 3);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 1.5);
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.service-card p {
    color: var(--color-muted-2);
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--color-panel);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: calc(var(--fs-base) * 1.2);
    line-height: 1.9;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

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

.mv-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-radius: 16px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.1);
}

.mv-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 1.5);
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-weight: 600;
}

.mv-card p {
    font-size: calc(var(--fs-base) * 1.1);
    line-height: 1.7;
    color: var(--color-muted);
    margin: 0;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-dark-2) 100%);
    color: var(--color-white);
    padding: 6rem 5%;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--color-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact-email {
    transition: color 0.3s ease;
}

#contact-email:hover {
    color: var(--color-accent);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.form-group label {
    font-weight: 500;
    font-size: calc(var(--fs-base) * 0.95);
    color: var(--footer-text-strong);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--contact-border);
    background: rgba(var(--color-bg-rgb), 0.05);
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
    font-size: calc(var(--fs-base) * 1);
    transition: all 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:-webkit-autofill,
.form-group select:-webkit-autofill,
.form-group textarea:-webkit-autofill {
    box-shadow: 0 0 0 1000px var(--autofill-bg) inset !important;
    -webkit-box-shadow: 0 0 0 1000px var(--autofill-bg) inset !important;
    background-color: var(--autofill-bg) !important;
    background-image: none !important;
    -webkit-text-fill-color: var(--autofill-text) !important;
    caret-color: var(--autofill-text);
}

.form-group input:-webkit-autofill:focus,
.form-group select:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--autofill-bg-focus) inset !important;
    -webkit-box-shadow: 0 0 0 1000px var(--autofill-bg-focus) inset !important;
    background-color: var(--autofill-bg-focus) !important;
    background-image: none !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(var(--color-bg-rgb), 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.select-display {
    width: 100%;
    text-align: left;
    padding: 1rem 3rem 1rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
    color: var(--color-white);
    font-size: calc(var(--fs-base) * 1);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.select-display:hover {
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: inset 0 1px 0 rgba(var(--color-bg-rgb), 0.25), 0 14px 36px rgba(0, 0, 0, 0.18);
}

.select-wrapper.open .select-display {
    border-color: var(--color-accent);
    box-shadow: 0 16px 40px rgba(var(--color-accent-rgb), 0.25), 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
    background: linear-gradient(135deg, rgba(var(--color-bg-rgb), 0.12) 0%, rgba(var(--color-accent-rgb), 0.12) 100%);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-panel);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    list-style: none;
    padding: 0.35rem 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    z-index: 10;
}

.select-wrapper.open .select-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.select-options li {
    padding: 0.85rem 1rem;
    color: var(--color-white);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.select-options li:hover {
    background: rgba(var(--color-accent-rgb), 0.2);
    padding-left: 1.2rem;
}

.select-options li[aria-selected="true"] {
    background: rgba(var(--color-accent-rgb), 0.25);
    color: var(--color-white);
}

/* Light theme tweaks */
.theme-light .contact {
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.08) 0%, rgba(var(--color-secondary-rgb), 0.1) 100%);
    color: var(--color-text);
}

.theme-light .contact .section-title,
.theme-light .contact .section-subtitle {
    color: var(--color-text);
}

.theme-light .info-content h4 {
    color: var(--color-text);
}

.theme-light .info-content p {
    color: var(--color-muted);
}

.theme-light .form-group label {
    color: var(--color-text);
}

.theme-light .form-group input,
.theme-light .form-group select,
.theme-light .form-group textarea {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid rgba(var(--color-text-rgb), 0.12);
}

.theme-light .form-group input:focus,
.theme-light .form-group select:focus,
.theme-light .form-group textarea:focus {
    background: var(--color-white);
}

.theme-light .select-display {
    background: var(--color-white);
    color: var(--color-text);
}

.theme-light .select-arrow {
    border-color: var(--color-text);
}

.theme-light .select-options {
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-rgb), 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.theme-light .select-options li {
    color: var(--color-text);
}

.theme-light .select-options li:hover,
.theme-light .select-options li[aria-selected="true"] {
    color: var(--color-text);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.select-wrapper.open .select-arrow {
    transform: translateY(-50%) rotate(-135deg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--color-accent-rgb), 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: calc(var(--fs-base) * 1.5);
}

.info-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--fs-base) * 1.15);
    margin-bottom: 0.5rem;
    color: var(--color-white);
    font-weight: 600;
}

.info-content p {
    color: var(--footer-text);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--color-dark-2);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--footer-border);
}

footer p {
    color: var(--footer-text);
    font-size: calc(var(--fs-base) * 0.95);
}

@view-transition {
    navigation: auto;
}

/* MOBILE NAVIGATION */
@media (max-width: 575px) {
    nav {
        padding: 1rem 4%;
        min-height: 68px;
    }

    .nav-actions {
        gap: 0.6rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        margin-left: 0;
        background: rgba(var(--color-bg-rgb), 0.95);
        backdrop-filter: blur(10px);
        /* border: 1px solid rgba(var(--color-accent-rgb), 0.25); */
        /* border-radius: 12px; */
        padding: 0 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        box-shadow: 0 10px 40px var(--nav-shadow-strong);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease, padding 0.3s ease;
        z-index: 20;
    }

    .nav-links.open {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .nav-links a {
        width: 100%;
        font-size: calc(var(--fs-base) * 0.95);
    }

    .nav-links .nav-cta {
        width: 100%;
        text-align: center;
    }
}

/* SMALL DEVICES - Mobile (max-width: 380px) */
@media (max-width: 380px) {
    nav {
        padding: 0.9rem 4%;
        gap: 0.8rem;
        min-height: 64px;
    }

    .logo {
        font-size: calc(var(--fs-base) * 1.3);
    }

    .nav-links a {
        font-size: calc(var(--fs-base) * 0.85);
        padding: 0.35rem 0;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: calc(var(--fs-base) * 0.8);
        width: 100%;
    }

    .hero {
        padding: 7rem 4% 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: calc(var(--fs-base) * 1.8);
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subheadline {
        font-size: calc(var(--fs-base) * 0.95);
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: calc(var(--fs-base) * 0.95);
    }

    section {
        padding: 3rem 4%;
    }

    .section-title {
        font-size: calc(var(--fs-base) * 1.6);
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: calc(var(--fs-base) * 0.95);
        line-height: 1.6;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .capabilities-grid,
    .portfolio-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .capability-card,
    .service-card {
        padding: 1.8rem;
    }

    .capability-card h3,
    .service-card h3 {
        font-size: calc(var(--fs-base) * 1.2);
    }

    .capability-icon {
        width: 50px;
        height: 50px;
        font-size: calc(var(--fs-base) * 1.6);
        margin-bottom: 1.2rem;
    }

    .service-number {
        font-size: calc(var(--fs-base) * 2.5);
    }

    .portfolio-image {
        height: 180px;
        font-size: calc(var(--fs-base) * 2.5);
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-content h3 {
        font-size: calc(var(--fs-base) * 1.2);
    }

    .portfolio-content p {
        font-size: calc(var(--fs-base) * 0.9);
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-tag {
        font-size: calc(var(--fs-base) * 0.75);
        padding: 0.3rem 0.8rem;
    }

    .feature-item {
        gap: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: calc(var(--fs-base) * 1.3);
    }

    .feature-content h4 {
        font-size: calc(var(--fs-base) * 1);
    }

    .feature-content p {
        font-size: calc(var(--fs-base) * 0.85);
    }

    .about-content p {
        font-size: calc(var(--fs-base) * 1);
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .mv-card {
        padding: 1.8rem;
    }

    .mv-card h3 {
        font-size: calc(var(--fs-base) * 1.2);
    }

    .mv-card p {
        font-size: calc(var(--fs-base) * 0.95);
    }

    .contact {
        padding: 3rem 4%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.85rem;
        font-size: calc(var(--fs-base) * 0.95);
    }

    .info-item {
        gap: 1rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: calc(var(--fs-base) * 1.3);
    }

    .info-content h4 {
        font-size: calc(var(--fs-base) * 1);
    }

    .info-content p {
        font-size: calc(var(--fs-base) * 0.9);
    }

    footer {
        padding: 2rem 4%;
    }

    footer p {
        font-size: calc(var(--fs-base) * 0.85);
        line-height: 1.5;
    }
}

/* SMALL TO MEDIUM DEVICES - Mobile to Tablet (381px - 575px) */
@media (min-width: 381px) and (max-width: 600px) {
    nav {
        padding: 1rem 4%;
    }

    .logo {
        font-size: calc(var(--fs-base) * 1.5);
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: calc(var(--fs-base) * 0.85);
    }

    .nav-cta {
        padding: 0.6rem 1.3rem;
        font-size: calc(var(--fs-base) * 0.85);
    }

    .hero {
        padding: 8rem 4% 4rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: calc(var(--fs-base) * 2.2);
        line-height: 1.3;
    }

    .hero-subheadline {
        font-size: calc(var(--fs-base) * 1.05);
        margin-bottom: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1.2rem;
    }

    .btn {
        width: 100%;
        padding: 0.95rem 2rem;
        font-size: calc(var(--fs-base) * 1);
    }

    section {
        padding: 4rem 4%;
    }

    .section-title {
        font-size: calc(var(--fs-base) * 1.9);
    }

    .section-subtitle {
        font-size: calc(var(--fs-base) * 1);
    }

    .capabilities-grid,
    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capability-card,
    .service-card {
        padding: 2rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* MEDIUM DEVICES - Tablets (576px - 767px) */
@media (min-width: 601px) and (max-width: 767px) {
    nav {
        padding: 1.2rem 5%;
    }

    .logo {
        font-size: calc(var(--fs-base) * 1.6);
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: calc(var(--fs-base) * 0.9);
    }

    .hero {
        padding: 9rem 5% 5rem;
    }

    .hero h1 {
        font-size: calc(var(--fs-base) * 2.8);
    }

    .hero-subheadline {
        font-size: calc(var(--fs-base) * 1.15);
        margin-bottom: 2.8rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .btn {
        width: auto;
        padding: 1rem 2.2rem;
    }

    section {
        padding: 5rem 5%;
    }

    .section-title {
        font-size: calc(var(--fs-base) * 2.3);
    }

    .section-subtitle {
        font-size: calc(var(--fs-base) * 1.08);
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .mission-vision {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* MEDIUM TO LARGE DEVICES - Tablets to Small Laptops (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    nav {
        padding: 1.3rem 5%;
    }

    .logo {
        font-size: calc(var(--fs-base) * 1.65);
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: calc(var(--fs-base) * 0.92);
    }

    .hero {
        padding: 10rem 5% 5.5rem;
    }

    .hero h1 {
        font-size: calc(var(--fs-base) * 3.2);
    }

    .hero-subheadline {
        font-size: calc(var(--fs-base) * 1.22);
    }

    section {
        padding: 5.5rem 5%;
    }

    .section-title {
        font-size: calc(var(--fs-base) * 2.5);
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.3rem;
    }

    .portfolio-image {
        height: 210px;
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* LARGE DEVICES - Laptops (1024px - 1149px) */
@media (min-width: 1024px) and (max-width: 1149px) {
    .hero h1 {
        font-size: calc(var(--fs-base) * 3.5);
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

/* EXTRA LARGE DEVICES - Desktops (1150px and above) */
@media (min-width: 1150px) {
    .hero {
        padding: 11rem 6% 7rem;
        max-width: 1600px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: calc(var(--fs-base) * 4);
    }

    .hero-subheadline {
        font-size: calc(var(--fs-base) * 1.35);
        max-width: 850px;
    }

    section {
        padding: 6.5rem 6%;
        max-width: 1600px;
    }

    .section-title {
        font-size: calc(var(--fs-base) * 2.75);
    }

    .section-subtitle {
        font-size: calc(var(--fs-base) * 1.15);
        max-width: 750px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        max-width: 1300px;
    }

    .mission-vision {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ULTRA WIDE SCREENS - Large Desktops (1400px and above) */
@media (min-width: 1400px) {
    .hero h1 {
        font-size: calc(var(--fs-base) * 4.5);
    }

    .hero-subheadline {
        font-size: calc(var(--fs-base) * 1.45);
        max-width: 900px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.8rem;
    }

    .capabilities-grid,
    .services-grid {
        gap: 2.5rem;
    }
}
