/* Custom properties */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #0f172a;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: var(--transition); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo a { font-size: 1.6rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; display: block; padding: 10px 0; transition: var(--transition); border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--primary); border-bottom: 2px solid var(--primary); }
.hamburger { display: none; cursor: pointer; border: none; background: transparent; font-size: 1.5rem; color: var(--secondary); }

/* Hero Section */
/* Hero Section (Carousel) */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; background: var(--secondary); }
.hero-slider { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.4) 100%); z-index: 1; }
.slide .hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; transform: translateY(30px); opacity: 0; transition: all 0.8s ease-out 0.3s; margin-bottom: 80px; }
.slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; color: #f1f5f9; text-shadow: 0 5px 15px rgba(0,0,0,0.2); font-weight: 300; }
.hero-buttons-container { position: absolute; bottom: 20%; left: 0; width: 100%; z-index: 10; display: flex; justify-content: center; align-items: center; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; width: 55px; height: 55px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; transition: var(--transition); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { left: 40px; }
.slider-btn.next { right: 40px; }
.slider-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--white); transform: scale(1.3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: var(--transition); cursor: pointer; border: none; gap: 10px; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.btn-outline:hover { background: var(--white); color: var(--secondary); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(255,255,255,0.3); }

/* Section Styles */
section { padding: 120px 0; }
.section-title { text-align: center; font-size: 2.8rem; font-weight: 800; margin-bottom: 70px; color: var(--secondary); letter-spacing: -0.5px; }
.section-title span { color: var(--primary); display: inline-block; position: relative; }
.section-title span::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 8px; background: rgba(37,99,235,0.15); z-index: -1; }

/* Services Section */
.service-row { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.service-row:last-child { margin-bottom: 0; }
.service-row.reverse { flex-direction: row-reverse; }
.service-content { flex: 1; opacity: 0; transform: translateX(-30px); transition: 0.8s ease-out; }
.service-row.reverse .service-content { transform: translateX(30px); }
.service-content.in-view { opacity: 1; transform: translateX(0); }
.service-content h3 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 25px; font-weight: 800; letter-spacing: -0.5px; }
.service-content h3 i { color: var(--primary); margin-right: 15px; }
.service-content p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 35px; }
.service-image { flex: 1; position: relative; opacity: 0; transform: translateY(30px); transition: 0.8s ease-out 0.2s; }
.service-image.in-view { opacity: 1; transform: translateY(0); }
.service-image img { width: 100%; border-radius: 24px; box-shadow: 0 30px 60px rgba(15,23,42,0.1); transition: var(--transition); object-fit: cover; aspect-ratio: 4/3; }
.service-image:hover img { transform: translateY(-10px); box-shadow: 0 40px 80px rgba(15,23,42,0.15); }

/* Why Us Section */
.why-us { background: var(--white); position: relative; }
.why-us::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(37,99,235,0.1), transparent); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { padding: 50px 40px; background: var(--bg-color); border-radius: 24px; text-align: center; transition: var(--transition); border: 1px solid rgba(0,0,0,0.02); opacity: 0; transform: translateY(30px); }
.feature-card.in-view { opacity: 1; transform: translateY(0); }
.feature-card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(15,23,42,0.05); background: var(--white); border-color: rgba(37,99,235,0.1); }
.feature-icon { width: 70px; height: 70px; background: rgba(37, 99, 235, 0.08); color: var(--primary); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 25px; transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--primary); color: var(--white); transform: scale(1.1) rotate(5deg); }
.feature-card h4 { font-size: 1.3rem; color: var(--secondary); margin-bottom: 15px; font-weight: 700; }
.feature-card p { color: var(--text-light); font-size: 1rem; }

/* Contact Section Call to Action */
.cta-section { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%); color: var(--white); text-align: center; padding: 100px 0; border-radius: 30px; margin: 100px 20px; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-section p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 40px; }

