:root{
    --primary:#53c4a5;
    --primary-light:#7ee0c4;
    --dark:#031f2f;
    --dark-light:#08293d;
    --white:#ffffff;
    --glass:rgba(255,255,255,.04);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
    max-width:100%;
}

body{
    background:var(--dark);
    color:var(--white);
    overflow-x:hidden;
    max-width:100%;
    position:relative;
}

/* Background */

.bg-animation{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    overflow:hidden;
    background:
    radial-gradient(circle at 20% 20%, rgba(83,196,165,.25), transparent),
    radial-gradient(circle at 80% 80%, rgba(83,196,165,.15), transparent);
    z-index:-1;
    animation:bgMove 8s infinite alternate;
}

@keyframes bgMove{
    100%{
        transform:scale(1.2);
    }
}

/* Floating 3D shapes layer */

.shapes-3d{
    position:fixed;
    inset:0;
    z-index:-1;
    overflow:hidden;
    perspective:1000px;
    pointer-events:none;
}

.shape{
    position:absolute;
    transform-style:preserve-3d;
    opacity:.5;
}

.shape-cube{
    width:60px;
    height:60px;
    border:1px solid rgba(83,196,165,.35);
    background:rgba(83,196,165,.05);
    top:15%;
    left:8%;
    animation:cubeSpin 18s linear infinite, drift1 14s ease-in-out infinite;
}

.shape-ring{
    width:140px;
    height:140px;
    border:2px solid rgba(83,196,165,.25);
    border-radius:50%;
    top:65%;
    left:85%;
    animation:ringSpin 22s linear infinite, drift2 16s ease-in-out infinite;
}

.shape-tri{
    width:0;
    height:0;
    border-left:35px solid transparent;
    border-right:35px solid transparent;
    border-bottom:60px solid rgba(83,196,165,.15);
    top:80%;
    left:15%;
    animation:triSpin 20s linear infinite, drift1 12s ease-in-out infinite;
}

.shape-cube2{
    width:40px;
    height:40px;
    border:1px solid rgba(126,224,196,.3);
    background:rgba(126,224,196,.05);
    top:30%;
    left:90%;
    animation:cubeSpin 15s linear infinite reverse, drift2 10s ease-in-out infinite;
}

@keyframes cubeSpin{
    0%{ transform:rotateX(0) rotateY(0) rotateZ(0); }
    100%{ transform:rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

@media(max-width:768px){

    .shapes-3d{
        overflow:hidden;
        width:100vw;
        max-width:100vw;
    }

    .shape-ring{
        width:90px;
        height:90px;
        left:78%;
    }

    .shape-cube2{
        left:80%;
    }

    .shape-tri{
        left:8%;
    }

}

@keyframes ringSpin{
    0%{ transform:rotateX(60deg) rotateZ(0); }
    100%{ transform:rotateX(60deg) rotateZ(360deg); }
}

@keyframes triSpin{
    0%{ transform:rotateY(0) rotateX(20deg); }
    100%{ transform:rotateY(360deg) rotateX(20deg); }
}

@keyframes drift1{
    50%{ transform:translate(20px,-30px); }
}

@keyframes drift2{
    50%{ transform:translate(-25px,25px); }
}

/* Scrollbar */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--dark);
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary-light);
}

/* Navbar */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:0px 5%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(3,31,47,.9);
    backdrop-filter:blur(15px);
    z-index:999;
}

.logo img{
    width:100px;
    height:auto;
}

.nav-links{
    display:flex;
    gap:30px;
    list-style:none;
}

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

.nav-links a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background:var(--primary);
    transition:.3s;
}

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

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

.header-btn{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 28px;
    background:var(--primary);
    color:var(--dark);
    text-decoration:none;
    border-radius:50px;
    font-weight:700;
    transition:.4s;
    box-shadow:0 0 25px rgba(83,196,165,.4);
}

.header-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 0 35px rgba(83,196,165,.8);
}

/* Mobile menu toggle */

.menu-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
    z-index:1000;
}

.menu-toggle span{
    width:28px;
    height:3px;
    background:var(--primary);
    border-radius:3px;
    transition:.3s;
}

/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    padding:140px 10% 50px;
    perspective:1200px;
}

.hero-text{
    flex:1;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 20px;
    border-radius:50px;
    margin-bottom:25px;
    color:var(--primary);
    border:1px solid rgba(83,196,165,.3);
    background:rgba(83,196,165,.08);
}

.hero-text h3{
    font-size:25px;
    margin-bottom:10px;
    color:var(--primary);
}

