/* ==========================================
   VARIABLES & RESET
   ========================================== */

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

:root {
    --dark-bg: #1a2332;
    --darker-bg: #0f1722;
    --accent-teal: #4fc3c3;
    --accent-gold: #d4a574;
    --text-light: #e8edf2;
    --text-muted: #8b9cb3;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--darker-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

body, html {
    max-width: 100%;
    overflow-x: hidden;
}

a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(79, 195, 195, 0.2);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 195, 195, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    padding: 0.5rem;
}

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

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid rgba(79, 195, 195, 0.2);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    border-color: var(--accent-teal);
    background: rgba(79, 195, 195, 0.1);
    transform: translateY(-2px);
}

.lang-btn.active {
    border-color: var(--accent-teal);
    background: rgba(79, 195, 195, 0.15);
    box-shadow: 0 0 15px rgba(79, 195, 195, 0.3);
}

/* ==========================================
   HERO + BENEFITS COMBINED
   ========================================== */

.hero-benefits-combined {
    min-height: 100vh;
    background: var(--darker-bg);
    padding: 100px 5% 3rem;
    position: relative;
}

.hero-benefits-combined::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 195, 195, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -150px;
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

.hero-benefits-combined::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
    animation: pulse 6s ease-in-out infinite reverse;
    z-index: 0;
}

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

.hero-content {
    text-align: center;
    padding: 2rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #3aa3a3 100%);
    color: var(--darker-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(79, 195, 195, 0.3);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(79, 195, 195, 0.5);
}

.benefits-inline {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: rgba(79, 195, 195, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(79, 195, 195, 0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 195, 195, 0.4);
    background: rgba(79, 195, 195, 0.08);
    box-shadow: 0 8px 25px rgba(79, 195, 195, 0.15);
}

.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.benefit-card h3 {
    font-size: 1.05rem;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.88rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    padding: 5rem 5% 6rem;
    background: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--darker-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 195, 195, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 195, 195, 0.3);
    box-shadow: 0 20px 60px rgba(79, 195, 195, 0.2);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--accent-teal);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* ==========================================
   TECHNOLOGIES SECTION
   ========================================== */

.technologies {
    padding: 7rem 5%;
    background: var(--dark-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.tech-card {
    background: var(--darker-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 195, 195, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
}

.tech-featured {
    border: 2px solid var(--accent-teal);
    background: rgba(79, 195, 195, 0.05);
}

.tech-card h4 {
    color: var(--accent-gold);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 1rem;
}

.tech-featured h4 {
    color: var(--accent-teal);
}

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

/* ==========================================
   PROCESS SECTION
   ========================================== */

.process {
    padding: 7rem 5%;
    background: var(--darker-bg);
}

.process-timeline {
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-gold));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--darker-bg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.process-content {
    width: 45%;
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 195, 195, 0.1);
}

.process-step:nth-child(odd) .process-content {
    margin-left: auto;
    text-align: left;
}

.process-step:nth-child(even) .process-content {
    margin-right: auto;
    text-align: right;
}

.process-content h4 {
    color: var(--accent-teal);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: 0.8rem;
}

.process-content p {
    color: var(--text-muted);
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */

.portfolio {
    padding: 5rem 5%;
    background: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.portfolio-card {
    background: var(--darker-bg);
    padding: 2.0rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 195, 195, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    background: rgba(212, 165, 116, 0.05);
}

.portfolio-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.portfolio-card h4 {
    color: var(--text-light);
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: 0.8rem;
}

.portfolio-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-gold) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--darker-bg);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(15, 23, 34, 0.8);
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    background: var(--darker-bg);
    color: var(--accent-teal);
}

.cta-section .cta-button:hover {
    background: var(--dark-bg);
}

/* ==========================================
   CONTACT SECTION & FORM STATUS
   ========================================== */

.contact {
    padding: 7rem 5%;
    background: var(--darker-bg);
}

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

.contact-form {
    background: var(--dark-bg);
    padding: 3.5rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 195, 195, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 1px solid rgba(79, 195, 195, 0.2);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: rgba(79, 195, 195, 0.05);
}

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

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #3aa3a3 100%);
    color: var(--darker-bg);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 195, 195, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(79, 195, 195, 0.1);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
}

.form-status.error {
    display: block;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ff6464;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(79, 195, 195, 0.1);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section ul {
    color: var(--text-muted);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(79, 195, 195, 0.1);
    color: var(--text-muted);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .nav-links {
        display: none;
    }

    .language-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-benefits-combined {
        padding: 90px 1rem 2rem;
    }

    .hero-benefits-combined::before,
    .hero-benefits-combined::after {
        width: 300px;
        height: 300px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .services,
    .technologies,
    .process,
    .portfolio,
    .cta-section,
    .contact {
        padding: 4rem 5%;
    }

    .service-card {
        padding: 2rem;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        left: 30px;
        transform: translateX(0);
    }

    .process-content {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        text-align: left !important;
    }

    .process-step {
        flex-direction: row !important;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .service-card,
    .benefit-card,
    .tech-card,
    .portfolio-card {
        padding: 1.5rem;
    }

    .process-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 1rem;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-benefits-combined {
        min-height: auto;
        padding: 100px 1rem 2rem;
    }
}