:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --accent-primary: #00ff88;
    --accent-secondary: #4d4dff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --header-height: 80px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    text-decoration: none;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

main {
    padding-top: var(--header-height);
}

.hero {
    min-height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.8) 100%),
        url('img/infinite-monkeys.png');
    background-size: 100% 100%, 75%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}

.geometric-pattern {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0.95;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotate 20s linear infinite;
    filter: blur(30px);
    z-index: 2;
}

.geometric-pattern::after {
    content: '';
    position: absolute;
    inset: 20px;
    background: inherit;
    clip-path: inherit;
    animation: rotate 20s linear infinite reverse;
    opacity: 0.95;
}

.about {
    padding: 10% 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.lead {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.services {
    display: grid;
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.service-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
}

.newsletter {
    padding: 10% 0;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin: 2rem auto;
}

input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

button {
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .geometric-pattern {
        width: 300px;
        height: 300px;
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.1;
    }

    .hero-visual {
        width: 100%;
    }
}
