/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Backgrounds - Dark Theme Foundation */
    --bg-primary: #000000;
    --bg-secondary: #121212;
    --bg-overlay: rgba(255, 255, 255, 0.1);
    
    /* Text - High Contrast for Dark Theme */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: #666666;
    
    /* Borders - Subtle Dark Theme */
    --border-subtle: rgba(255, 255, 255, 0.25);
    --border-medium: rgba(255, 255, 255, 0.4);
    
    /* Brand Colors - Dark Red Theme */
    --brand-primary: #772e2e;
    --brand-hover: rgba(139, 0, 0, 0.1);
    --brand-active: #A52A2A;
    --brand-light: rgba(139, 0, 0, 0.3);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Typography System */
.display-huge {
    font-size: 66px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.display-large {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.display-medium {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.heading-1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--text-primary);
}

.heading-2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.heading-3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--text-primary);
}

.body-large {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--text-primary);
}

.body-medium {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.body-small {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--text-secondary);
}

/* Layout System */
.dark-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 7.6923%;
}

/* Header Styles */
.dark-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 7.6923%;
}

.logo-text {
    color: var(--brand-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.dark-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.dark-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.dark-nav-link:hover,
.dark-nav-link.active {
    color: var(--text-primary);
}

.dark-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-primary {
    background: var(--brand-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 0px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: var(--brand-hover);
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
    border-radius: 0px;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-title {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 300px;
    height: 300px;
}

.grid-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    transition: all 0.6s ease;
    position: relative;
}

.grid-item:nth-child(odd) {
    animation: pulse-red 3s infinite alternate;
}

.grid-item:nth-child(even) {
    animation: pulse-red 3s infinite alternate-reverse;
    animation-delay: 0.5s;
}

@keyframes pulse-red {
    0% {
        background: var(--bg-secondary);
        box-shadow: inset 0 0 20px rgba(139, 0, 0, 0.1);
    }
    100% {
        background: rgba(139, 0, 0, 0.1);
        box-shadow: inset 0 0 20px rgba(139, 0, 0, 0.3);
    }
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    margin-bottom: 24px;
}

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

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 16px 64px rgba(139, 0, 0, 0.2);
}

.service-icon {
    color: var(--brand-primary);
    margin-bottom: 24px;
}

.service-title {
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    margin-bottom: 32px;
}

.about-description {
    margin-bottom: 24px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-shield {
    width: 200px;
    height: 200px;
    position: relative;
}

.shield-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    opacity: 0.3;
}

.shield-layer:nth-child(1) {
    animation: rotate 20s linear infinite;
}

.shield-layer:nth-child(2) {
    animation: rotate 15s linear infinite reverse;
    transform: scale(0.7);
}

.shield-layer:nth-child(3) {
    animation: rotate 10s linear infinite;
    transform: scale(0.4);
}

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

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0px;
    padding: 16px;
    font-size: 16px;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.form-submit {
    margin-top: 16px;
    align-self: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item h3 {
    margin-bottom: 8px;
    color: var(--brand-primary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    margin-bottom: 8px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.copyright {
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .dark-container {
        padding: 0 20px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .dark-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .display-huge {
        font-size: 48px;
    }
    
    .display-large {
        font-size: 36px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .display-huge {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}