﻿/* ==========================================
   AYNITE - Cybersecurity Website Styles
   ========================================== */

/* CSS Variables / Design Tokens */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1220;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text-primary: #e8edf5;
    --text-secondary: #8892a4;
    --text-muted: #5a6478;
    --accent-primary: #00e5ff;
    --accent-secondary: #00bcd4;
    --accent-glow: rgba(0, 229, 255, 0.15);
    --red-primary: #ff1744;
    --red-secondary: #ff5252;
    --red-glow: rgba(255, 23, 68, 0.2);
    --green-primary: #00e676;
    --yellow-primary: #ffea00;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 229, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #00bcd4 50%, #0097a7 100%);
    --gradient-red: linear-gradient(135deg, #ff1744 0%, #ff5252 100%);
    --gradient-bg: linear-gradient(180deg, #0a0e17 0%, #0d1220 50%, #0a0e17 100%);
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#cyberMap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
    z-index: 1;
    animation: scanLine 8s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: -2px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 780px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    padding: 8px 20px;
    margin-bottom: 32px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-primary);
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(0, 229, 255, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Mini Stats */
.hero-stats-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

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

.stat-mini-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-mini-plus {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-secondary);
}

.stat-mini-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-mini-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s ease infinite;
}

@keyframes mouseScroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.section-dark {
    background: rgba(13, 18, 32, 0.7);
    backdrop-filter: blur(10px);
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================
   SERVICES GRID
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tags span {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 100px;
    color: var(--accent-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 50%;
}

.feature-check svg {
    width: 14px;
    height: 14px;
    stroke: var(--green-primary);
}

.about-feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Terminal Window */
.terminal-window {
    background: #0c0c0c;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    min-height: 280px;
}

.terminal-line {
    white-space: nowrap;
    overflow: hidden;
}

.terminal-line .prompt {
    color: var(--accent-primary);
    margin-right: 8px;
}

.terminal-line .cmd {
    color: var(--text-primary);
}

.terminal-line.output {
    color: var(--text-secondary);
    padding-left: 16px;
}

.terminal-line.output.success {
    color: var(--green-primary);
}

.terminal-line.output.warning {
    color: var(--yellow-primary);
}

.terminal-line.output.error {
    color: var(--red-primary);
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================
   STATS
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 2s ease;
}

/* ==========================================
   THREAT FEED
   ========================================== */
.threat-feed {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.threat-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red-primary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--red-primary);
    border-radius: 50%;
    animation: live-pulse 1.5s ease infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 23, 68, 0);
    }
}

.threat-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.threat-count strong {
    color: var(--accent-primary);
    font-family: var(--font-display);
}

.threat-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.threat-list::-webkit-scrollbar {
    width: 4px;
}

.threat-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.threat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: threatSlideIn 0.5s ease;
    font-size: 0.85rem;
}

.threat-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

