/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f1729;
    --dark-lighter: #1e293b;
    --accent: #3b82f6;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
section {
    padding: 5rem 0;
}
.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-light {
    background-color: var(--white);
    color: var(--primary);
}
.btn-light:hover {
    background-color: var(--bg-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}
.logo-brand { color: var(--primary); }
.logo-up { color: var(--primary); }
.logo-xy { color: var(--accent); font-weight: 500; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Sections */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%);
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: var(--hero-img, url('/img/hero.jpg'));
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}
.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Page Hero */
.page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    text-align: center;
    color: var(--white);
}
.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Stats */
.stats-section {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.stat-item p {
    font-weight: 500;
    opacity: 0.9;
}

/* Alternating Sections */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-section.reverse .split-img-wrapper {
    order: 2;
}
.split-section.reverse .split-content {
    order: 1;
}
.split-img-wrapper img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    min-height: 400px;
}
.split-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.split-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}
.service-list {
    list-style: none;
    margin-bottom: 2rem;
}
.service-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* How We Work */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 15px;
    right: -10px;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 1rem;
}
.timeline-content h3 { color: var(--primary); margin-bottom: 0.5rem; }

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Portfolio Cards */
.portfolio-card {
    border-radius: 1rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.portfolio-card:hover {
    transform: translateY(-5px);
}
.portfolio-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}
.portfolio-content {
    padding: 1.5rem;
}
.portfolio-category {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.portfolio-content h3 { margin-bottom: 1rem; }
.portfolio-result {
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Contact Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.contact-info-box {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
}
.contact-info-box h3 { color: var(--white); margin-bottom: 1.5rem; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item i { font-size: 1.5rem; color: var(--accent); }

/* FAQs */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}
.faq-a {
    margin-top: 1rem;
    color: var(--text-light);
    display: none;
}
.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q i { transform: rotate(180deg); }

/* Footer */
footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-about .logo { color: var(--white); margin-bottom: 1rem; }
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

/* Responsive */
@media (max-width: 992px) {
    .split-section { grid-template-columns: 1fr; gap: 2rem; }
    .split-section.reverse .split-img-wrapper { order: 1; }
    .split-section.reverse .split-content { order: 2; }
    .hero h1 { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    .nav-links.active { left: 0; }
    .menu-toggle { display: block; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 21px !important; }
    .hero-btns { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}
