:root {
    --primary-color: #38bdf8;
    --primary-dark: #0ea5e9;
    --primary-glow: rgba(56, 189, 248, 0.15);
    --text-color: #f8fafc;
    --text-light: #94a3b8;
    --bg-color: #020617;
    --bg-alt: #0f172a;
    --border-color: rgba(148, 163, 184, 0.1);
    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08), transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px -5px rgba(255, 255, 255, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
    padding: 8rem 0;
    text-align: center;
    background: transparent;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Services */
.services {
    background-color: var(--bg-alt);
}

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

.card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(56, 189, 248, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

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

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.price {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
    background: rgba(56, 189, 248, 0.1);
}

.link-external {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

/* Contact */
.contact {
    background-color: var(--bg-alt);
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-alt);
        padding: 6rem 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 2rem;
    }
    
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
