/* ========== SVG ICONS ========== */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Feature icons */
.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
}

/* Agent type icons */
.agent-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
}

/* Newsletter icon */
.newsletter-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 2rem;
}

/* Newsletter benefit icons */
.newsletter-benefit-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* ========== CSS VARIABLES ========== */
:root {
    /* Current Theme: Bright Tech */
    --primary-blue: #00b4d8;
    --secondary-blue: #0077b6;
    --accent-cyan: #90e0ef;
    --dark-navy: #0a192f;
    --navy: #172a45;
    --light-navy: #1e3a5f;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --red: #ff6b6b;
    --orange: #ffa726;
    --purple: #a855f7;
}

/* Theme 1: Enterprise Defense */
[data-theme="enterprise"] {
    --primary-blue: #2c5282;
    --secondary-blue: #1a365d;
    --accent-cyan: #4a90a4;
    --dark-navy: #0f1419;
    --navy: #1a202c;
    --light-navy: #2d3748;
    --lightest-navy: #4a5568;
    --slate: #718096;
    --light-slate: #a0aec0;
    --lightest-slate: #e2e8f0;
    --white: #f7fafc;
    --green: #38a169;
    --red: #e53e3e;
    --orange: #dd6b20;
    --purple: #805ad5;
}

/* Theme 2: Aerospace Professional */
[data-theme="aerospace"] {
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e40af;
    --accent-cyan: #6b7280;
    --dark-navy: #111827;
    --navy: #1f2937;
    --light-navy: #374151;
    --lightest-navy: #4b5563;
    --slate: #9ca3af;
    --light-slate: #d1d5db;
    --lightest-slate: #f3f4f6;
    --white: #ffffff;
    --green: #6b7280;
    --red: #dc2626;
    --orange: #f59e0b;
    --purple: #7c3aed;
}

/* Theme 3: Corporate Professional */
[data-theme="corporate"] {
    --primary-blue: #1e40af;
    --secondary-blue: #1d4ed8;
    --accent-cyan: #dbeafe;
    --dark-navy: #0f172a;
    --navy: #1e293b;
    --light-navy: #334155;
    --lightest-navy: #475569;
    --slate: #64748b;
    --light-slate: #94a3b8;
    --lightest-slate: #f1f5f9;
    --white: #ffffff;
    --green: #059669;
    --red: #dc2626;
    --orange: #ea580c;
    --purple: #7c2d12;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-navy);
    color: var(--lightest-slate);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-y {
    background: #e2e8f0;
    color: #1a202c;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1em;
    margin-right: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.logo-text {
    color: #a0aec0;
    font-weight: 800;
}

.logo:hover .logo-y {
    background: #f7fafc;
    color: #1a202c;
    transform: scale(1.05);
}

.logo:hover .logo-text {
    color: #cbd5e0;
}

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

.nav-link {
    color: var(--light-slate);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
    background-color: rgba(100, 255, 218, 0.1);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--light-slate);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(23, 42, 69, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23172a45" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover, 50px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--lightest-slate);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--light-slate);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--slate);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

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

.btn-secondary:hover {
    background: var(--green);
    color: var(--dark-navy);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--dark-navy) 0%, var(--navy) 100%);
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--slate);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: rgba(35, 53, 84, 0.6);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--slate);
    line-height: 1.7;
}

/* Agent Types Section */
.agent-types {
    padding: 6rem 2rem;
    background: var(--navy);
}

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

.agent-card {
    background: linear-gradient(135deg, rgba(35, 53, 84, 0.8) 0%, rgba(23, 42, 69, 0.6) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    border-color: var(--green);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.agent-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.uav {
    color: var(--primary-blue);
}

.ugv {
    color: var(--green);
}

.usv {
    color: var(--accent-cyan);
}

.uuv {
    color: var(--purple);
}

.hybrid {
    color: var(--orange);
}

.agent-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 0.5rem;
}

.agent-full-name {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.agent-features {
    list-style: none;
    text-align: left;
}

.agent-features li {
    color: var(--light-slate);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.agent-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* Security Section */
.security {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--lightest-navy) 100%);
}

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

.security-layer {
    background: rgba(23, 42, 69, 0.7);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.security-layer:hover {
    transform: translateX(5px);
    border-left-color: var(--green);
    background: rgba(23, 42, 69, 0.9);
}

.security-layer h3 {
    color: var(--lightest-slate);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.security-layer ul {
    list-style: none;
}

.security-layer li {
    color: var(--light-slate);
    margin-bottom: 0.7rem;
    padding-left: 1.2rem;
    position: relative;
}

.security-layer li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12rem;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23a8b2d1'%3E%3Cpath d='M256 8c6.2 0 12.1 1.4 17.4 4L441.4 96c22.1 9.3 38.6 31 38.6 56.8 0 180.9-134.8 330.8-224 358.4C166.8 483.6 32 333.7 32 152.8 32 127 48.5 105.3 70.6 96L238.6 12C243.9 9.4 249.8 8 256 8zm0 72v344c90.2-23.1 160-128.8 160-272L256 80z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: var(--navy);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-slate);
    font-size: 1rem;
}

/* Formation Types */
.formations {
    padding: 6rem 2rem;
    background: var(--dark-navy);
}

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

.formation-tag {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    text-align: center;
    color: var(--green);
    font-weight: 500;
    transition: all 0.3s ease;
}

.formation-tag:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: scale(1.05);
}


.contact-form-container {
    background: rgba(35, 53, 84, 0.6);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--green));
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-subtitle {
    color: var(--light-slate);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lightest-slate);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.8);
    color: var(--lightest-slate);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(10, 25, 47, 0.9);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-textarea {
    min-height: 120px;
    max-height: 200px;
}