.hero-text h1{
    font-size:65px;
    line-height:1.1;
    margin-bottom:15px;

    background:linear-gradient(
    90deg,
    #ffffff,
    #53c4a5
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-text h2{
    font-size:35px;
    color:var(--primary);
    height:50px;
}

.hero-text p{
    margin-top:20px;
    font-size:18px;
    line-height:1.8;
    max-width:600px;
    color:#d6e8e3;
}

/* Buttons */

.buttons{
    display:flex;
    gap:20px;
    margin-top:35px;
}

.btn{
    padding:15px 35px;
    background:var(--primary);
    color:var(--dark);
    text-decoration:none;
    border-radius:50px;
    font-weight:700;
    transition:.4s;
    box-shadow:0 0 25px rgba(83,196,165,.4);
    border:2px solid transparent;
}

.btn:hover{
    transform:translateY(-5px);
    box-shadow:0 0 35px rgba(83,196,165,.7);
}

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

.btn-outline:hover{
    background:var(--primary);
    color:var(--dark);
}

/* Social Icons */

.social-icons{
    display:flex;
    gap:15px;
    margin-top:35px;
}

.social-icons a{
    width:50px;
    height:50px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    color:var(--primary);
    border-radius:50%;
    background:rgba(83,196,165,.08);
    border:1px solid rgba(83,196,165,.2);
    transition:.4s;
}

.social-icons a:hover{
    background:var(--primary);
    color:var(--dark);
    transform:translateY(-8px);
}

/* Hero Image */

.hero-image{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}

/* Globe */

.globe{
    position:absolute;
    font-size:320px;
    color:rgba(83,196,165,.12);
    animation:rotate 20s linear infinite;
}

@keyframes rotate{
    100%{
        transform:rotate(360deg);
    }
}

/* Profile - now with 3D tilt */

.profile-card{
    width:380px;
    height:380px;
    border-radius:50%;
    overflow:hidden;
    border:4px solid var(--primary);
    transform-style:preserve-3d;
    will-change:transform;

    box-shadow:
    0 0 25px rgba(83,196,165,.5),
    0 0 60px rgba(83,196,165,.4),
    0 0 120px rgba(83,196,165,.2);

    animation:float 4s ease-in-out infinite;
    transition:box-shadow .3s;
}

.profile-card:hover{
    box-shadow:
    0 0 35px rgba(83,196,165,.7),
    0 0 80px rgba(83,196,165,.5),
    0 0 150px rgba(83,196,165,.3);
}

.profile-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transform:translateZ(20px);
}

@keyframes float{
    50%{
        transform:translateY(-20px);
    }
}

/* Scroll Down */

.scroll-down{
    text-align:center;
    margin-top:-30px;
    animation:bounce 2s infinite;
}

.scroll-down a{
    color:var(--primary);
    font-size:30px;
}

@keyframes bounce{
    50%{
        transform:translateY(12px);
    }
}

/* Mobile */

@media(max-width:991px){

    .navbar{
        padding:12px 5%;
        min-height:64px;
    }

    .hero{
        flex-direction:column-reverse;
        text-align:center;
        padding-top:110px;
    }

    .hero-text h1{
        font-size:45px;
    }

    .hero-text h2{
        font-size:25px;
    }

    .profile-card{
        width:280px;
        height:280px;
    }

    .globe{
        font-size:240px;
    }

    .buttons{
        justify-content:center;
    }

    .social-icons{
        justify-content:center;
    }

    .hero-badge{
        justify-content:center;
    }

    .header-btn{
        display:none;
    }

    .menu-toggle{
        display:flex;
        align-self:center;
    }

    .nav-links{
        position:fixed;
        top:0;
        right:-100%;
        width:70%;
        height:100vh;
        background:rgba(3,31,47,.98);
        backdrop-filter:blur(20px);
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:40px;
        transition:.4s;
    }

    .nav-links.active{
        right:0;
    }

    .logo img{
        width:70px;
    }
}


/* ==========================
   ABOUT SECTION
========================== */

.about{
    padding:120px 10%;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title h2{
    font-size:50px;
    color:var(--primary);
}

.section-title p{
    margin-top:10px;
    color:#b7d6cc;
}

.about-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.about-image{
    perspective:1200px;
}

.about-card{
    width:100%;
    max-width:420px;
    margin:auto;
    overflow:hidden;
    border-radius:30px;
    border:2px solid rgba(83,196,165,.2);
    transform-style:preserve-3d;
    will-change:transform;
    transition:box-shadow .3s;

    box-shadow:
    0 0 40px rgba(83,196,165,.15);
}

.about-card:hover{
    box-shadow:
    0 0 50px rgba(83,196,165,.3);
}

.about-card img{
    width:100%;
    display:block;
    transform:translateZ(15px);
}

.about-tag{
    display:inline-block;
    padding:10px 20px;
    border-radius:30px;
    background:rgba(83,196,165,.1);
    color:var(--primary);
    margin-bottom:20px;
}

.about-content h3{
    font-size:40px;
    line-height:1.3;
    margin-bottom:20px;
}

.about-content p{
    color:#d6e8e3;
    line-height:1.9;
    margin-bottom:20px;
}

.stats{
    display:flex;
    gap:20px;
    margin:40px 0;
}

.stat-box{
    flex:1;
    padding:25px;
    text-align:center;
    border-radius:20px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(83,196,165,.15);
}

.stat-box h4{
    font-size:35px;
    color:var(--primary);
}

.stat-box span{
    color:#c9dfd8;
}

@media(max-width:991px){

    .about-container{
        grid-template-columns:1fr;
    }

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

    .stats{
        flex-direction:column;
    }

    .section-title h2{
        font-size:38px;
    }

    .about-content h3{
        font-size:30px;
    }
}

/* ABOUT ANIMATIONS */

.about-image{
    animation:slideLeft 1.2s ease;
}

.about-content{
    animation:slideRight 1.2s ease;
}

@keyframes slideLeft{
    from{
        opacity:0;
        transform:translateX(-80px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes slideRight{
    from{
        opacity:0;
        transform:translateX(80px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

.about-card{
    animation:floatAbout 5s ease-in-out infinite;
}

@keyframes floatAbout{
    50%{
        transform:translateY(-15px);
    }
}

.stat-box{
    transition:.4s;
}

.stat-box:hover{
    transform:translateY(-10px) scale(1.03);
    border-color:var(--primary);

    box-shadow:
    0 0 25px rgba(83,196,165,.3);
}

.section-title h2{
    position:relative;
}

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


/* =====================
SERVICES SECTION (3D Cards)
===================== */

.services{
    padding:120px 10%;
}

.services-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
    margin-top:60px;
    perspective:1500px;
}

.service-card{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(83,196,165,.15);
    border-radius:25px;
    padding:40px 30px;
    transition:box-shadow .4s, border-color .4s;
    position:relative;
    overflow:hidden;
    transform-style:preserve-3d;
    will-change:transform;
}

.service-card::before{
    content:'';
    position:absolute;
    width:120px;
    height:120px;
    background:rgba(83,196,165,.08);
    border-radius:50%;
    top:-40px;
    right:-40px;
}

/* glare sweep for 3D cards */
.card-glare{
    position:absolute;
    inset:0;
    background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.16), transparent 60%);
    opacity:0;
    transition:opacity .3s;
    pointer-events:none;
    border-radius:inherit;
}

.service-card:hover .card-glare,
.portfolio-card:hover .card-glare{
    opacity:1;
}

.service-card:hover{
    border-color:var(--primary);

    box-shadow:
    0 25px 45px -10px rgba(0,0,0,.5),
    0 0 30px rgba(83,196,165,.25);
}

.service-icon{
    width:80px;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:20px;
    background:rgba(83,196,165,.1);
    color:var(--primary);
    font-size:30px;
    margin-bottom:25px;
    transform:translateZ(30px);
}

.service-card h3,
.service-card p,
.service-card .hero-badge{
    transform:translateZ(20px);
}

.service-card h3{
    margin-bottom:15px;
    font-size:24px;
}

.service-card p{
    color:#d6e8e3;
    line-height:1.8;
}


/* =====================
PORTFOLIO SECTION (3D Cards)
===================== */

.portfolio{
    padding:120px 10%;
    position:relative;
}

/* Background Glow */

.portfolio::before{
    content:'';
    position:absolute;
    width:350px;
    height:350px;
    background:rgba(83,196,165,.08);
    filter:blur(100px);
    border-radius:50%;
    top:20%;
    left:10%;
    animation:moveGlow 12s infinite alternate;
    z-index:-1;
}

@keyframes moveGlow{

    from{
        transform:translate(0,0);
    }

    to{
        transform:translate(300px,200px);
    }

}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:60px;
    perspective:1500px;
}

/* Portfolio Card */

.portfolio-card{
    position:relative;
    width:100%;
    background:rgba(255,255,255,.03);
    border-radius:25px;
    overflow:hidden;
    border:1px solid rgba(83,196,165,.15);
    transform-style:preserve-3d;
    will-change:transform;

    transition:box-shadow .5s, border-color .5s;

    animation:floatCard 6s ease-in-out infinite;
}

/* Floating Effect */

@keyframes floatCard{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }

}

.portfolio-card:nth-child(2){
    animation-delay:.5s;
}

.portfolio-card:nth-child(3){
    animation-delay:1s;
}

.portfolio-card:nth-child(4){
    animation-delay:1.5s;
}

.portfolio-card:nth-child(5){
    animation-delay:2s;
}

.portfolio-card:nth-child(6){
    animation-delay:2.5s;
}

/* Shine Effect */

.portfolio-card .shine{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:60%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.15),
        transparent
    );

    transition:.8s;
    z-index:2;
    pointer-events:none;
}

.portfolio-card:hover .shine{
    left:120%;
}

/* Hover */

.portfolio-card:hover{

    border-color:var(--primary);

    box-shadow:
    0 25px 45px -10px rgba(0,0,0,.5),
    0 0 30px rgba(83,196,165,.25),
    0 0 60px rgba(83,196,165,.15);
}

/* Image */

.portfolio-image{
    overflow:hidden;
    height:220px;
    position:relative;
    transform:translateZ(20px);
}

.portfolio-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:.7s ease;
}

