@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@700;800;900&family=Caveat:wght@600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, .navbar a { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }
.red-text { color: #E31B23; }

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 100px;
    background: #0a0a0a;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar img { height: 45px; }
.nav-links { display: flex; align-items: center; }
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 35px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #E31B23;
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
    background-color: #E31B23;
    color: white !important;
    padding: 15px 30px;
    border-radius: 5px;
    margin-left: 40px;
    transition: all 0.2s ease !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-cta:hover { background-color: #b01218; transform: translateX(5px); }
.nav-cta::after { display: none; }

/* --- BUTTONS --- */
.button {
    background-color: #E31B23;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.button:hover {
    background-color: #b01218;
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(227, 27, 35, 0.4);
}

/* --- EXPERIMENTAL HERO (HOME) --- */
.experimental-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 100px;
    background-color: #050505;
    display: flex;
    overflow: hidden;
}

.hero-left {
    width: 60%;
    height: 100%;
    padding: 5% 0 5% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.hero-meta { display: flex; align-items: center; gap: 15px; font-size: 0.75rem; letter-spacing: 3px; color: #aaaaaa; font-weight: 600; margin-bottom: 25px; text-transform: uppercase; }
.hero-meta .line { width: 30px; height: 2px; background-color: #E31B23; }

.hero-headline { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 30px; }
.hero-headline h1 { font-size: 5.5rem; line-height: 0.95; font-weight: 900; letter-spacing: -2px; margin: 0; color: #ffffff; }
.hero-headline .digital-excellence { color: #E31B23; margin-top: 5px; }
.hero-desc { font-size: 1.1rem; color: #bbbbbb; max-width: 450px; line-height: 1.7; margin-bottom: 40px; }

.hero-slider-nav { position: absolute; bottom: 50px; left: 8%; display: flex; align-items: center; gap: 20px; z-index: 10; }
.slider-arrows { display: flex; gap: 15px; }
.slider-arrows button { background: transparent; border: none; color: #666; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.slider-arrows button:hover { color: #ffffff; }
.slider-count { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; }
.slider-count .current { color: #ffffff; }
.slider-count .total { color: #555555; }

.hero-right {
    width: 60%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    z-index: 1;
}
.hero-right::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.6); z-index: 2; pointer-events: none;
}
.hero-slide-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 80% center; opacity: 0;
    transition: opacity 0.8s ease, transform 4s linear; transform: scale(1); z-index: 1;
}
.hero-slide-image.active { opacity: 1; transform: scale(1.05); }

.hero-bg-text {
    position: absolute; top: 15%; right: 5%; font-family: 'Caveat', cursive;
    font-size: 4rem; color: #ffffff; line-height: 1; z-index: 5; text-align: right; pointer-events: none;
}
.hero-bg-text span { color: #E31B23; }

.floating-card {
    position: absolute; bottom: 10%; right: 15%;
    background: linear-gradient(135deg, rgba(20,20,20,0.9), rgba(5,5,5,0.9));
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid #E31B23; padding: 25px 35px; z-index: 20;
    width: 280px; box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.floating-card .card-num { font-size: 0.75rem; color: #E31B23; font-weight: 700; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.floating-card h3 { font-size: 1.3rem; line-height: 1.3; color: #ffffff; margin-bottom: 20px; }
.floating-card a { color: #aaaaaa; font-size: 0.8rem; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.floating-card a:hover { color: #E31B23; }

/* --- HOMEPAGE SECTIONS --- */
.section-subtitle { text-align: center; color: #aaaaaa; margin-top: 10px; margin-bottom: 50px; font-size: 1.1rem; }

.trusted-section { text-align: center; padding: 40px 20px; background: rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 2; }
.trusted-section p { color: #888; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 20px; }
.logo-bar { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.client-logo { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; }

.home-services { padding: 100px 5%; text-align: center; position: relative; z-index: 2; }
.home-services h2 { font-size: 2.5rem; margin-bottom: 10px; }
.home-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }

.glass-card { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.08); padding: 40px 30px; border-radius: 12px; text-align: left; transition: transform 0.2s ease, border-color 0.2s ease; }
.glass-card:hover { transform: translateY(-4px); border-color: rgba(227, 27, 35, 0.6); }
.glass-card h3 { color: #fff; margin-bottom: 15px; font-size: 1.3rem; }
.glass-card p { color: #aaaaaa; line-height: 1.6; font-size: 0.95rem; }

.service-icon { width: 45px !important; height: 45px !important; margin-bottom: 20px; transition: transform 0.2s ease; }
.glass-card:hover .service-icon { transform: scale(1.1) translateY(-2px); }

.light-section { background-color: #f4f4f4 !important; color: #0a0a0a; position: relative; z-index: 2; box-shadow: 0 0 30px rgba(0,0,0,0.1); }
.light-section h2 { color: #0a0a0a; }
.light-section .glass-card { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.light-section .glass-card:hover { background: #ffffff; border-color: #E31B23; }
.light-section .glass-card h3 { color: #0a0a0a; }
.light-section .glass-card p { color: #555555; }
.light-section .glass-card .service-icon { stroke: #E31B23; }

.stats-section { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 80px 5%; background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%); text-align: center; position: relative; z-index: 2; border-top: 1px solid rgba(227, 27, 35, 0.2); border-bottom: 1px solid rgba(227, 27, 35, 0.2); }
.stat-box h2 { font-size: 3.5rem; margin-bottom: 5px; }
.stat-box p { color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.portfolio-section { padding: 100px 0; text-align: center; position: relative; z-index: 2; }
.portfolio-marquee { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.portfolio-track { display: flex; gap: 20px; width: max-content; animation: scrollMarquee 60s linear infinite; }
.portfolio-marquee:hover .portfolio-track { animation-play-state: paused; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.portfolio-item { flex: 0 0 350px; height: 400px; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; border: 1px solid rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.portfolio-item:hover { transform: scale(1.02); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); padding: 40px 20px 20px; text-align: left; opacity: 0; transform: translateY(20px); transition: all 0.2s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-overlay h3 { color: #E31B23; margin-bottom: 5px; font-size: 1.2rem; }
.portfolio-overlay p { color: #fff; font-size: 0.9rem; }

.process-section { padding: 100px 5%; background-color: #0a0a0a; text-align: center; position: relative; z-index: 2; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1000px; margin: 50px auto 0; }
.process-step { text-align: center; position: relative; }
.process-number { width: 60px; height: 60px; border-radius: 50%; background: #E31B23; color: white; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: 'Montserrat', sans-serif; }
.process-step h3 { color: #fff; margin-bottom: 10px; }
.process-step p { color: #888; font-size: 0.95rem; }

.testimonial-section { padding: 100px 5%; display: flex; justify-content: center; background-color: #0a0a0a; position: relative; z-index: 2; }
.testimonial-card { max-width: 800px; text-align: center; padding: 60px 40px; border-top: 2px solid #E31B23; }
.quote-text { font-size: 1.5rem; font-style: italic; color: #fff; line-height: 1.6; margin-bottom: 20px; }
.client-name { color: #E31B23; font-weight: 700; font-family: 'Montserrat', sans-serif; }

.faq-section { padding: 100px 5%; background: linear-gradient(90deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%); position: relative; z-index: 2; }
.faq-container { max-width: 800px; margin: 50px auto 0; }
.faq-item { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 15px; border-radius: 8px; padding: 20px; cursor: pointer; transition: border-color 0.2s; }
.faq-item:hover { border-color: #E31B23; }
.faq-question { font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.faq-question span { color: #E31B23; font-size: 1.5rem; }
.faq-answer { color: #aaaaaa; margin-top: 15px; display: none; font-size: 0.95rem; line-height: 1.6; }
.faq-item.active .faq-answer { display: block; }

.cta-section { padding: 100px 5%; background: radial-gradient(circle at center, rgba(227, 27, 35, 0.15) 0%, rgba(10, 10, 10, 1) 70%); text-align: center; position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.05); }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-content p { font-size: 1.2rem; color: #cccccc; margin-bottom: 40px; }

/* --- FOOTER --- */
.site-footer { margin-top: auto; background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(10px); border-top: 1px solid rgba(227, 27, 35, 0.3); padding: 60px 5% 20px; position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-col h3 { color: #E31B23; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p, .footer-col a { color: #aaaaaa; text-decoration: none; line-height: 1.8; font-size: 0.95rem; display: block; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #666; font-size: 0.85rem; }

#backToTop { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; background-color: #E31B23; color: white; border: none; padding: 15px 20px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; box-shadow: 0 5px 15px rgba(227, 27, 35, 0.4); transition: transform 0.2s; }
#backToTop:hover { transform: translateY(-5px); }

/* --- WHATSAPP BUBBLE --- */
.whatsapp-bubble {
    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; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: all 0.3s ease; text-decoration: none;
}
.whatsapp-bubble svg { width: 35px; height: 35px; fill: white; }
.whatsapp-bubble:hover { transform: translateY(-5px) scale(1.05); background-color: #1ebe5d; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
.whatsapp-bubble::before { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background-color: #25D366; opacity: 0.6; z-index: -1; animation: waPulse 2s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hero-headline h1 { font-size: 4rem; }
    .hero-bg-text { font-size: 3rem; }
    .hero-left { width: 65%; }
    .hero-right { width: 55%; }
}

@media (max-width: 900px) {
    .navbar { height: 80px; padding: 0 20px; }
    .hamburger { display: flex; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1001; }
    .hamburger span { display: block; width: 25px; height: 3px; background-color: white; transition: all 0.3s ease; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: #0a0a0a; flex-direction: column; justify-content: center; gap: 30px; transition: left 0.3s ease; }
    .nav-links.active { left: 0; }
    .nav-links a { margin: 0; font-size: 1.2rem; }
    .nav-cta { margin-left: 0; }

    .experimental-hero { flex-direction: column; height: auto; margin-top: 80px; padding-bottom: 50px; }
    .hero-left { width: 100%; padding: 40px 20px; -webkit-mask-image: none; mask-image: none; }
    .hero-right { position: relative; width: 100%; height: 50vh; }
    .hero-headline h1 { font-size: 3.5rem; }
    
    .hero-slider-nav { position: relative; bottom: auto; left: auto; margin-top: 30px; }
    .floating-card { right: 20px; bottom: -30px; width: 250px; padding: 20px; }
    .hero-bg-text { display: none; }

    .portfolio-track { animation: none; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
    .portfolio-track::-webkit-scrollbar { display: none; }
    .portfolio-item { scroll-snap-align: center; flex: 0 0 280px; height: 350px; }
    
    .whatsapp-bubble { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-bubble svg { width: 28px; height: 28px; }
}

@media (min-width: 901px) {
    .hamburger { display: none; }
}