:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #ff006e;
    --accent-color: #7c3aed;
    
    --bg-dark: #0a0e27;
    --bg-secondary: #141829;
    --bg-tertiary: #1f2442;
    
    --text-primary: #f0f4f8;
    --text-secondary: #a8b2cc;
    --text-muted: #6b7591;
    
    --border-color: #2d3748;
    --border-light: #3a4559;
    
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0099cc);
    --gradient-accent: linear-gradient(135deg, #7c3aed, #ff006e);
    --gradient-text: linear-gradient(135deg, #00d4ff, #7c3aed);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn i {
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo a:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.cta {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-weight: 600;
}

.nav-link.cta::after {
    display: none;
}

.nav-link.cta:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 0.35rem;
}

.menu-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.badge:nth-child(1) { animation-delay: 0.2s; }
.badge:nth-child(2) { animation-delay: 0.3s; }
.badge:nth-child(3) { animation-delay: 0.4s; }
.badge:nth-child(4) { animation-delay: 0.5s; }

/* Terminal Box */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-box {
    width: 100%;
    max-width: 400px;
    background: rgba(20, 24, 41, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-close,
.terminal-minimize,
.terminal-maximize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.terminal-close {
    background: #ff5f56;
}

.terminal-minimize {
    background: #ffbd2e;
}

.terminal-maximize {
    background: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--primary-color);
}

.terminal-line {
    animation: typewriter 0.3s steps(40, end) forwards;
    opacity: 0;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 0.7s; }
.terminal-line:nth-child(3) { animation-delay: 0.9s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.3s; }
.terminal-line:nth-child(6) { animation-delay: 1.5s; }
.terminal-line:nth-child(7) { animation-delay: 1.7s; }

@keyframes typewriter {
    to { opacity: 1; }
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
}

/* Featured Section */
.featured {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.expertise-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.expertise-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    background: var(--bg-dark);
    padding: 6rem 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    z-index: 1;
    position: relative;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Quick Links */
.quick-links {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 0 0 100% 0;
    transition: var(--transition);
}

.link-card:hover::before {
    width: 200px;
    height: 200px;
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.link-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    z-index: 1;
}

.link-card h3 {
    color: var(--text-primary);
    z-index: 1;
}

.link-card p {
    margin: 0;
    z-index: 1;
}

.arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    align-self: flex-start;
    z-index: 1;
}

.link-card:hover .arrow {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-accent);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(10, 14, 39, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary.btn-large {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.btn-primary.btn-large:hover {
    box-shadow: 0 0 30px rgba(10, 14, 39, 0.5);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.heart {
    color: var(--secondary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .terminal-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badges {
        flex-wrap: wrap;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .terminal-body {
        font-size: 0.7rem;
        padding: 1rem;
    }
}