@keyframes threatSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.threat-severity {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.threat-severity.critical {
    background: rgba(255, 23, 68, 0.15);
    color: var(--red-primary);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.threat-severity.high {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.threat-severity.medium {
    background: rgba(255, 234, 0, 0.1);
    color: var(--yellow-primary);
    border: 1px solid rgba(255, 234, 0, 0.2);
}

.threat-severity.low {
    background: rgba(0, 230, 118, 0.1);
    color: var(--green-primary);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.threat-info {
    flex: 1;
    min-width: 0;
}

.threat-info .threat-type {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.threat-info .threat-detail {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.threat-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.threat-source {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(0, 229, 255, 0.03);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238892a4' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    border-color: var(--border-accent);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-primary);
}

.contact-info-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-security-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.contact-security-badge svg {
    stroke: var(--green-primary);
    flex-shrink: 0;
}

.contact-security-badge h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 2px;
}

.contact-security-badge p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    position: relative;
    z-index: 2;
    background: rgba(13, 18, 32, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent-primary);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

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

/* Reveal on scroll */
.service-card,
.stat-card,
.contact-form-wrapper,
.contact-info-card,
.about-feature {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.stat-card.visible,
.contact-form-wrapper.visible,
.contact-info-card.visible,
.about-feature.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-content .section-title {
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }
}

/* Tablet Portrait / Large Phone */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 16px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh; height: 100dvh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-link {
        font-size: 1.2rem;
        padding: 14px 32px;
        width: 80%;
        text-align: center;
    }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-container { padding: 0 16px; }
    .hero {
        padding: 100px 16px 60px;
        min-height: 100vh; min-height: 100dvh;
    }
    .hero-content { max-width: 100%; }
    .hero-badge { font-size: 0.65rem; padding: 6px 14px; letter-spacing: 1.5px; margin-bottom: 24px; }
    .hero-title { font-size: clamp(1.6rem, 7vw, 2.5rem); margin-bottom: 20px; }
    .hero-description { font-size: 0.9rem; margin-bottom: 32px; padding: 0 8px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; margin-bottom: 40px; }
    .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.9rem; }
    .hero-stats-mini { gap: 16px; }
    .stat-mini-number { font-size: 1.2rem; }
    .stat-mini-label { font-size: 0.65rem; }
    .stat-mini-divider { height: 30px; }
    .scroll-indicator { bottom: 16px; }
    #cyberMap { opacity: 0.6; }
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
    .section-tag { font-size: 0.6rem; letter-spacing: 2px; }
    .section-title { font-size: clamp(1.4rem, 5vw, 2rem); padding: 0 8px; }
    .section-desc { font-size: 0.9rem; padding: 0 8px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px; }
    .service-card:hover { transform: none; }
    .about-grid { gap: 32px; }
    .about-text { text-align: center; }
    .terminal-body { font-size: 0.7rem; overflow-x: auto; min-height: 220px; padding: 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 2rem; }
    .threat-feed-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .threat-item { flex-wrap: wrap; gap: 8px; padding: 10px 16px; font-size: 0.8rem; }
    .threat-source { display: none; }
    .threat-time { font-size: 0.7rem; }
    .contact-form-wrapper { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .form-group input, .form-group select, .form-group textarea { padding: 12px 14px; font-size: 16px; }
    .contact-info-card { padding: 16px; }
    .contact-security-badge { padding: 16px; }
    .footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 0; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

/* Small Phones */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 12px; }
    .hero { padding: 90px 12px 50px; }
    .hero-title { font-size: clamp(1.4rem, 8vw, 2rem); }
    .hero-badge { font-size: 0.6rem; padding: 5px 12px; }
    .hero-description { font-size: 0.85rem; }
    .hero-stats-mini { gap: 12px; }
    .stat-mini-number { font-size: 1rem; }
    .stat-mini-divider { height: 24px; }
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 32px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.8rem; }
    .stats-grid { gap: 12px; }
    .stat-card { padding: 20px 12px; }
    .contact-form-wrapper { padding: 20px 16px; }
    .service-card { padding: 20px; }
    .service-icon { width: 40px; height: 40px; margin-bottom: 14px; }
    .service-icon svg { width: 20px; height: 20px; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.85rem; }
    .about-feature { gap: 12px; }
    .logo-img { width: 32px; height: 32px; }
    .logo-text { font-size: 1rem; letter-spacing: 2px; }
    .threat-item { padding: 8px 12px; font-size: 0.75rem; }
    .threat-severity { font-size: 0.6rem; padding: 2px 8px; }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.3rem; }
    .hero-description { font-size: 0.8rem; }
    .btn { padding: 12px 16px; font-size: 0.85rem; }
    .section-title { font-size: 1.3rem; }
    .hero-stats-mini { flex-wrap: wrap; gap: 16px; }
    .stat-mini-divider { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover { transform: none; box-shadow: none; }
    .stat-card:hover { transform: none; }
    .btn-primary:hover { transform: none; }
}
