/* Reset and Base Styles */
:root {
    --bg-color: #1F1F1F;
    --secondary-bg: #2E2E2E;
    --surface-color: #3A3A3A;
    --text-color: #FFFFFF;
    --subtext-color: #BFBFBF;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.secondary-bg {
    background-color: var(--secondary-bg);
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p {
    color: var(--subtext-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(31, 31, 31, 0.9);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 40px;
    width: auto;
    max-width: 180px; /* Prevents excessive width in flex containers */
    display: block;
    object-fit: contain; /* Fail-safe to prevent stretching */
    flex-shrink: 0; /* Prevents the logo from being squeezed by other flex items */
}

footer .logo {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--subtext-color);
    transform: translateY(-2px);
}

.btn-primary:hover .icon-arrow {
    transform: translateX(4px);
}

.icon-arrow {
    transition: transform 0.3s ease;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 0.15; /* Subtle presence */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31,31,31,0.8), rgba(31,31,31,0.4));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-subtext {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--subtext-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-card {
    padding: 4rem 3.5rem;
    background-color: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: #333333;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: var(--text-color);
}

.service-card p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--subtext-color);
}

/* Work */
.section-title {
    margin-bottom: 4rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-item {
    position: relative;
    overflow: hidden;
}

.image-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--surface-color);
}

.image-comparison img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
}

.image-comparison .after {
    opacity: 0;
}

.work-item:hover .after {
    opacity: 1;
}

.work-item:hover .before {
    opacity: 0.2;
}

.work-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--subtext-color);
}

/* Process */
.process-list {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-num {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.3;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-stats {
    margin: 3rem 0;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.philosophy {
    border-top: 1px solid var(--surface-color);
    padding-top: 3rem;
    font-size: 1.2rem !important;
}

.philosophy strong {
    color: var(--text-color);
    font-weight: 500;
}

/* Final CTA */
.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--surface-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-brand .logo {
    margin-bottom: 0.5rem;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Sticky WhatsApp */
.whatsapp-sticky {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: var(--transition);
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .section-padding { padding: 6rem 0; }
    .services-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav { height: 70px; }
    .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .process-step { flex-direction: column; gap: 1rem; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .final-cta h2 { font-size: 2.25rem; }
}
