:root {
    --color-background: #0a0a0a;
    --color-text: #f9f9f9;
    --color-primary: #6e00ff;
    --color-secondary: #00a3ff;
    --color-accent: #ff00ff;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text);
}

.btn-secondary {
    border: 2px solid var(--color-secondary);
    color: var(--color-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.video-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 177.78vh;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85));
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}

.company-text {
    white-space: nowrap;
}

.dynamic-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    padding: 0 0.5rem;
    font-size: 1.2em;
    text-shadow: 0 0 20px rgba(110, 0, 255, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background-color: rgba(110, 0, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    transform: scale(1.05);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 1rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--color-secondary);
    color: var(--color-text);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(110, 0, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    background-color: rgba(110, 0, 255, 0.02);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Partners Section */
.partners {
    text-align: center;
}

.partners h3 {
    margin-bottom: 2rem;
    color: var(--color-text);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partners-grid img {
    max-width: 150px;
    filter: grayscale(1) brightness(1.5);
    transition: filter 0.3s ease;
}

.partners-grid img:hover {
    filter: grayscale(0) brightness(1);
}

/* CTA Secondary */
.cta-secondary {
    padding: 6rem 2rem;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/pattern.svg') center/cover;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.cta-content p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background-color: rgba(0, 0, 0, 0.95);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-secondary);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selected img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.language-selected i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-selected i {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
    list-style: none;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-options li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-options li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-options img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.flag {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    transform: scale(1.2);
}

.language-selected:hover .flag,
.language-options li:hover .flag {
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

.language-options li {
    padding: 0.7rem 1rem;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 0;
        gap: 0;
    }

    .nav-center {
        display: none;
        width: 100%;
        order: 3;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-center.active {
        display: block;
        animation: slideIn 0.3s ease;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 1.5rem;
    }

    .logo img {
        height: 28px;
    }

    .nav-right {
        gap: 0.75rem;
        align-items: center;
    }

    .nav-right .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        padding: 0;
        margin-left: 0.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 24px;
        height: 2px;
        background: var(--color-text);
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .language-dropdown {
        position: relative;
    }

    .language-selected {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .language-options {
        right: 0;
        min-width: 100px;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 1px;
        gap: 0.3rem;
    }

    .dynamic-text {
        font-size: 1.4em;
        padding: 0.3rem;
        margin: 0.2rem 0;
    }

    .company-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .dynamic-text {
        font-size: 1.6em;
    }
}

.nav-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (min-width: 769px) {
    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-wrapper {
        flex: 1;
        justify-content: center;
    }

    .nav-mobile {
        display: flex;
    }

    .nav-mobile-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: none;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDownOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

.dynamic-text.changing {
    animation: slideDownOut 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.dynamic-text.entering {
    animation: slideUpIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
} 