/* =========================================================
   TECH-CODECRAFT — FINAL RESPONSIVE SYSTEM
========================================================= */

/* =========================================================
   RESET
========================================================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
    font-family:'Inter',sans-serif;
    line-height:1.6;
    background:var(--light-bg);
    color:var(--dark);
    letter-spacing:-0.01em;
}

/* =========================================================
   ROOT
========================================================= */
:root{

    --primary:#000000;
    --secondary:#1a1a1a;

    --dark:#0a0a0a;
    --light:#ffffff;

    --light-bg:#f8f8fa;

    --gray:#5a5a5a;
    --gray-light:#8a8a8a;

    --card-bg:#ffffff;

    --whatsapp:#25D366;

    --shadow-sm:
        0 8px 24px rgba(0,0,0,.03),
        0 2px 4px rgba(0,0,0,.02);

    --shadow-md:
        0 16px 32px -8px rgba(0,0,0,.06),
        0 4px 12px rgba(0,0,0,.03);

    --shadow-hover:
        0 24px 48px -12px rgba(0,0,0,.12),
        0 8px 24px -6px rgba(0,0,0,.05);

    --radius-md:18px;
    --radius-lg:28px;

    --ease-out:cubic-bezier(0.25,0.46,0.45,0.94);

    --transition:
        all .35s var(--ease-out);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1,
h2,
h3,
h4{
    font-family:'Space Grotesk',sans-serif;
    line-height:1.15;
    letter-spacing:-0.03em;
    color:var(--dark);
}

p{
    color:var(--gray);
    line-height:1.75;
}

img{
    width:100%;
    display:block;
}

/* =========================================================
   CONTAINER
========================================================= */
.container{
    width:min(92%,1280px);
    margin:auto;
}

/* =========================================================
   SECTION
========================================================= */
section{
    padding:100px 0;
    position:relative;
}

.section-title{
    text-align:center;
    margin-bottom:65px;
}

.section-title h2{
    font-size:clamp(2rem,5vw,3.2rem);
    margin-bottom:14px;
}

.section-title p{
    max-width:700px;
    margin:auto;
    color:var(--gray-light);
    font-size:1.05rem;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:14px 30px;

    border-radius:999px;

    background:var(--primary);
    color:white;

    text-decoration:none;

    font-size:.95rem;
    font-weight:600;

    border:1.5px solid var(--primary);

    transition:var(--transition);

    cursor:pointer;
}

.btn:hover{
    transform:translateY(-3px);

    background:var(--secondary);

    box-shadow:
        0 10px 24px rgba(0,0,0,.12);
}

.btn-outline{
    background:transparent;
    color:var(--primary);
}

.btn-outline:hover{
    background:var(--primary);
    color:white;
}

.btn-buy{
    background:var(--whatsapp);
    border-color:var(--whatsapp);
    color:white;
}

.btn-buy:hover{
    background:#1cad56;
    border-color:#1cad56;
}

/* =========================================================
   HEADER
========================================================= */
header{
    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:1000;

    padding:18px 0;

    background:rgba(0,0,0,.94);

    backdrop-filter:blur(14px);

    border-bottom:
        1px solid rgba(255,255,255,.06);
}

.header-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    color:white;
    text-decoration:none;

    font-size:1.7rem;
    font-weight:700;

    font-family:'Space Grotesk',sans-serif;
}

.logo span{
    color:#9d9d9d;
}

/* =========================================================
   NAVIGATION
========================================================= */
nav ul{
    display:flex;
    align-items:center;
    gap:2rem;

    list-style:none;
}

nav ul li a{
    position:relative;

    text-decoration:none;

    color:rgba(255,255,255,.8);

    font-size:.95rem;
    font-weight:500;

    transition:.25s;
}

nav ul li a:hover,
nav ul li a.active{
    color:white;
}

nav ul li a::after{
    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0;
    height:2px;

    background:white;

    transition:.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after{
    width:100%;
}

/* =========================================================
   MOBILE BUTTON
========================================================= */
.mobile-menu-btn{
    display:none;

    background:none;
    border:none;

    color:white;

    font-size:1.7rem;

    cursor:pointer;

    z-index:1200;
}

/* =========================================================
   HERO
========================================================= */
.hero{
    padding:180px 0 120px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f5f5f7 100%
        );
}

.hero-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:70px;
}

.hero-text h1{
    font-size:clamp(2.8rem,5vw,4.7rem);
    margin-bottom:24px;
}

