/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #1a1a2e;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 46, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

/* Logo image styling */
.logo, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease;
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 180ms ease;
}

/* scale the whole logo block (icon + text) on hover */
.logo:hover,
.footer-logo:hover {
    transform: scale(1.04);
}

/* remove underline on footer links and logo anchors */
.footer a,
.logo,
.footer-logo {
    text-decoration: none;
}

.footer-logo-img { max-height: 40px; }
.footer-logo-img { max-height: 48px; }
.footer-logo-text { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--white); }
.footer-logo-text span { color: var(--primary-color); }

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}



.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    /* min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
background: linear-gradient(135deg, #212056 0%, #3a1262 100%);
    overflow: hidden;
    margin-top: 30px    ;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    line-height: 4rem;
}

.hero-subtitle {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 2rem;
        line-height: 2.2rem;

    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #ff5722;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 50px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTION STYLES ===== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background-color: var(--white);
    position: relative; /* allow buttons to be positioned outside the slider wrapper */
}

.portfolio-slider-wrapper {
    position: relative;
    max-width: 100%;
    /* allow outer wrapper to be visible so card shadows are not clipped */
    overflow: visible;
        padding: 20px 100px;
}

/* inner clipping container: hides sliding overflow so next/previous pages don't peek
   while the outer wrapper keeps space for shadows */
.portfolio-slider-clip {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* actual horizontal clipping happens here */
    /* add horizontal padding so item shadows don't touch the clip edges and get cut
       keep extra bottom padding so box-shadow of last row isn't cut */
            padding: 0 0 30px; /* top 0, sides 0, bottom 60px */
}

.portfolio-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding-bottom: 20px;
    /* the slider is a track of .page slides */
    will-change: transform;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    height: 100%;
    /* default to 3 items per view on desktop */
    flex: 0 0 calc(33.333% - 1.333rem);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    /* restore rounded top corners for the video area so iframe respects the card radius */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ensure iframe corners match the wrapper radius */
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.portfolio-slider {
    display: flex;
    gap: 2rem;
    transition: var(--transition);
    padding-bottom: 20px;
    /* each child of .portfolio-slider will be a .page element (one slide) */
}

/* page = one slide that contains up to 6 items (3 columns x 2 rows) */
.page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 2rem;
    align-items: start;
    align-content: start; /* prevent items from stretching vertically when page has few items */
    /* Ensure each page occupies the full visible width and padding is handled inside the page */
    min-width: 100%;
    box-sizing: border-box;
        padding: 0 20px; /* restore internal side padding so items keep comfortable spacing */
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: visible; /* allow shadow to render outside the item box (outer wrapper handles clipping) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    /* let content determine height so items don't stretch when fewer elements exist */
    height: auto;
    display: flex;
    flex-direction: column;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2000; /* high so buttons stay above header and other content */
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.slider-btn:hover svg {
    color: var(--white);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    color: var(--dark-color);
    transition: var(--transition);
}

.prev-btn {
    left: -40px; /* move left button further out from the cards */
}

.next-btn {
    right: -40px; /* move right button further out from the cards */
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ===== PROCESS SECTION ===== */
.process {
    background-color: var(--light-color);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--gradient);
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-link:hover svg {
    color: var(--white);
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h3 span {
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1100;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.whatsapp-icon path {
    fill: #ffffff;
}

/* gentle attention pulse */
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.18); }
    50% { box-shadow: 0 12px 34px rgba(37, 211, 102, 0.32); }
}

/* expanding ring to catch attention */
@keyframes whatsappRing {
    0% { transform: scale(0.8); opacity: 0.0; }
    30% { opacity: 0.25; }
    70% { opacity: 0.12; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* slight wiggle on hover */
@keyframes whatsappWiggle {
    0% { transform: translateY(-3px) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-4deg); }
    50% { transform: translateY(-3px) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(4deg); }
    100% { transform: translateY(-3px) rotate(0deg); }
}

/* idle gentle bob + tilt so it feels alive */
@keyframes whatsappIdleMove {
    0%   { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-1px) rotate(-2deg); }
    50%  { transform: translateY(0) rotate(0deg); }
    75%  { transform: translateY(1px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* idle pulse */
.whatsapp-float {
    animation: whatsappPulse 2.6s ease-in-out infinite, whatsappIdleMove 3.2s ease-in-out infinite;
    outline: none;
}

/* focus accessibility */
.whatsapp-float:focus-visible {
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25), 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) scale(1.05);
}

/* ripple ring */
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    animation: whatsappRing 2.4s ease-out infinite;
}

/* stronger effect on hover */
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    animation-duration: 1.8s;
}

.whatsapp-float:hover .whatsapp-icon {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.whatsapp-float:hover::after {
    animation-duration: 1.8s;
}

/* reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float::after {
        animation: none;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        animation-duration: 3s; /* calmer on mobile */
    }
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    /* on medium screens each page shows 2 columns (so 6 items will be 2 columns x 3 rows if full) */
    .page {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    /* single column on small screens */
    .page {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Make the portfolio look like stacked centered cards on mobile:
       - reduce outer side padding so content sits comfortably on small screens
       - center the single-column .page so cards don't stretch full-width
       - limit card width for a narrow, phone-friendly look and keep shadows visible */
    .portfolio-slider-wrapper {
        padding: 12px 18px; /* smaller side padding on mobile */
    }

    .portfolio-slider-clip {
        /* keep extra bottom space so shadows don't get clipped on very small devices */
        padding: 0 0 35px;
    }

    .page {
        /* center the grid items (single column) so cards don't stretch edge-to-edge */
        justify-items: center;
        padding: 0 8px; /* small internal padding so card edges have breathing room */
        gap: 1.25rem;
    }

    .page > .portfolio-item {
        /* make each card a centered, fixed-max-width block so it matches the screenshot */
        width: 100%;
        max-width: 360px; /* keeps cards narrow and centered */
        margin: 0 auto;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* extra tightening for very small phones */
    .portfolio-slider-wrapper {
        padding: 10px 12px;
    }

    .page > .portfolio-item {
        max-width: 320px;
    }
}