/* Footer */
footer { background: var(--secondary); color: var(--white); padding: 100px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 70px; }
.footer-col .logo { margin-bottom: 25px; }
.footer-col .logo a { color: var(--white); }
.footer-col h4 { font-size: 1.25rem; margin-bottom: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f8fafc; }
.footer-col p { color: #94a3b8; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #94a3b8; font-size: 1rem; transition: var(--transition); display: inline-block; }
.footer-col ul li a:hover { color: var(--white); transform: translateX(5px); }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: #94a3b8; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--white); font-size: 1.1rem; }
.social-links a:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(37,99,235,0.3); }
.footer-bottom { text-align: center; padding-top: 35px; border-top: 1px solid rgba(255,255,255,0.05); color: #64748b; font-size: 0.95rem; }

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

/* Responsive */
@media (max-width: 991px) {
  .hero h1 { font-size: 3.5rem; }
  .service-row, .service-row.reverse { flex-direction: column; gap: 50px; }
  .service-row { margin-bottom: 100px; }
  .service-content h3 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
  header { height: 70px; }
  nav { height: 70px; }
  .hamburger { display: block; }
  .nav-links { position: absolute; top: 70px; left: 0; width: 100%; max-height: 0; background: var(--white); flex-direction: column; align-items: center; padding: 0; box-shadow: 0 20px 30px rgba(0,0,0,0.1); transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; opacity: 0; visibility: hidden; }
  .nav-links.active { max-height: 400px; padding: 25px 0; opacity: 1; visibility: visible; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2.2rem; margin-bottom: 50px; }
  .hero-buttons-container { bottom: 15%; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center; gap: 8px; padding: 0 10px; align-items: center; left: 0; right: 0; width: 100%; }
  .hero-buttons-container .btn, .service-image > div .btn { flex: 1; padding: 12px 5px !important; font-size: 0.85rem !important; margin: 0 !important; width: 100% !important; max-width: none !important; }
  .btn { display: inline-flex !important; justify-content: center !important; margin: 0 auto !important; max-width: none !important; width: auto !important; }
  .btn-outline { margin-left: 0 !important; margin-top: 0 !important; }
  .service-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .service-content h3 { justify-content: center; display: flex; text-align: center; }
  .service-image > div { flex-direction: row !important; align-items: stretch !important; flex-wrap: nowrap !important; gap: 8px !important; justify-content: center !important; }
  .cta-section { margin: 50px 15px; padding: 60px 20px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .page-header h1 { font-size: 2.5rem; }
}

/* Subpage Specific Styles */
.page-header { height: auto; min-height: 400px; padding: 140px 0 80px; display: flex; align-items: center; justify-content: center; position: relative; color: var(--white); text-align: center; }
.page-header::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.6) 100%); z-index: 1; }
.page-header-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; animation: fadeInUp 0.8s ease-out; }
.page-header h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; }
.page-header p { font-size: 1.1rem; color: #cbd5e1; }

.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; margin-top: 50px; }
.contact-info { background: var(--bg-color); padding: 40px; border-radius: 20px; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 30px; color: var(--secondary); }
.info-item { display: flex; gap: 20px; margin-bottom: 25px; }
.info-item .icon { width: 45px; height: 45px; background: rgba(37,99,235,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem; flex-shrink: 0; }
.contact-form { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-family: inherit; transition: var(--transition); background: var(--bg-color); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: var(--white); }
.form-group textarea { height: 120px; resize: vertical; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; overflow: hidden; }
.faq-question { padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 1.1rem; color: var(--secondary); transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-question.active i { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 30px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-light); }
.faq-item.active .faq-answer { padding-bottom: 25px; }

@media (max-width: 768px) {
  .contact-container { grid-template-columns: 1fr; }
}

/* --- Process Section (Timeline) --- */
.process-section {
    padding: 80px 0;
}

.process-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.process-center {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: #e2e8f0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 6px dashed #cbd5e1;
    z-index: 2;
}

.process-center i {
    font-size: 3.5rem;
    color: #ffd166;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
}

.process-card {
    padding: 35px 30px;
    border-radius: 24px;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-card h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.process-card p {
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-1 { --card-color: #de5b6f; --tab-color: #cd4c5f; background-color: var(--card-color); }
.card-2 { --card-color: #019cde; --tab-color: #0089c2; background-color: var(--card-color); }
.card-3 { --card-color: #d89f07; --tab-color: #c48f00; background-color: var(--card-color); }
.card-4 { --card-color: #2ab6b3; --tab-color: #21a3a0; background-color: var(--card-color); }

.process-tab {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: white;
    z-index: 10;
    background-color: var(--tab-color);
}

@media (min-width: 769px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 1fr;
        gap: 140px 120px;
        max-width: 1100px;
    }
    .process-center {
        display: flex;
        width: 160px;
        height: 160px;
    }
    .process-center i {
        font-size: 4.5rem;
    }
    .process-card {
        padding: 50px 45px;
    }
    .process-card h3 {
        font-size: 1.5rem;
    }
    .process-card p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    .process-card.card-1 { grid-column: 1; grid-row: 1; }
    .process-card.card-2 { grid-column: 1; grid-row: 2; }
    .process-card.card-3 { grid-column: 2; grid-row: 1; }
    .process-card.card-4 { grid-column: 2; grid-row: 2; }

    .process-card h3 .process-number-mobile {
        display: none;
    }
    
    .process-tab.right-tab {
        right: -30px;
        width: 60px;
        clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
        padding-left: 5px;
    }
    .process-tab.left-tab {
        left: -30px;
        width: 60px;
        clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
        padding-right: 5px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        gap: 60px;
    }
    .process-tab {
        display: none;
    }
    .process-number-mobile {
        display: inline-block;
        background: rgba(255,255,255,0.25);
        padding: 4px 10px;
        border-radius: 6px;
        margin-right: 5px;
        font-size: 1rem;
    }
    .process-card {
        overflow: visible;
    }
    .process-card:not(:last-child)::after {
        content: '\f063';
        font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        bottom: -45px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.8rem;
        color: var(--primary);
        opacity: 0.6;
    }
}