.form-select {
    cursor: pointer;
    min-height: 48px; /* Ensure minimum touch target size */
    -webkit-appearance: none; /* Remove iOS default styling */
    -moz-appearance: none; /* Remove Firefox default styling */
    appearance: none; /* Remove default styling */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2364ffda" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem; /* Make room for custom arrow */
}

.form-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

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

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form validation states */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--red);
    background: rgba(255, 107, 107, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: var(--green);
    background: rgba(100, 255, 218, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
    text-align: center;
}

.form-message.success {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: var(--green);
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--red);
}


/* Newsletter Section */
.newsletter {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--light-navy) 100%);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.contact-newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.newsletter-content {
    background: rgba(35, 53, 84, 0.6);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
}

.newsletter-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--green));
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 1.5rem;
    display: block;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.1rem;
    color: var(--light-slate);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 280px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.8);
    color: var(--lightest-slate);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--slate);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(10, 25, 47, 0.9);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.newsletter-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

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

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.newsletter-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.newsletter-benefit-icon {
    color: var(--green);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.newsletter-benefit-text {
    color: var(--light-slate);
    font-size: 0.95rem;
    line-height: 1.5;
}

.newsletter-privacy {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--slate);
    opacity: 0.8;
}

.newsletter-privacy a {
    color: var(--green);
    text-decoration: none;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* Form validation states */
.newsletter-input.error {
    border-color: var(--red);
    background: rgba(255, 107, 107, 0.1);
}

.newsletter-input.success {
    border-color: var(--green);
    background: rgba(100, 255, 218, 0.1);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-message.success {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: var(--green);
}

.newsletter-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--red);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--navy);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--light-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--green);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
    color: var(--slate);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1280px) {
    .contact-newsletter-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-grid,
    .agent-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        min-width: unset;
    }

    .newsletter-benefits {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .hero {
        padding: 1rem;
        min-height: calc(100vh - 60px); /* Account for navbar height */
        padding-top: 6rem; /* Extra padding to ensure title isn't cut */
    }

    .stats-grid,
    .formations-grid {
        grid-template-columns: 1fr;
    }

    .newsletter {
        padding: 4rem 1rem;
    }

    .newsletter-content {
        padding: 2rem 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-title {
        font-size: 1.5rem;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--green);
    transform: translateY(-3px);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--navy);
    border: 1px solid var(--light-navy);
    border-radius: 12px;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-switcher.show {
    opacity: 0.9;
    visibility: visible;
}

.theme-switcher.show:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.theme-switcher h4 {
    color: var(--lightest-slate);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-option {
    background: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    color: var(--light-slate);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-align: center;
    min-width: 140px;
}

.theme-option:hover {
    background: var(--lightest-navy);
    color: var(--lightest-slate);
}

.theme-option.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

@media (max-width: 768px) {
    .theme-switcher {
        bottom: 5rem;
        left: 1rem;
        padding: 0.8rem;
    }

    .theme-option {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 120px;
    }
}

/* Tablet and mobile form improvements */
@media (max-width: 1024px) {
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1.2rem 1.5rem; /* Larger padding for touch devices */
        font-size: 1.1rem; /* Slightly larger text for better readability */
        min-height: 52px; /* Larger touch target */
    }

    .form-select {
        min-height: 52px; /* Consistent with other inputs */
        background-position: right 1.2rem center;
        padding-right: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack form fields vertically on tablets */
        gap: 1.5rem;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .hero {
        padding: 0.5rem;
        padding-top: 7rem; /* More padding for very small screens */
        min-height: calc(100vh - 40px);
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller but more responsive */
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 1.5rem 1.75rem; /* Even larger padding for phones */
        font-size: 1.2rem; /* Larger text on small screens */
        min-height: 56px; /* iOS recommended minimum */
    }

    .form-select {
        min-height: 56px;
        background-position: right 1.5rem center;
        background-size: 14px; /* Slightly larger arrow on mobile */
        padding-right: 4rem;
    }
}

/* Privacy and Terms Pages Styles */
.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.privacy-header,
.terms-header {
    text-align: center;
    margin-bottom: 4rem;
}

.privacy-title,
.terms-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--lightest-slate);
    line-height: 1.1;
}

.privacy-subtitle,
.terms-subtitle {
    font-size: 1.2rem;
    color: var(--light-slate);
    margin-bottom: 1rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--slate);
    font-style: italic;
}

.privacy-section,
.terms-section {
    margin-bottom: 3rem;
}

.privacy-section h2,
.terms-section h2 {
    font-size: 1.8rem;
    color: var(--lightest-slate);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.privacy-section h3,
.terms-section h3 {
    font-size: 1.4rem;
    color: var(--light-slate);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 500;
}

.privacy-section p,
.terms-section p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section ul,
.privacy-section ol,
.terms-section ul,
.terms-section ol {
    color: var(--slate);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: rgba(35, 53, 84, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    margin: 2rem 0;
    display: none; /* Hide contact info panels for now */
}

.contact-info h3 {
    color: var(--green);
    margin-top: 0;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: var(--primary-blue);
}

.highlight {
    background: rgba(100, 255, 218, 0.1);
    border-left: 4px solid var(--green);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight p {
    margin: 0;
    color: var(--lightest-slate);
}

.warning {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--red);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning p {
    margin: 0;
    color: var(--lightest-slate);
}

@media (max-width: 768px) {
    .privacy-content,
    .terms-content {
        padding: 6rem 1rem 4rem;
    }
}