:root {
    --primary: #2489b3;
    --accent: #FFFFFF;
    --secondary: #212121;
    --gray: #6B7280;
    --light-bg: #F9FAFB;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--secondary);
    overflow-x: hidden;
    background: var(--accent);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(36, 137, 179, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo-nav {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-nav:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

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

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

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

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

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--light-bg);
    border-radius: 20px;
    padding: 0.3rem;
}

.lang-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(36, 137, 179, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-logo {
    max-width: 400px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero h1 span {
    color: var(--primary);
    display: block;
    font-weight: 300;
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(36, 137, 179, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(36, 137, 179, 0.4);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-window {
    background: var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot:nth-child(1) { background: #FF5F56; }
.code-dot:nth-child(2) { background: #FFBD2E; }
.code-dot:nth-child(3) { background: #27C93F; }

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    color: #ABB2BF;
    margin-bottom: 0.5rem;
}

.code-keyword { color: #C678DD; }
.code-function { color: #61AFEF; }
.code-string { color: #98C379; }
.code-comment { color: #5C6370; font-style: italic; }

/* Services Section */
.services {
    padding: 8rem 2rem;
    background: var(--accent);
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
}

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

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36, 137, 179, 0.15);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #1a6d8f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: var(--light-bg);
}

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

.about-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

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

.stat-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: var(--accent);
}

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

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(36, 137, 179, 0.3);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--secondary);
}

.contact-details p {
    color: var(--gray);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 50px;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
    position: relative;
}

.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #E5E7EB;
    transition: color 0.3s ease;
}

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

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

.mobile-lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--light-bg);
    border-radius: 20px;
    padding: 0.3rem;
    margin-top: 1rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-popup h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.cookie-popup p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.cookie-accept {
    background: var(--primary);
    color: white;
    flex: 1;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 137, 179, 0.3);
}

.cookie-decline {
    background: var(--light-bg);
    color: var(--secondary);
    flex: 1;
}

.cookie-decline:hover {
    background: #E5E7EB;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.modal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.modal-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.modal-content li {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Success message */
.success-message {
    display: none;
    background: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Responsive */
@media (min-width: 969px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 968px) {
    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero h1 span {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-popup {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
}
