/* Custom Properties */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #141414;
    --brand-color: #A82EEE;
    --brand-color-hover: #901ad9;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --border-color: #27272A;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

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

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--brand-color);
}

.align-left {
    text-align: left;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-color);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(168, 46, 238, 0.39);
}

.btn-primary:hover {
    background-color: var(--brand-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 46, 238, 0.5);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo img {
    height: 40px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.mobile-only-btn {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168,46,238,0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--brand-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

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

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

.service-card {
    background: var(--bg-tertiary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-color);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(168, 46, 238, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--brand-color);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Differential */
.differential {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.differential-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.differential-content span {
    background: linear-gradient(90deg, var(--brand-color), #d07af5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team */
.team {
    background-color: var(--bg-secondary);
}

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

.team-image-wrapper {
    position: relative;
}

.team-image {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    width: 100%;
    height: auto;
}

.image-accent {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand-color);
    border-radius: var(--border-radius);
    z-index: 1;
}

.team-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact {
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168,46,238,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header .subtitle {
    color: var(--text-secondary);
    margin-top: -1rem;
    margin-bottom: 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 2px rgba(168, 46, 238, 0.2);
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
}

select:invalid {
    color: var(--text-secondary);
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.status-success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background-color: var(--bg-secondary);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.footer-contact p, .footer-social a {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-social a:hover {
    color: var(--brand-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .team-container {
        grid-template-columns: 1fr;
    }
    
    .team-image-wrapper {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .team-text h2 {
        text-align: center;
    }
    
    .team-text p {
        text-align: center;
    }
    
    .hero {
        padding: 10rem 0 6rem;
    }
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-list a {
        font-size: 1.125rem;
        padding: 0.5rem;
        display: block;
    }

    .mobile-only-btn {
        display: block;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .mobile-only-btn .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand, .footer-contact, .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .contact-card {
        padding: 2rem 1.25rem;
    }

    .hero-title span {
        display: block;
    }

    .differential-content h2 {
        font-size: 1.6rem;
    }
}
