/* --- LOCAL FONT SETUP --- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #3b82f6;
    --secondary-dark: #2563eb;
    --accent: #10b981;
    --accent-light: #34d399;
    --gold: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-left { text-align: left; }
.why-intro { margin-bottom: 20px; color: var(--text-light); font-size: 1.05rem; }
.btn-full-width { width: 100%; }
.honeypot { display: none !important; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
    transition: var(--transition); cursor: pointer; border: none;
    font-size: 1rem; font-family: inherit; white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    border-radius: 50%; background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}
.btn:hover::before { width: 300px; height: 300px; }
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }
.btn-outline { background-color: transparent; border: 2px solid var(--border); color: var(--primary); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); background-color: rgba(59, 130, 246, 0.05); }

.section-title {
    text-align: center; font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary); margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.02em;
}
.section-subtitle {
    text-align: center; color: var(--text-light); max-width: 650px;
    margin: 0 auto 3.5rem auto; font-size: 1.1rem; line-height: 1.7;
}
section { padding: 100px 0; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- NAVIGATION --- */
header {
    position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5); transition: var(--transition);
}
header.scrolled { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.98); }
nav { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--secondary); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-main); font-size: 0.95rem; position: relative; }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--secondary); transition: var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn):hover { color: var(--secondary); }

.lang-switch {
    display: flex; background: #f1f5f9; border-radius: 24px; padding: 4px;
    cursor: pointer; border: 1px solid var(--border); transition: var(--transition);
}
.lang-switch:hover { border-color: var(--secondary); }
.lang-option {
    padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    color: var(--text-light); transition: var(--transition); user-select: none;
}
.lang-option.active { background: white; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }

.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: var(--primary); width: 40px; height: 40px; border-radius: 50%; transition: var(--transition);
}
.mobile-menu-btn:hover { background: #f1f5f9; }

/* --- HERO SECTION --- */
.hero {
    padding-top: 160px; padding-bottom: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f0f9ff 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%; animation: float 6s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%); border-radius: 50%;
}
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1);
    color: #059669; padding: 8px 18px; border-radius: 24px; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(16, 185, 129, 0.2); animation: fadeInUp 0.6s ease forwards;
}
.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.1; color: var(--primary);
    margin-bottom: 24px; font-weight: 900; letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s forwards; opacity: 0;
}
.hero-text p {
    font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; max-width: 540px;
    line-height: 1.7; animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s forwards; opacity: 0; }
.hero-image { position: relative; animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }
.hero-image img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-3deg); transition: var(--transition-slow);
}
.hero-image:hover img { transform: perspective(1000px) rotateY(0deg) scale(1.02); }
.hero-trust {
    display: flex; gap: 30px; margin-top: 40px; padding-top: 30px;
    border-top: 1px solid var(--border); animation: fadeInUp 0.6s ease 0.4s forwards; opacity: 0;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.trust-item .icon { color: var(--accent); font-size: 1.2rem; font-weight: 900; }

/* --- STATS SECTION --- */
.stats { background: var(--primary); padding: 60px 0; position: relative; overflow: hidden; }
.stats::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; z-index: 1; }
.stat-item { text-align: center; color: white; }
.stat-number { font-size: 3rem; font-weight: 900; color: var(--accent-light); margin-bottom: 8px; line-height: 1; }
.stat-label { font-size: 0.95rem; color: #cbd5e1; font-weight: 500; }

/* --- SERVICES SECTION --- */
.services { background-color: var(--bg-white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-white); padding: 36px 28px; border-radius: var(--radius-lg);
    transition: var(--transition); border: 1px solid #f1f5f9; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px; background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 24px; transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--primary); font-weight: 700; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* --- HOW IT WORKS SECTION --- */
.how-it-works { background: var(--bg-light); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps-grid::before {
    content: ''; position: absolute; top: 40px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent)); z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 80px; height: 80px; background: white; border: 3px solid var(--secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 900; color: var(--secondary); margin: 0 auto 20px;
    box-shadow: var(--shadow-md); transition: var(--transition);
}
.step-item:hover .step-number { background: var(--secondary); color: white; transform: scale(1.1); }
.step-item h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); font-weight: 700; }
.step-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; }