.hero-text p{
    font-size:1.15rem;
    margin-bottom:36px;
    white-space:pre-line;
}

.hero-image img{
    border-radius:32px;
    box-shadow:var(--shadow-md);
}

/* =========================================================
   PAGE HERO
========================================================= */
.page-hero{
    padding:180px 0 110px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f5f5f7 100%
        );

    text-align:center;
    overflow:hidden;
}

.page-hero-content{
    max-width:850px;
    margin:auto;
}

.page-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 22px;

    background:#111;
    color:white;

    border-radius:999px;

    font-size:.85rem;
    font-weight:600;

    margin-bottom:24px;
}

.page-hero h1{
    font-size:clamp(2.8rem,6vw,5rem);
    margin-bottom:22px;
}

.page-hero p{
    max-width:700px;
    margin:auto;
    font-size:1.1rem;
}

/* =========================================================
   GRIDS
========================================================= */
.projects-grid,
.templates-grid,
.team-container,
.testimonials-grid,
.packages-grid,
.mobile-app-grid{
    display:grid;
    gap:32px;
}

.projects-grid,
.templates-grid,
.testimonials-grid{
    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));
}

.team-container{
    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));
}

.packages-grid{
    grid-template-columns:
        repeat(auto-fit,minmax(310px,1fr));
}

.mobile-app-grid{
    grid-template-columns:
        repeat(auto-fit,minmax(300px,1fr));
}

/* =========================================================
   GENERAL CARDS
========================================================= */
.project-card,
.template-card,
.team-member,
.testimonial-card,
.package-card,
.app-card{
    background:white;

    border-radius:28px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);
}

.project-card:hover,
.template-card:hover,
.team-member:hover,
.testimonial-card:hover,
.package-card:hover,
.app-card:hover{
    transform:translateY(-8px);

    box-shadow:var(--shadow-hover);
}

/* =========================================================
   PROJECTS
========================================================= */
.project-img{
    height:220px;
    overflow:hidden;
}

.project-img img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}

.project-card:hover .project-img img{
    transform:scale(1.05);
}

.project-content{
    padding:28px;
}

/* =========================================================
   TEMPLATES
========================================================= */
.template-img{
    aspect-ratio:16/10;
    overflow:hidden;
}

.template-img img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:.45s;
}

.template-card:hover .template-img img{
    transform:scale(1.04);
}

.template-info{
    padding:28px 24px;
    text-align:center;
}

.template-info h3{
    margin-bottom:10px;
    font-size:1.5rem;
}

.template-price{
    font-size:2rem;
    font-weight:800;
    margin:12px 0;
}

.template-desc{
    margin-bottom:20px;
}

.template-card .btn{
    width:100%;
    margin-top:10px;
}

/* =========================================================
   TEAM
========================================================= */
.member-img{
    height:280px;
}

.member-img img{
    height:100%;
    object-fit:cover;
}

.member-info{
    padding:24px;
    text-align:center;
}

.role{
    display:block;

    margin:
        10px 0 16px;

    color:#555;

    font-size:.85rem;
    font-weight:600;

    text-transform:uppercase;
}

.member-skills{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}

