:root {
    /* Base Variables (Default Theme: Tech Blue) */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --text: #334155;
    --text-light: #94a3b8;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.75rem;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --hero-bg: radial-gradient(circle at top right, #eff6ff, transparent);
}

/* --- 15 Themes --- */

/* 1. Tech Blue (Default) - Already in :root */

/* 2. Deep Ocean */
body.theme-ocean {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --dark: #0c4a6e;
    --darker: #082f49;
    --light: #f0f9ff;
    --text: #0f172a;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --hero-bg: linear-gradient(to bottom, #e0f2fe, #fff);
}

/* 3. Steel & Orange */
body.theme-steel {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --secondary: #64748b;
    --dark: #334155;
    --darker: #1e293b;
    --light: #f8fafc;
    --text: #1e293b;
    --gradient: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    --radius: 0.25rem;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* 4. Midnight Purple */
body.theme-midnight {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #d8b4fe;
    --dark: #2e1065;
    --darker: #1e1b4b;
    /* Almost black purple */
    --light: #faf5ff;
    --text: #3b0764;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --font-heading: 'Playfair Display', serif;
}

/* 5. Forest Tech */
body.theme-forest {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #84cc16;
    --dark: #064e3b;
    --darker: #022c22;
    --light: #ecfdf5;
    --text: #064e3b;
    --gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --radius: 1rem;
}

/* 6. Crimson Enterprise */
body.theme-crimson {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --secondary: #7f1d1d;
    --dark: #450a0a;
    --darker: #000000;
    --light: #fef2f2;
    --text: #450a0a;
    --gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --font-heading: 'Montserrat', sans-serif;
}

/* 7. Slate & Gold */
body.theme-gold {
    --primary: #d97706;
    --primary-dark: #b45309;
    --secondary: #94a3b8;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --font-heading: 'Playfair Display', serif;
}

/* 8. Nordic Frost */
body.theme-nordic {
    --primary: #94a3b8;
    --primary-dark: #64748b;
    --secondary: #cbd5e1;
    --dark: #334155;
    --darker: #1e293b;
    --light: #f1f5f9;
    --text: #475569;
    --gradient: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    --radius: 0.5rem;
    --font-body: 'Lato', sans-serif;
}

/* 9. Sunset Horizon */
body.theme-sunset {
    --primary: #f43f5e;
    --primary-dark: #e11d48;
    --secondary: #f59e0b;
    --dark: #881337;
    --darker: #4c0519;
    --light: #fff1f2;
    --text: #881337;
    --gradient: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
}

/* 10. Corporate Grey */
body.theme-corporate {
    --primary: #4b5563;
    --primary-dark: #374151;
    --secondary: #9ca3af;
    --dark: #111827;
    --darker: #030712;
    --light: #f9fafb;
    --text: #1f2937;
    --gradient: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    --font-heading: 'Inter', sans-serif;
}

/* 11. Electric Indigo */
body.theme-indigo {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --dark: #312e81;
    --darker: #1e1b4b;
    --light: #eef2ff;
    --text: #312e81;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* 12. Obsidian (High Contrast) */
body.theme-obsidian {
    --primary: #000000;
    --primary-dark: #333333;
    --secondary: #666666;
    --dark: #000000;
    --darker: #000000;
    --light: #ffffff;
    --text: #000000;
    --gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --radius: 0;
    --font-heading: 'Roboto Mono', monospace;
}

/* 13. Solar Flare */
body.theme-solar {
    --primary: #eab308;
    --primary-dark: #ca8a04;
    --secondary: #57534e;
    --dark: #44403c;
    --darker: #1c1917;
    --light: #fefce8;
    --text: #44403c;
    --gradient: linear-gradient(135deg, #eab308 0%, #fbbf24 100%);
}

/* 14. Mint & Charcoal */
body.theme-mint {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --secondary: #374151;
    --dark: #111827;
    --darker: #0f172a;
    --light: #f0fdfa;
    --text: #111827;
    --gradient: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
}

/* 15. Royal Navy */
body.theme-navy {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --secondary: #fbbf24;
    --dark: #0f172a;
    --darker: #020617;
    --light: #eff6ff;
    --text: #1e3a8a;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --font-heading: 'Playfair Display', serif;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--dark);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary);
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    background: var(--hero-bg);
}

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

.badge {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid var(--primary);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    background: var(--darker);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-visual:hover .hero-image {
    transform: scale(1.05);
}

/* Remove old tech grid animation */
/*
.tech-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}
*/

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text);
}

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

/* --- Premium Contact Layouts --- */

/* 1. Glassmorphism */
.contact-glass {
    background: var(--gradient);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact-glass .contact-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    border-radius: 2rem;
}

.contact-glass h2,
.contact-glass p,
.contact-glass .info-item .value,
.contact-glass .info-item .label {
    color: white;
}

.contact-glass .form-group input,
.contact-glass .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-glass .form-group input::placeholder,
.contact-glass .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-glass .btn-primary {
    background: white;
    color: var(--primary) !important;
}

/* 2. Floating Card */
.contact-floating {
    background: var(--light);
    padding: 6rem 0;
}

.contact-floating .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    align-items: center;
}

.contact-floating .contact-info {
    order: 1;
}

.contact-floating h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-floating .contact-form {
    order: 2;
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 3. Split-Hero Contact */
.contact-split-hero {
    padding: 0;
    background: var(--darker);
    color: white;
}

.contact-split-hero .container {
    max-width: 100%;
    padding: 0;
}

.contact-split-hero .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 600px;
}

.contact-split-hero .contact-visual {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.contact-split-hero .contact-visual::after {
    content: '✉';
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    transform: rotate(-15deg);
}

.contact-split-hero .contact-info-content {
    position: relative;
    z-index: 1;
}

.contact-split-hero .contact-form-container {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--darker);
}

.contact-split-hero h2 {
    color: white;
}

.contact-split-hero p {
    color: var(--text-light);
}

.contact-split-hero .info-item .label {
    color: rgba(255, 255, 255, 0.6);
}

.contact-split-hero .info-item .value {
    color: white;
}

.contact-split-hero input,
.contact-split-hero textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {

    .contact-glass .contact-wrapper,
    .contact-floating .contact-wrapper,
    .contact-split-hero .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-split-hero .contact-form-container {
        padding: 3rem;
    }

    .contact-split-hero .contact-visual {
        min-height: 300px;
    }
}

/* Dark Section */
.dark-bg {
    background: var(--darker);
    color: white;
}

.dark-bg h2 {
    color: white;
}

.dark-bg p {
    color: var(--text-light);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

.dark-bg .check-list li {
    color: white;
}

.check-list li::before {
    content: "✓";
    background: var(--secondary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.visual-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card .label {
    color: var(--text-light);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item {
    margin-top: 2rem;
}

.info-item .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #f8fafc;
    color: var(--text);
}

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

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}


/* --- Layout Variations (5 Types) --- */

/* 1. Standard (Default) - Already defined above */

/* 2. Center-Focus */
body.layout-center .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
}

body.layout-center .hero-btns {
    justify-content: center;
}

body.layout-center .hero p {
    margin-left: auto;
    margin-right: auto;
}

body.layout-center .section-header {
    text-align: center;
}

/* 3. Split-Screen (50/50 Full Height) */
@media (min-width: 1024px) {
    body.layout-split .hero {
        padding: 0;
        height: 100vh;
        display: flex;
        align-items: center;
    }

    body.layout-split .hero-content {
        height: 100%;
        gap: 0;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    body.layout-split .hero-text {
        padding: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.layout-split .hero-visual {
        height: 100%;
        border-radius: 0;
    }
}

/* 4. Asymmetric (Offset Grid) */
body.layout-asymmetric .hero-content {
    grid-template-columns: 1.5fr 1fr;
}

body.layout-asymmetric .hero-visual {
    transform: translateY(50px);
    height: 500px;
    border: 10px solid white;
}

body.layout-asymmetric .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

body.layout-asymmetric .card:nth-child(even) {
    transform: translateY(30px);
}

/* 5. Card-Based (Masonry-ish look) */
body.layout-card {
    background-color: #e2e8f0;
}

body.layout-card .container {
    max-width: 1400px;
}

body.layout-card .hero {
    margin: 2rem;
    border-radius: 2rem;
    background: white;
    padding: 4rem;
    box-shadow: var(--shadow);
}

body.layout-card .section {
    padding: 2rem;
}

body.layout-card .card {
    background: white;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content,
    .split-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-visual {
        height: 300px;
    }

    /* Reset layouts on mobile */
    body.layout-split .hero {
        height: auto;
        padding: 4rem 0;
    }

    body.layout-split .hero-text {
        padding: 0;
    }

    body.layout-asymmetric .hero-visual {
        transform: none;
        height: 300px;
    }

    body.layout-asymmetric .card:nth-child(even) {
        transform: none;
    }

    body.layout-card .hero {
        margin: 0;
        border-radius: 0;
    }
}