/* --- WHY CHOOSE US --- */
.why-us { background-color: var(--bg-white); }
.features-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 32px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.check-icon {
    flex-shrink: 0; width: 36px; height: 36px; background: rgba(16, 185, 129, 0.1);
    color: var(--accent); border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 900; font-size: 1.1rem; margin-top: 2px;
}
.feature-text h4 { font-size: 1.15rem; margin-bottom: 6px; color: var(--primary); font-weight: 700; }
.feature-text p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }
.why-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }

/* --- PORTFOLIO --- */
.portfolio { background-color: var(--bg-light); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-item {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    aspect-ratio: 4/3; box-shadow: var(--shadow-lg); cursor: pointer; background: white;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
    padding: 30px 24px 24px; color: white; transform: translateY(20px); opacity: 0; transition: var(--transition);
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-overlay h4 { font-size: 1.2rem; margin-bottom: 4px; font-weight: 700; }
.portfolio-overlay p { font-size: 0.9rem; color: #cbd5e1; }

/* --- TESTIMONIALS --- */
.testimonials { background-color: var(--bg-white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
    background: var(--bg-white); padding: 36px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9; transition: var(--transition); position: relative;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 20px; right: 30px; font-size: 4rem;
    color: var(--secondary); opacity: 0.1; font-family: Georgia, serif; line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: var(--gold); margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 2px; }
.quote { font-style: italic; color: var(--text-main); margin-bottom: 24px; line-height: 1.7; font-size: 0.95rem; }
.client-info { display: flex; align-items: center; gap: 16px; }
.client-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #f1f5f9; }
.client-details h5 { font-size: 1rem; color: var(--primary); font-weight: 700; }
.client-details span { font-size: 0.85rem; color: var(--text-light); }

/* --- GUARANTEE SECTION --- */
.guarantee {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0; text-align: center; color: white;
}
.guarantee-content { max-width: 700px; margin: 0 auto; }
.guarantee-icon { font-size: 3rem; margin-bottom: 20px; }
.guarantee h3 { font-size: 1.8rem; margin-bottom: 16px; font-weight: 800; }
.guarantee p { color: #cbd5e1; font-size: 1.1rem; line-height: 1.7; }

/* --- CONTACT SECTION --- */
.contact { background-color: var(--bg-light); }
.contact-container {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; background: var(--bg-white);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid #f1f5f9;
}
.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; padding: 60px 40px; display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
}
.contact-info::before {
    content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 16px; font-weight: 700; }
.contact-info > p { color: #cbd5e1; margin-bottom: 40px; line-height: 1.6; }
.info-item { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.info-icon {
    width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.info-item strong { display: block; font-size: 0.85rem; color: #94a3b8; font-weight: 500; margin-bottom: 2px; }
.info-item a, .info-item span { color: white; font-weight: 600; font-size: 1rem; }
.info-item a:hover { color: var(--accent-light); }

.contact-form-wrapper { padding: 60px 50px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 14px 18px; border: 2px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: 1rem; transition: var(--transition); background: #f8fafc;
}
.form-control:focus { outline: none; border-color: var(--secondary); background: white; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }
.form-status.error { display: block; background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }

/* --- FOOTER --- */
footer { background-color: var(--primary); color: white; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 24px; color: white; font-weight: 700; }
.footer-col p { color: #94a3b8; font-size: 0.95rem; line-height: 1.7; max-width: 300px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; font-size: 0.95rem; }
.footer-col ul li a:hover { color: white; padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--primary-light); padding-top: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--secondary); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow-lg);
    z-index: 999; border: none; font-size: 1.2rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary-dark); transform: translateY(-3px); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-image { order: -1; max-width: 600px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .nav-links {
        position: fixed; top: 75px; left: 0; width: 100%; background: white;
        flex-direction: column; padding: 30px; box-shadow: var(--shadow-lg);
        transform: translateY(-150%); transition: var(--transition); z-index: 999;
        gap: 20px; border-top: 1px solid var(--border);
    }
    .nav-links.active { transform: translateY(0); }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: -1; max-width: 90%; margin: 0 auto; }
    .hero-image img { transform: none; }
    .hero-trust { justify-content: center; flex-wrap: wrap; gap: 20px; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-info { padding: 40px 30px; }
    .contact-form-wrapper { padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-col p { margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .nav-right { gap: 12px; }
    .lang-option { padding: 4px 10px; font-size: 0.75rem; }
    .stat-number { font-size: 2.5rem; }
}