.member-skills span{
    background:#f1f1f4;

    padding:6px 12px;

    border-radius:999px;

    font-size:.75rem;
    font-weight:600;
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonial-card{
    padding:34px 30px;
}

.client-name{
    font-size:1.3rem;
    font-weight:700;
    margin-bottom:18px;
}

.feedback-text{
    direction:rtl;
    text-align:right;
    margin-bottom:20px;
}

.stars{
    color:#f5b042;
}

/* =========================================================
   PACKAGES
========================================================= */
.package-card{
    padding:40px 28px;
    text-align:center;
}

.package-card.featured{
    border:2px solid #000;
}

.package-features{
    list-style:none;

    text-align:left;

    margin:
        25px 0 30px;
}

.package-features li{
    position:relative;

    padding:
        12px 0 12px 28px;

    border-bottom:
        1px solid #f1f1f1;
}

.package-features li::before{
    content:"✓";

    position:absolute;
    left:4px;

    font-weight:bold;
}

/* =========================================================
   MOBILE APPS
========================================================= */
.app-card{
    padding:48px 32px;
    text-align:center;
}

.app-icon{
    font-size:3.5rem;
    margin-bottom:20px;
}

.app-features{
    list-style:none;
    text-align:left;
    margin-top:20px;
}

.app-features li{
    position:relative;

    padding:
        10px 0 10px 28px;

    border-bottom:
        1px solid #f3f3f3;
}

.app-features li::before{
    content:"▹";

    position:absolute;
    left:4px;
}

/* =========================================================
   FEEDBACK
========================================================= */
.feedback-card{
    max-width:620px;

    margin:auto;

    padding:60px 35px;

    background:white;

    border-radius:40px;

    text-align:center;

    box-shadow:var(--shadow-md);
}

.feedback-icon{
    font-size:4rem;

    color:var(--whatsapp);

    margin-bottom:24px;
}

.contact-link{
    display:inline-flex;
    align-items:center;
    gap:10px;

    margin-top:25px;

    padding:14px 34px;

    border-radius:999px;

    background:var(--whatsapp);
    color:white;

    text-decoration:none;
    font-weight:600;
}

/* =========================================================
   FOOTER
========================================================= */
footer{
    background:#0a0a0a;
    color:white;

    padding:90px 0 40px;
}

.footer-content{
    display:grid;

    grid-template-columns:
        1.4fr 1fr 1.2fr;

    gap:50px;

    margin-bottom:50px;
}

.footer-about p{
    color:#a5a5a5;
    margin-top:18px;
}

.footer-links h3,
.footer-social h3{
    margin-bottom:18px;
}

.footer-links ul{
    list-style:none;
}

.footer-links li{
    margin-bottom:14px;
}

.footer-links a{
    color:#a5a5a5;
    text-decoration:none;
    transition:.25s;
}

.footer-links a:hover{
    color:white;
}

.footer-contact p{
    color:#b5b5b5;
    margin-bottom:14px;
}

.social-icons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

.social-icons a{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#1b1b1b;
    color:white;

    transition:.25s;
}

.social-icons a:hover{
    transform:translateY(-3px);

    background:white;
    color:black;
}

.copyright{
    border-top:
        1px solid #1f1f1f;

    padding-top:35px;

    text-align:center;

    color:#777;
}

/* =========================================================
   FLOAT WHATSAPP
========================================================= */
.float-whatsapp{
    position:fixed;

    right:24px;
    bottom:24px;

    width:58px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#25D366;
    color:white;

    font-size:1.8rem;

    box-shadow:
        0 8px 20px rgba(37,211,102,.35);

    z-index:999;

    transition:.25s;
}

.float-whatsapp:hover{
    transform:scale(1.08);
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width:992px){

    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
        gap:50px;
    }

    .hero-image{
        max-width:700px;
        margin:auto;
    }

    .footer-content{
        grid-template-columns:1fr;
        gap:40px;
    }

    .mobile-menu-btn{
        display:block;
    }

    nav ul{
        position:fixed;

        top:0;
        right:-100%;

        width:280px;
        height:100vh;

        background:#000;

        flex-direction:column;

        align-items:flex-start;
        justify-content:center;

        padding:50px 40px;

        gap:28px;

        transition:.35s ease;

        box-shadow:
            -10px 0 30px rgba(0,0,0,.25);
    }

    nav ul.active{
        right:0;
    }

    nav ul li{
        width:100%;
    }

    nav ul li a{
        display:block;

        width:100%;

        padding:12px 0;

        font-size:1.05rem;

        border-bottom:
            1px solid rgba(255,255,255,.08);
    }

    nav ul li a::after{
        display:none;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width:768px){

    section{
        padding:80px 0;
    }

    .hero,
    .page-hero{
        padding:150px 0 90px;
    }

    .hero-text h1,
    .page-hero h1{
        font-size:2.4rem;
    }

    .hero-text p,
    .page-hero p{
        font-size:1rem;
    }

    .hero-text div{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .feedback-card{
        padding:45px 24px;
        border-radius:30px;
    }

    .testimonial-card,
    .package-card,
    .app-card{
        padding:30px 22px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width:550px){

    .container{
        width:94%;
    }

    .projects-grid,
    .templates-grid,
    .team-container,
    .testimonials-grid,
    .packages-grid,
    .mobile-app-grid{
        grid-template-columns:1fr;
    }

    .hero-text h1,
    .page-hero h1{
        font-size:2rem;
    }

    .section-title{
        margin-bottom:45px;
    }

    .section-title h2{
        font-size:2rem;
    }

    .footer-content{
        gap:35px;
    }

    .float-whatsapp{
        width:54px;
        height:54px;

        font-size:1.6rem;
    }

    nav ul{
        width:100%;
        max-width:100%;
    }
}