:root {
    /* Color Palette */
    --color-silk-white: #F9F9F9;
    /* Adjusted for softer background */
    --color-slate-grey: #4A5568;
    /* Darker for better text contrast */
    --color-soft-blue: #A3D5FF;
    /* Softer blue for accents */
    --color-soft-blue-dark: #7AB8E8;
    --color-white: #FFFFFF;
    --color-dark-text: #2D3748;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 12px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-silk-white);
    color: var(--color-slate-grey);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: var(--color-dark-text);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-white);
}

.bg-gradient {
    background: linear-gradient(180deg, var(--color-silk-white) 0%, #E3F2FD 100%);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease;
    padding: 10px 0;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 500;
    color: var(--color-dark-text);
}

.nav-links a:hover {
    color: var(--color-soft-blue-dark);
}

.hamburger {
    display: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-home.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-dark-text);
    /* Fallback */
}

/* Overlay for text readability on hero */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-label {
    display: block;
    color: var(--color-soft-blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.hero-content h1 {
    font-size: 2.8rem;
    /* Reduced from default 3.5rem */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-dark-text);
    color: var(--color-white);
    margin-right: var(--spacing-sm);
}

.btn-primary:hover {
    background-color: var(--color-slate-grey);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    border: 2px solid var(--color-dark-text);
    color: var(--color-dark-text);
}

.btn-secondary:hover {
    background-color: var(--color-dark-text);
    color: var(--color-white);
}

/* Split Layout (Concept & Solutions) */
.split-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-layout>div {
    flex: 1;
}

.align-items-start {
    align-items: flex-start;
}

.rounded-shadow {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Pillars Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(163, 213, 255, 0.2);
    border-color: var(--color-soft-blue);
}

.icon {
    height: 80px;
    width: auto;
    margin: 0 auto var(--spacing-md);
}

.card h3 {
    margin-bottom: var(--spacing-xs);
}

.subtitle {
    color: var(--color-soft-blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

/* Solutions List */
.solutions-list {
    list-style: none;
}

.solutions-list li {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--color-soft-blue);
}

.solutions-list strong {
    display: block;
    color: var(--color-dark-text);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* Contact Form Specifics */
.contact-section {
    padding-top: 150px;
    padding-bottom: 80px;
    max-width: 1200px;
    /* Increased from 800px to fit split layout */
}

.contact-section h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-lg);
    text-align: left;
    /* Changed from center to left */
}

.cyber-form {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-soft-blue-dark);
    box-shadow: 0 0 0 3px rgba(135, 206, 250, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

.cta-button {
    background-color: var(--color-dark-text);
    color: var(--color-white);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    width: 100%;
}

.cta-button:hover {
    background-color: var(--color-slate-grey);
}

/* Footer */
#footer {
    background-color: var(--color-white);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo {
    height: 50px;
    /* Slightly larger in footer */
    width: auto;
    margin: 0 auto 8px;
    opacity: 0.8;
}

.footer-links {
    font-size: 0.9rem;
}

.separator {
    margin: 0 10px;
    color: #CBD5E0;
}

.copyright {
    font-size: 0.8rem;
    color: #A0AEC0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible .fade-in,
.fade-in.visible {
    /* Handle both approaches */
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--color-dark-text);
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 100px;
        display: flex;
        gap: var(--spacing-lg);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .solutions-list li {
        text-align: left;
    }

    /* Fix specificity issues for mobile */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .contact-section h1 {
        text-align: center;
        font-size: 2rem;
    }

    .contact-image {
        min-height: 300px;
        /* Smaller height for mobile */
    }

    .form-block,
    .cyber-form {
        width: 100%;
    }

    .cyber-form {
        padding: var(--spacing-md);
        /* Reduce padding on mobile */
    }
}

/* Contact Image Desktop */
.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 550px;
}

/* Product Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-md);
}

.product-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark-text);
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}