/* CSS Variables */
:root {
    --bg-primary: #F2F2F2;
    --bg-secondary: #FFFFFF;
    --text-main: #121212;
    --text-muted: #555555;
    --border-color: #E0E0E0;
    --radius-pill: 32px;
    --radius-card: 24px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
}
.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    letter-spacing: -0.02em;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition-fast);
}
.nav-links a:hover {
    color: var(--text-muted);
}
.lang-switch button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding: 4px 8px;
}
.lang-switch button.active {
    color: var(--text-main);
}
.nav-right {
    display: flex;
    align-items: center;
}
.lang-switch {
    margin-right: 1rem;
}
.nav-socials {
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}
.nav-socials a {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.nav-socials a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}
.hamburger::before { content: ''; transform: translateY(-6px); }
.hamburger::after { content: ''; transform: translateY(4px); }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}
.nav-links-mobile {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Global Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
}
.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-secondary);
    border: 2px solid var(--text-main);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--text-main);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-secondary);
}

/* Utilities */
.divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 5% 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.hero-content {
    flex: 1;
    z-index: 2;
}
.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}
.hero-image-wrapper {
    flex: 1.2;
    height: 75vh;
    border-radius: var(--radius-card);
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    animation: zoomIn 10s ease-out forwards;
}

@keyframes zoomIn {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4rem 5%;
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}
.stat-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* About Section */
.about {
    display: flex;
    padding: 6rem 5%;
    gap: 4rem;
    align-items: center;
}
.about-content {
    flex: 1;
}
.about-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 2rem 0;
    line-height: 1.6;
}
.about-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.feature {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-secondary);
}
.about-image {
    flex: 1;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 500px;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Split Layout */
.services {
    padding: 0;
    display: flex;
    flex-direction: column;
}
.service-row {
    display: flex;
    min-height: 60vh;
}
.service-content {
    flex: 1;
    padding: 5rem 5% 5rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}
.service-num {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.service-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.service-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
}
.service-image {
    flex: 1;
    padding: 2rem;
}
.service-image img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-card);
}

/* Portfolio Slider */
.portfolio {
    padding: 5rem 0; /* No side padding to let slider bleed */
    overflow: hidden;
}
.portfolio-header {
    padding: 0 5%;
}
.portfolio-slider-outer {
    position: relative;
    width: 100%;
}
.slider-container {
    padding: 0 5%;
    margin-top: 3rem;
    cursor: grab;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    opacity: 1;
    pointer-events: all;
}
.slider-nav.hidden {
    opacity: 0;
    pointer-events: none;
}
.slider-nav:hover {
    background: var(--text-main);
    color: var(--bg-secondary);
}
.slider-nav.prev { left: 2%; }
.slider-nav.next { right: 2%; }

.slider-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}
.slider-wrapper {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 5%;
}
.project-card {
    width: 450px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-secondary);
    scroll-snap-align: center;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    opacity: 0.4;
    transform: scale(0.85);
}
.project-card.active-slide {
    opacity: 1;
    transform: scale(1);
}
.project-card.active-slide:hover {
    transform: scale(1.02);
}
.project-card img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}
.project-info {
    padding: 2rem;
}
.project-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.project-info p {
    color: var(--text-muted);
}

/* Contact Section & Footer */
.contact {
    padding: 5rem 5%;
    background: var(--text-main);
}
.contact-wrapper {
    background: var(--bg-primary);
    color: var(--text-main);
    border-radius: var(--radius-card);
    display: flex;
    padding: 4rem;
    gap: 4rem;
    align-items: center;
}
.contact-text {
    flex: 1;
}
.contact-text .cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.contact-text .cta-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}
.contact-form input:focus {
    border-color: var(--text-main);
}
.contact-form .btn {
    align-self: flex-start;
}

.footer {
    background: var(--text-main);
    color: var(--bg-secondary);
    padding: 2rem 5%;
    text-align: center;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-socials a {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}
.footer-socials a:hover {
    color: var(--bg-secondary);
    transform: translateY(-3px);
}
.footer-bottom {
    padding-top: 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar { top: 10px; padding: 8px 16px; }
    .nav-brand { font-size: 1.1rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    
    .hero { 
        padding-top: 80px; 
        flex-direction: column; 
        text-align: center;
        justify-content: center;
        gap: 2rem;
    }
    .hero-content { flex: none; width: 100%; }
    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1rem; margin: 1rem auto 2rem; }
    .hero-actions { flex-direction: column; width: 100%; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }
    .hero-image-wrapper { flex: none; width: 100%; height: 40vh; }

    .stats { grid-template-columns: 1fr; padding: 2rem 5%; }
    .stat-number { font-size: 3rem; }
    
    .about { flex-direction: column; padding: 3rem 5%; gap: 2rem; text-align: center; }
    .about-features { justify-content: center; }
    .about-image { height: 300px; width: 100%; order: -1; }

    .service-row { flex-direction: column; }
    .service-content { border-right: none; padding: 3rem 5%; border-bottom: 1px solid var(--border-color); }
    .service-image { padding: 2rem 5%; height: 350px; }
    
    .slider-nav { display: none; }
    .project-card { width: 85vw; scroll-snap-align: center; }
    .project-card img { height: 350px; }
    
    .contact-wrapper { flex-direction: column; padding: 2rem; text-align: center; }
    .contact-form .btn { align-self: stretch; }
}
