:root {
    --bg-color: #0d0f14;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a4b0;
    --accent-1: #00d2ff;
    --accent-2: #3a7bd5;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --hero-overlay: rgba(13, 15, 20, 0);
    --nav-bg: rgba(13, 15, 20, 0.8);
    --nav-bg-scrolled: rgba(13, 15, 20, 0.95);
    --footer-bg: rgba(0, 0, 0, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-color: #f1f5f9;
    --surface-color: rgba(255, 255, 255, 0.7);
    --surface-hover: rgba(255, 255, 255, 1);
    --surface-border: rgba(0, 0, 0, 0.06);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-1: #0ea5e9;
    --accent-2: #3b82f6;
    --hero-overlay: rgba(241, 245, 249, 0.3);
    --nav-bg: rgba(241, 245, 249, 0.8);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --footer-bg: rgba(226, 232, 240, 0.6);
    --glass-shadow: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.section {
    padding: 100px 0;
}

/* Glassmorphism Classes */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-1);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-lang, .btn-theme {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme {
    padding: 0.5rem;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
}

.btn-lang:hover, .btn-theme:hover {
    background: var(--surface-hover);
    border-color: var(--accent-1);
}

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

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

.mobile-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
}

.mobile-link {
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--surface-border);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, rgba(58, 123, 213, 0.05) 30%, var(--hero-overlay) 70%);
    z-index: -1;
    filter: blur(60px);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--accent-1);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 210, 255, 0.5);
    color: #fff;
}

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

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

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.separator {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    margin: 0 auto;
    border-radius: 2px;
}

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

.about-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.service-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--glass-shadow);
    border-color: var(--accent-1);
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

@media (max-width: 900px) {
    .project-card.featured {
        grid-template-columns: 1fr;
    }
}

.project-image-banner {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border-right: 1px solid var(--surface-border);
}

:root[data-theme="light"] .project-image-banner {
    background: rgba(0, 0, 0, 0.02);
}

.project-logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.project-header {
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), rgba(58, 123, 213, 0.05));
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

:root[data-theme="light"] .project-header {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
}

.project-icon {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
}

.project-emoji {
    font-size: 3.5rem;
}

.project-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

:root[data-theme="light"] .tag {
    background: rgba(14, 165, 233, 0.1);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
}

.read-more {
    color: var(--accent-1);
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card:hover .read-more {
    color: var(--accent-2);
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

.partner-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 180px;
    height: 100px;
    transition: var(--transition);
    border-radius: 12px;
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    box-shadow: 0 10px 25px var(--glass-shadow);
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

/* Fix specific image visibilities */
.padding-bg .partner-img {
    border-radius: 8px;
}

.bg-pad.partner-img {
    border-radius: 6px;
}

.partner-logo-wrapper:hover .partner-img {
    filter: grayscale(0%) opacity(1);
}

.partner-badge {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.partner-badge.secondary {
    opacity: 0.6;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
}

.partner-badge:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
    opacity: 1;
}

/* Fix dark mode logos */
:root[data-theme="light"] .partner-img {
    filter: grayscale(100%) opacity(0.8) brightness(0.4);
}
:root[data-theme="light"] .partner-logo-wrapper:hover .partner-img {
    filter: grayscale(0%) opacity(1) brightness(1);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    padding: 3rem;
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: var(--surface-hover);
    padding: 10px;
    border-radius: 50%;
    display: inline-flex;
}

.contact-form-container {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--surface-hover);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-1);
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--accent-1);
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: var(--accent-2);
}

/* Legal Pages Styling */
.legal-content {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    min-height: 80vh;
}

.legal-card {
    padding: 3rem;
    margin-top: 2rem;
}

.legal-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-card h1, .legal-card h2, .legal-card h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-card h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 60px 0 20px;
    background: var(--footer-bg);
    margin-top: 60px;
    transition: var(--transition);
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2));
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.social-icon:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

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

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

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

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info, .contact-form-container {
        padding: 2rem;
    }
}
