/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Define accent color variable */
:root {
    --accent-blue: #3366FF;
    --primary-text: #ffffff;
    --secondary-text: #f0f0f0;
    --background-black: #000000;
    --background-dark: #050505;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-black);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(51, 102, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(51, 102, 255, 0.08) 0%, transparent 40%),
        linear-gradient(45deg, transparent 30%, rgba(51, 102, 255, 0.03) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(51, 102, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(51, 102, 255, 0.1) 50%, transparent 100%);
    background-size: 200px 200px, 200px 200px;
    background-position: 0 0, 100px 100px;
    pointer-events: none;
    opacity: 0.3;
    animation: techPattern 20s linear infinite;
}

@keyframes techPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(200px, 200px); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.logo-container {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.1s forwards;
}

.logo {
    max-width: 120px;
    height: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--primary-text);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.hero-subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: 2px solid var(--accent-blue);
    border-radius: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--primary-text);
    transform: translateY(-2px);
}

.cta-button:hover::before {
    left: 0;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--background-dark);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(51, 102, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    color: var(--primary-text);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.about-icon svg {
    transition: all 0.3s ease;
}

.about-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(51, 102, 255, 0.5));
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--secondary-text);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: var(--background-black);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 70% 20%, rgba(51, 102, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(51, 102, 255, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, transparent 30%, rgba(51, 102, 255, 0.03) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(51, 102, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(51, 102, 255, 0.1) 50%, transparent 100%);
    background-size: 200px 200px, 200px 200px;
    background-position: 0 0, 100px 100px;
    pointer-events: none;
    opacity: 0.3;
    animation: techPattern 20s linear infinite reverse;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
    position: relative;
}

.contact-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--primary-text);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.contact-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.contact-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-blue);
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover {
    background: #1A4FCC;
    transform: translateY(-2px);
}

.contact-button:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--background-dark);
    border-top: 1px solid var(--accent-blue);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    color: #888888;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .logo-container {
        margin-bottom: 2.5rem;
    }
    
    .about, .contact {
        padding: 6rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-icon {
        order: -1;
    }
    
    .about-icon:last-child {
        order: 1;
    }
    
    .cta-button, .contact-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .hero-headline {
        margin-bottom: 1.5rem;
    }
    
    .hero-subheadline {
        margin-bottom: 2.5rem;
    }
    
    .about-headline, .contact-headline {
        margin-bottom: 2rem;
    }
    
    .contact-text {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .logo {
        max-width: 80px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .about, .contact {
        padding: 4rem 0;
    }
    
    .about-grid {
        gap: 1.5rem;
    }
    
    .about-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .cta-button, .contact-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus states for accessibility */
.cta-button:focus,
.contact-button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-headline {
        background: none;
        -webkit-text-fill-color: var(--primary-text);
        color: var(--primary-text);
    }
    
    .cta-button {
        border-color: var(--accent-blue);
    }
}
