:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-accent: #111114;
    --primary: #00f2ff; /* Electric Cyan */
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #9d00ff; /* Purple Glow */
    --text-main: #ffffff;
    --text-muted: #a0a0a8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    
    /* Spacing & Borders */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Background Effects */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: transform 0.1s ease-out;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

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

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

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-glow {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 8rem;
    position: relative;
    background: linear-gradient(rgba(10, 10, 12, 0.85), rgba(10, 10, 12, 0.85)), url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Code Window Component */
.code-window {
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-content {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.keyword { color: #c678dd; }
.variable { color: #e06c75; }
.property { color: #61afef; }
.string { color: #98c379; }

/* Section Styles */
.section {
    padding: 8rem 0;
}

.section.alt-bg {
    background: var(--bg-accent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 2.5rem;
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    border-color: var(--primary-glow);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 3rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .code-window {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-left h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.modal-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Typing Animation Cursor */
.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--text-main);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

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

@media (max-width: 992px) {
    .modal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
    .modal-left h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        max-height: 95vh;
    }
    .modal-left h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .modal-close {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.8rem;
    }
    .code-content {
        padding: 1.2rem;
        font-size: 0.85rem;
    }
    .form-control {
        padding: 0.8rem;
    }
    .form-group {
        margin-bottom: 1rem;
    }
}
