@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --primary: #00ff41;
    --primary-dim: #00cc33;
    --primary-dark: #009922;
    --accent: #ff0040;
    --accent-secondary: #00d4ff;
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-elevated: #111111;
    --text-dim: #00aa33;
    --border: rgba(0, 255, 65, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Fira Code', monospace;
    line-height: 1.6;
    color: var(--primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* Animated background */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.02) 0%, transparent 50%);
    z-index: -1;
}

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

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        var(--bg-dark);
}

/* Animated grid */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.cta-button:hover {
    color: #000;
    border-color: var(--primary);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Section styling */
section {
    padding: 100px 0;
}

section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 3px;
    font-weight: 600;
}

section h2 span {
    color: var(--primary);
}

/* About Section */
.about {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #555;
    font-size: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent-secondary));
}

.stat-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
}

/* Services Section */
.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-card);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary);
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 600;
}

.service-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Team Section */
.team {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.team-intro {
    text-align: center;
    color: #555;
    margin-bottom: 4rem;
    font-size: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--bg-dark);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
    border: 2px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}

.team-card:hover .avatar {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.team-card h3 {
    color: #fff;
    margin-bottom: 0.4rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.role {
    color: var(--accent);
    font-size: 0.65rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Fira Code', monospace;
}

.email {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: rgba(0, 255, 65, 0.02);
    transition: all 0.3s ease;
    display: inline-block;
}

.email:hover {
    color: var(--primary);
    border-color: var(--primary-dark);
    background: rgba(0, 255, 65, 0.05);
}

/* Certifications Section */
.certifications {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.cert-intro {
    text-align: center;
    color: #555;
    margin-bottom: 4rem;
    font-size: 1rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    padding: 28px 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

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

.cert-icon {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 12px 16px;
    border: 1px solid var(--primary-dark);
    display: inline-block;
    letter-spacing: 2px;
}

.cert-card h3 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: #555;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 4rem;
}

.contact-item {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-dark);
}

.contact-item h3 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.contact-item p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-family: 'Fira Code', monospace;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: #444;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
}

.tagline {
    margin-top: 0.8rem;
    color: #333;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Selection */
::selection {
    background: var(--primary);
    color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Scroll reveal animations */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Matrix canvas */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Header scrolled state */
header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

/* Logo glitch effect */
.logo.glitch {
    animation: glitchEffect 0.3s ease;
}

@keyframes glitchEffect {
    0%, 100% { transform: translate(0); filter: none; }
    20% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
    40% { transform: translate(2px, -1px); filter: hue-rotate(-90deg); }
    60% { transform: translate(-1px, -1px); filter: hue-rotate(180deg); }
    80% { transform: translate(1px, 1px); filter: hue-rotate(-180deg); }
}

/* Cursor trail */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

/* Status popup */
.status-popup {
    position: fixed;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary-dark);
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.status-popup.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Title glitch */
.title-glitch {
    animation: titleGlitch 0.2s ease;
}

@keyframes titleGlitch {
    0%, 100% { text-shadow: 0 0 10px var(--primary); }
    25% { text-shadow: -2px 0 var(--accent), 2px 0 var(--accent-secondary); }
    50% { text-shadow: 2px 0 var(--accent), -2px 0 var(--accent-secondary); }
    75% { text-shadow: -1px 0 var(--accent-secondary), 1px 0 var(--accent); }
}

/* Pulse highlight for team cards */
.pulse-highlight {
    animation: pulseGlow 1s ease;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), inset 0 0 10px rgba(0, 255, 65, 0.05); }
}

/* Hide cursor trail on mobile */
@media (max-width: 768px) {
    .cursor-dot {
        display: none;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .team-card,
    .service-card,
    .stat-item,
    .contact-item {
        animation: fadeInUp 0.6s ease backwards;
    }

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