.portfolio-card:hover .portfolio-image img{
    transform:scale(1.12) rotate(2deg);
}

/* Placeholder gradient tiles (no source images bundled) */

.portfolio-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:54px;
    color:rgba(255,255,255,.85);
}

.ph-1{ background:linear-gradient(135deg,#0c4a40,#53c4a5); }
.ph-2{ background:linear-gradient(135deg,#0a3550,#3aa1d6); }
.ph-3{ background:linear-gradient(135deg,#3a2d6b,#8a6ee0); }
.ph-4{ background:linear-gradient(135deg,#0f5440,#34c98a); }
.ph-5{ background:linear-gradient(135deg,#5a3a1a,#e0a23a); }
.ph-6{ background:linear-gradient(135deg,#1a3a5a,#53c4a5); }

/* Content */

.portfolio-content{
    padding:25px;
    transform:translateZ(20px);
}

.portfolio-content h3{
    margin-bottom:10px;
    font-size:24px;
}

.portfolio-content p{
    color:#d6e8e3;
    margin-bottom:20px;
    line-height:1.7;
}

/* =====================
PORTFOLIO CTA CARD (distinct style)
===================== */

.portfolio-cta-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:50px 32px;
    min-height:100%;
    background:linear-gradient(160deg, rgba(83,196,165,.12), rgba(8,41,61,.4));
    border:2px dashed rgba(83,196,165,.4) !important;
    animation:none !important;
}

.portfolio-cta-card .cta-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    background:rgba(83,196,165,.15);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:22px;
    transform:translateZ(25px);
}

.portfolio-cta-card h3{
    font-size:22px;
    margin-bottom:14px;
    transform:translateZ(20px);
}

.portfolio-cta-card p{
    color:#c9dfd8;
    font-size:14.5px;
    line-height:1.75;
    margin-bottom:26px;
    transform:translateZ(20px);
}

.portfolio-cta-btn{
    border:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:10px;
    transform:translateZ(20px);
}

/* Button */

.portfolio-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 25px;
    background:var(--primary);
    color:var(--dark);
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    overflow:hidden;
    border:none;
    cursor:pointer;
    font-family:inherit;
    font-size:14.5px;
}

.demo-toggle-btn i{
    transition:transform .35s;
}

.demo-toggle-btn.active i{
    transform:rotate(180deg);
}

/* Button Shine */

.portfolio-btn::before{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.4),
        transparent
    );

    transition:.6s;
}

.portfolio-btn:hover::before{
    left:100%;
}

.portfolio-btn:hover{
    box-shadow:
    0 0 25px rgba(83,196,165,.6);
}

/* Mobile / Tablet */

@media(max-width:991px){

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

}

@media(max-width:650px){

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

}

/* =====================
SCROLL ARROW (shared by testimonials)
===================== */

.scroll-arrow{
    flex:0 0 auto;
    width:48px;
    height:48px;
    min-width:48px;
    border-radius:50%;
    border:1px solid rgba(83,196,165,.3);
    background:rgba(8,41,61,.9);
    color:var(--primary);
    font-size:18px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
    z-index:5;
}

.scroll-arrow:hover{
    background:var(--primary);
    color:var(--dark);
    transform:scale(1.08);
}

/* =====================
INLINE LIVE DEMO PREVIEW
===================== */

.demo-preview{
    max-height:0;
    opacity:0;
    overflow:hidden;
    margin-top:0;
    transition:max-height .55s ease, opacity .4s ease, margin-top .5s ease;
}

.demo-preview.open{
    max-height:720px;
    opacity:1;
    margin-top:35px;
}

.demo-preview-inner{
    border-radius:20px;
    border:1px solid rgba(83,196,165,.25);
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.45), 0 0 30px rgba(83,196,165,.15);
}

.demo-preview-bar{
    display:flex;
    align-items:center;
    gap:8px;
    padding:14px 18px;
    background:rgba(8,41,61,.95);
    border-bottom:1px solid rgba(83,196,165,.15);
}

.demo-dot{
    width:11px;
    height:11px;
    border-radius:50%;
    background:rgba(83,196,165,.35);
}

.demo-dot:nth-child(1){ background:#ff5f57; }
.demo-dot:nth-child(2){ background:#febc2e; }
.demo-dot:nth-child(3){ background:#28c840; }

.demo-url{
    margin-left:10px;
    font-size:13px;
    color:#9fc3ba;
    flex:1;
}

.demo-close{
    background:none;
    border:none;
    color:#9fc3ba;
    cursor:pointer;
    font-size:16px;
    padding:5px 8px;
    border-radius:8px;
    transition:.2s;
}

.demo-close:hover{
    color:var(--white);
    background:rgba(255,255,255,.08);
}

.demo-open-tab{
    color:#9fc3ba;
    font-size:14px;
    padding:5px 8px;
    border-radius:8px;
    transition:.2s;
    text-decoration:none;
}

.demo-open-tab:hover{
    color:var(--primary);
    background:rgba(255,255,255,.08);
}

.demo-iframe-box{
    position:relative;
    width:100%;
    height:650px;
    background:#fff;
}

.demo-iframe-box iframe{
    width:100%;
    height:100%;
    border:none;
    display:block;
    position:relative;
    z-index:2;
    opacity:0;
    transition:opacity .4s;
}

.demo-iframe-box iframe.loaded{
    opacity:1;
}

.demo-loading{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:var(--dark);
    background:#f3f6f5;
    font-size:15px;
    z-index:1;
}

@media(max-width:600px){
    .demo-iframe-box{
        height:420px;
    }
    .demo-preview.open{
        max-height:520px;
    }
}

/* Mobile */

/* =====================
CONTACT SECTION
===================== */

.contact{
    padding:120px 10%;
    position:relative;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:60px;
    margin-top:60px;
}

.contact-info{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:20px;
    padding:25px;
    border-radius:20px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(83,196,165,.15);
    transition:.4s;
}

.contact-item:hover{
    transform:translateY(-6px);
    border-color:var(--primary);
    box-shadow:0 0 25px rgba(83,196,165,.2);
}

.contact-item .icon-box{
    width:55px;
    height:55px;
    min-width:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:rgba(83,196,165,.1);
    color:var(--primary);
    font-size:22px;
}

.contact-item h4{
    margin-bottom:5px;
    font-size:17px;
}

.contact-item p,
.contact-item a{
    color:#c9dfd8;
    text-decoration:none;
    font-size:15px;
}

.contact-form{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(83,196,165,.15);
    border-radius:25px;
    padding:40px;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full{
    grid-column:1 / -1;
}

.contact-form label{
    margin-bottom:8px;
    font-size:14px;
    color:#b7d6cc;
}

.contact-form input,
.contact-form textarea{
    padding:14px 18px;
    border-radius:12px;
    border:1px solid rgba(83,196,165,.2);
    background:rgba(255,255,255,.02);
    color:var(--white);
    font-size:15px;
    outline:none;
    transition:.3s;
    resize:none;
    font-family:inherit;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 15px rgba(83,196,165,.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
    color:#5d7d76;
}

.submit-btn{
    border:none;
    cursor:pointer;
    font-size:16px;
    display:inline-flex;
    align-items:center;
    gap:10px;
}

@media(max-width:991px){

    .contact-container{
        grid-template-columns:1fr;
    }

    .form-row{
        grid-template-columns:1fr;
    }
}

/* =====================
FOOTER
===================== */

footer{
    padding:60px 10% 30px;
    border-top:1px solid rgba(83,196,165,.15);
    margin-top:40px;
}

.footer-container{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    gap:50px;
    margin-bottom:40px;
}

.footer-brand img{
    width:120px;
    margin-bottom:18px;
}

.footer-brand p{
    color:#b7d6cc;
    line-height:1.8;
    max-width:340px;
}

.footer-col h4{
    margin-bottom:20px;
    color:var(--white);
    font-size:18px;
}

.footer-col ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-col ul a{
    color:#b7d6cc;
    text-decoration:none;
    transition:.3s;
}

.footer-col ul a:hover{
    color:var(--primary);
    padding-left:5px;
}

.footer-bottom{
    text-align:center;
    padding-top:25px;
    border-top:1px solid rgba(83,196,165,.1);
    color:#7d9b93;
    font-size:14px;
}

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

@media(max-width:768px){

    .footer-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-brand p{
        margin:0 auto;
    }

    .footer-col ul{
        align-items:center;
    }
}

/* Back to top */

.back-to-top{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--primary);
    color:var(--dark);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:18px;
    box-shadow:0 0 20px rgba(83,196,165,.5);
    opacity:0;
    pointer-events:none;
    transition:.4s;
    z-index:998;
}

.back-to-top.show{
    opacity:1;
    pointer-events:auto;
}

.back-to-top:hover{
    transform:translateY(-5px);
}

/* =====================
FLOATING WHATSAPP BUTTON (left side)
===================== */

.floating-whatsapp{
    position:fixed !important;
    bottom:30px;
    left:30px;
    width:62px;
    height:62px;
    border-radius:50%;
    background:#25D366;
    color:#ffffff;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.35), 0 0 25px rgba(37,211,102,.5);
    z-index:998;
    transition:transform .3s, box-shadow .3s;
    margin:0;
}

.floating-whatsapp.whatsapp-pulse::after{
    border-color:#25D366;
}

.floating-whatsapp:hover{
    transform:translateY(-5px) scale(1.06);
    box-shadow:0 12px 30px rgba(0,0,0,.4), 0 0 35px rgba(37,211,102,.7);
}

/* Entrance bounce when the page loads */

.floating-whatsapp.bounce-in{
    animation:waBounceIn .9s cubic-bezier(.34,1.56,.64,1);
}

@keyframes waBounceIn{
    0%{ transform:translateY(-140px) scale(.4); }
    55%{ transform:translateY(12px) scale(1.12); }
    75%{ transform:translateY(-6px) scale(.96); }
    100%{ transform:translateY(0) scale(1); }
}

/* Bounce/jump animation triggered on scroll */

.floating-whatsapp.wiggle{
    animation:waJump .6s ease;
}

@keyframes waJump{
    0%,100%{ transform:translateY(0) scale(1); }
    30%{ transform:translateY(-16px) scale(1.05); }
    50%{ transform:translateY(0) scale(.97); }
    70%{ transform:translateY(-6px) scale(1.02); }
}

/* Hint arrow pointing at the button */

.whatsapp-hint-arrow{
    position:fixed;
    bottom:95px;
    left:75px;
    width:80px;
    height:60px;
    z-index:997;
    pointer-events:none;
    opacity:0;
    transform:translateY(-8px);
    transition:.5s ease;
}

.whatsapp-hint-arrow svg{
    width:100%;
    height:100%;
    transform:scaleX(-1) rotate(15deg);
}

.whatsapp-hint-arrow.show{
    opacity:1;
    transform:translateY(0);
    animation:hintBob 1.8s ease-in-out infinite;
}

@keyframes hintBob{
    50%{ transform:translateY(6px); }
}

/* Welcome bubble next to the WhatsApp button */

.whatsapp-welcome-bubble{
    position:fixed;
    bottom:32px;
    left:104px;
    max-width:260px;
    background:rgba(8,41,61,.97);
    border:1px solid rgba(83,196,165,.3);
    border-radius:16px;
    padding:14px 16px;
    box-shadow:0 15px 35px rgba(0,0,0,.4);
    z-index:998;
    opacity:0;
    transform:translateX(-10px) scale(.95);
    pointer-events:none;
    transition:.4s cubic-bezier(.34,1.56,.64,1);
}

.whatsapp-welcome-bubble::before{
    content:'';
    position:absolute;
    left:-7px;
    bottom:24px;
    width:14px;
    height:14px;
    background:rgba(8,41,61,.97);
    border-left:1px solid rgba(83,196,165,.3);
    border-bottom:1px solid rgba(83,196,165,.3);
    transform:rotate(45deg);
}

.whatsapp-welcome-bubble.show{
    opacity:1;
    transform:translateX(0) scale(1);
    pointer-events:auto;
}

.whatsapp-welcome-bubble p{
    font-size:13.5px;
    color:#d6e8e3;
    line-height:1.6;
    padding-right:18px;
}

.bubble-close{
    position:absolute;
    top:8px;
    right:8px;
    background:none;
    border:none;
    color:#8fb0a8;
    cursor:pointer;
    font-size:12px;
    padding:4px;
}

.bubble-close:hover{
    color:var(--primary);
}

@media(max-width:600px){

    .floating-whatsapp{
        width:54px;
        height:54px;
        font-size:25px;
        bottom:20px;
        left:20px;
    }

    .whatsapp-hint-arrow{
        bottom:80px;
        left:62px;
        width:60px;
        height:45px;
    }

    .whatsapp-welcome-bubble{
        bottom:22px;
        left:84px;
        max-width:200px;
        padding:12px 14px;
    }

    .back-to-top{
        bottom:20px;
        right:20px;
    }

}

/* Reduced motion */

@media(prefers-reduced-motion:reduce){
    *{
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
    }
}

/* Visible focus states */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
    outline:2px solid var(--primary);
    outline-offset:3px;
}

/* =====================
WHATSAPP PULSE ANIMATION
===================== */

.whatsapp-pulse{
    position:relative;
    cursor:pointer;
}

.whatsapp-pulse::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:inherit;
    border:2px solid var(--primary);
    animation:pulseRing 2s ease-out infinite;
    pointer-events:none;
}

@keyframes pulseRing{
    0%{
        opacity:.8;
        transform:scale(1);
    }
    100%{
        opacity:0;
        transform:scale(1.35);
    }
}

/* =====================
WELCOME TOAST
===================== */

.welcome-toast{
    position:fixed;
    bottom:30px;
    left:30px;
    max-width:360px;
    display:flex;
    align-items:flex-start;
    gap:15px;
    padding:20px;
    border-radius:18px;
    background:rgba(8,41,61,.97);
    border:1px solid rgba(83,196,165,.3);
    box-shadow:0 15px 40px rgba(0,0,0,.4), 0 0 25px rgba(83,196,165,.15);
    backdrop-filter:blur(15px);
    z-index:1001;
    transform:translateY(30px) scale(.95);
    opacity:0;
    pointer-events:none;
    transition:.5s cubic-bezier(.34,1.56,.64,1);
}

.welcome-toast.show{
    transform:translateY(0) scale(1);
    opacity:1;
    pointer-events:auto;
}

.toast-icon{
    width:42px;
    height:42px;
    min-width:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:rgba(83,196,165,.15);
    color:var(--primary);
    font-size:20px;
}

.toast-text h4{
    margin-bottom:5px;
    font-size:16px;
    color:var(--white);
}

.toast-text p{
    font-size:13.5px;
    color:#c9dfd8;
    line-height:1.5;
}

.toast-close{
    background:none;
    border:none;
    color:#8fb0a8;
    cursor:pointer;
    font-size:14px;
    padding:4px;
    margin-left:auto;
    transition:.2s;
}

.toast-close:hover{
    color:var(--primary);
}

@media(max-width:600px){
    .welcome-toast{
        left:16px;
        right:16px;
        bottom:16px;
        max-width:none;
    }
}

/* =====================
INQUIRY MODAL
===================== */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(2,15,22,.75);
    backdrop-filter:blur(6px);
    z-index:1100;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    pointer-events:none;
    transition:.35s;
}

.modal-overlay.active{
    opacity:1;
    pointer-events:auto;
}

.modal-box{
    width:100%;
    max-width:520px;
    max-height:88vh;
    overflow-y:auto;
    background:var(--dark-light);
    border:1px solid rgba(83,196,165,.25);
    border-radius:25px;
    padding:40px;
    position:relative;
    box-shadow:0 25px 60px rgba(0,0,0,.5), 0 0 40px rgba(83,196,165,.15);
    transform:translateY(40px) scale(.96);
    transition:.4s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.active .modal-box{
    transform:translateY(0) scale(1);
}

.modal-close{
    position:absolute;
    top:20px;
    right:20px;
    width:38px;
    height:38px;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(83,196,165,.2);
    color:var(--white);
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

.modal-close:hover{
    background:var(--primary);
    color:var(--dark);
    transform:rotate(90deg);
}

.modal-header{
    text-align:center;
    margin-bottom:30px;
}

.modal-icon{
    width:65px;
    height:65px;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(83,196,165,.12);
    color:var(--primary);
    font-size:28px;
}

.modal-header h3{
    font-size:24px;
    margin-bottom:8px;
}

.modal-header p{
    color:#b7d6cc;
    font-size:14.5px;
}

#inquiryForm .form-group{
    margin-bottom:18px;
}

#inquiryForm label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:#b7d6cc;
}

#inquiryForm input,
#inquiryForm select,
#inquiryForm textarea{
    width:100%;
    padding:13px 16px;
    border-radius:12px;
    border:1px solid rgba(83,196,165,.2);
    background:rgba(255,255,255,.03);
    color:var(--white);
    font-size:14.5px;
    outline:none;
    transition:.3s;
    resize:none;
    font-family:inherit;
}

#inquiryForm select option{
    background:var(--dark-light);
    color:var(--white);
}

#inquiryForm input:focus,
#inquiryForm select:focus,
#inquiryForm textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 15px rgba(83,196,165,.25);
}

#inquiryForm input::placeholder,
#inquiryForm textarea::placeholder{
    color:#5d7d76;
}

.modal-submit{
    width:100%;
    justify-content:center;
    margin-top:10px;
    border:none;
    cursor:pointer;
    background:#25D366;
    box-shadow:0 0 25px rgba(37,211,102,.4);
}

.modal-submit:hover{
    box-shadow:0 0 35px rgba(37,211,102,.7);
}

/* =====================
TOGGLE GROUP (Yes/No)
===================== */

.toggle-group{
    display:flex;
    gap:12px;
}

.toggle-btn{
    flex:1;
    padding:13px 16px;
    border-radius:12px;
    border:1px solid rgba(83,196,165,.25);
    background:rgba(255,255,255,.03);
    color:#c9dfd8;
    font-size:14.5px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    font-family:inherit;
}

.toggle-btn:hover{
    border-color:var(--primary);
    color:var(--white);
}

.toggle-btn.active{
    background:var(--primary);
    color:var(--dark);
    border-color:var(--primary);
    box-shadow:0 0 18px rgba(83,196,165,.4);
}

/* =====================
CONDITIONAL FIELDS
===================== */

.conditional-field{
    max-height:0;
    overflow:hidden;
    opacity:0;
    margin-bottom:0 !important;
    transition:max-height .4s ease, opacity .3s ease, margin-bottom .4s ease;
}

.conditional-field.visible{
    max-height:120px;
    opacity:1;
    margin-bottom:18px !important;
}

@media(max-width:600px){
    .modal-box{
        padding:28px 22px;
    }
}

/* =====================
TESTIMONIALS SECTION
===================== */

.testimonials{
    padding:120px 10%;
    position:relative;
    overflow:hidden;
}

.testimonials::before{
    content:'';
    position:absolute;
    width:300px;
    height:300px;
    background:rgba(83,196,165,.07);
    filter:blur(100px);
    border-radius:50%;
    top:10%;
    right:5%;
    z-index:-1;
}

.testimonial-wrapper{
    display:flex;
    align-items:center;
    gap:16px;
    margin-top:60px;
}

.testimonial-track-container{
    overflow:hidden;
    flex:1;
}

.testimonial-track{
    display:flex;
    gap:28px;
    transition:transform .55s cubic-bezier(.65,0,.35,1);
}

.testimonial-card{
    flex:0 0 calc(33.333% - 19px);
    min-width:0;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(83,196,165,.15);
    border-radius:22px;
    padding:32px 28px;
    transition:.4s;
}

.testimonial-card:hover{
    border-color:var(--primary);
    box-shadow:0 20px 40px rgba(0,0,0,.35), 0 0 25px rgba(83,196,165,.15);
    transform:translateY(-6px);
}

.quote-icon{
    color:var(--primary);
    font-size:22px;
    opacity:.6;
    margin-bottom:12px;
}

.testimonial-card .stars{
    color:#ffc94a;
    font-size:15px;
    letter-spacing:2px;
    margin-bottom:14px;
}

.testimonial-text{
    color:#d6e8e3;
    line-height:1.8;
    font-size:14.5px;
    margin-bottom:22px;
    min-height:95px;
}

.testimonial-author{
    display:flex;
    align-items:center;
    gap:14px;
}

.author-avatar{
    width:48px;
    height:48px;
    min-width:48px;
    border-radius:50%;
    background:rgba(83,196,165,.15);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:15px;
    border:1px solid rgba(83,196,165,.3);
}

.author-info h4{
    font-size:15.5px;
    margin-bottom:2px;
}

.author-info span{
    font-size:13px;
    color:#9fc3ba;
}

.testimonial-dots{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:35px;
}

.testimonial-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:rgba(83,196,165,.25);
    cursor:pointer;
    transition:.3s;
    border:none;
    padding:0;
}

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

@media(max-width:991px){

    .testimonial-card{
        flex:0 0 calc(50% - 14px);
    }

}

@media(max-width:650px){

    .testimonial-card{
        flex:0 0 100%;
    }

    .testimonial-arrow-left,
    .testimonial-arrow-right{
        display:none;
    }

}

/* =====================
FAQ SECTION
===================== */

.faq{
    padding:120px 10%;
}

.faq-container{
    max-width:850px;
    margin:60px auto 0;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.faq-item{
    border:1px solid rgba(83,196,165,.15);
    border-radius:18px;
    background:rgba(255,255,255,.03);
    overflow:hidden;
    transition:border-color .3s;
}

.faq-item.active{
    border-color:var(--primary);
}

.faq-question{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:22px 26px;
    background:none;
    border:none;
    color:var(--white);
    font-size:16px;
    font-weight:600;
    text-align:left;
    cursor:pointer;
    font-family:inherit;
}

.faq-question i{
    color:var(--primary);
    transition:transform .35s;
    flex:0 0 auto;
}

.faq-item.active .faq-question i{
    transform:rotate(135deg);
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease, padding .4s ease;
    padding:0 26px;
}

.faq-item.active .faq-answer{
    max-height:260px;
    padding:0 26px 24px;
}

.faq-answer p{
    color:#d6e8e3;
    line-height:1.85;
    font-size:14.5px;
}

@media(max-width:600px){

    .faq-question{
        padding:18px 20px;
        font-size:14.5px;
    }

    .faq-answer{
        padding:0 20px;
    }

    .faq-item.active .faq-answer{
        padding:0 20px 20px;
    }

}

/* =====================
EXTRA SMALL SCREENS (≤ 420px) — fine-tuning
===================== */

@media(max-width:420px){

    .navbar{
        padding:10px 5%;
        min-height:58px;
    }

    .logo img{
        width:58px;
    }

    .hero{
        padding:110px 6% 40px;
    }

    .hero-text h1{
        font-size:32px;
    }

    .hero-text h2{
        font-size:19px;
        height:auto;
        min-height:30px;
    }

    .hero-text h3{
        font-size:19px;
    }

    .hero-text p{
        font-size:15px;
    }

    .profile-card{
        width:220px;
        height:220px;
    }

    .globe{
        font-size:180px;
    }

    .buttons{
        flex-direction:column;
        width:100%;
        gap:14px;
    }

    .buttons .btn{
        width:100%;
        text-align:center;
        justify-content:center;
    }

    .section-title h2{
        font-size:28px;
    }

    .about-content h3{
        font-size:24px;
    }

    .stats{
        gap:12px;
    }

    .stat-box{
        padding:16px 10px;
    }

    .stat-box h4{
        font-size:24px;
    }

    .stat-box span{
        font-size:12.5px;
    }

    .service-card,
    .portfolio-card,
    .testimonial-card{
        padding-left:5%;
        padding-right:5%;
    }

    .contact-form{
        padding:26px 18px;
    }

    .modal-box{
        padding:24px 18px;
    }

    .footer-brand img{
        width:100px;
    }

    .demo-iframe-box{
        height:340px;
    }

}

/* Landscape phones: keep hero usable */

@media(max-height:480px) and (orientation:landscape){

    .hero{
        min-height:auto;
        padding:120px 8% 40px;
    }

    .profile-card{
        width:180px;
        height:180px;
    }

}

/* =====================
3D FLYING BIRD MASCOT
===================== */

.bird-mascot{
    position:fixed;
    top:0;
    left:0;
    width:90px;
    height:64px;
    z-index:996;
    pointer-events:none;
    transform:translate(200px,200px);
    transition:transform 1.1s cubic-bezier(.22,.61,.36,1), opacity .5s;
    will-change:transform;
    opacity:0;
}

.bird-mascot.visible{
    opacity:1;
}

.bird-mascot svg{
    width:100%;
    height:100%;
    overflow:visible;
}

.bird-body-group{
    animation:birdBob 1.6s ease-in-out infinite;
    transform-origin:50px 34px;
}

@keyframes birdBob{
    0%,100%{ transform:translateY(0) rotate(0deg); }
    50%{ transform:translateY(-4px) rotate(-2deg); }
}

.bird-shadow{
    fill:rgba(0,0,0,.18);
    filter:blur(2px);
}

.bird-body{
    fill:#53c4a5;
    filter:drop-shadow(0 4px 6px rgba(0,0,0,.25));
}

.bird-head{
    fill:#7ee0c4;
    filter:drop-shadow(0 3px 4px rgba(0,0,0,.2));
}

.bird-beak{
    fill:#ffb84d;
}

.bird-eye{
    fill:#031f2f;
}

.bird-tail{
    fill:#3a9c82;
}

.wing{
    fill:#3a9c82;
    transform-origin:40px 34px;
}

.wing-left{
    animation:flapLeft .35s ease-in-out infinite;
}

.wing-right{
    animation:flapRight .35s ease-in-out infinite;
}

@keyframes flapLeft{
    0%,100%{ transform:rotateX(0deg) scaleY(1); }
    50%{ transform:rotateX(0deg) scaleY(.55) translateY(4px); }
}

@keyframes flapRight{
    0%,100%{ transform:rotateX(0deg) scaleY(1); }
    50%{ transform:rotateX(0deg) scaleY(.55) translateY(-4px); }
}

.bird-mascot.facing-left svg{
    transform:scaleX(-1);
}

@media(max-width:768px){

    .bird-mascot{
        width:60px;
        height:42px;
    }

}

@media(max-width:480px){

    .bird-mascot{
        width:46px;
        height:32px;
    }

}

@media(prefers-reduced-motion:reduce){

    .bird-mascot{
        display:none;
    }

}
