/* ============================================
   HOMEPAGE NEW DESIGN - MODERN DARK THEME
   ============================================ */

:root {
    --bg-deep: #080808;
    --bg-card: #121212;
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --text-main: #FFFFFF;
    --text-dim: #A0A0A0;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

.homepage-new * {
    scroll-behavior: smooth;
}

.homepage-new {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

/* Fix double scrollbar issue */
html:has(.homepage-new) {
    overflow-x: hidden;
}

body:has(.homepage-new) {
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100vw;
}

/* Fallback for browsers that don't support :has() */
html.homepage-new-active {
    overflow-x: hidden;
    overflow-y: auto;
}

html.homepage-new-active body {
    overflow-x: hidden;
    overflow-y: visible;
    max-width: 100vw;
}

.homepage-new .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    box-sizing: border-box;
}

.homepage-new section {
    padding: 100px 0;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.homepage-new .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.homepage-new .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION & FLOATING BADGES
   ============================================ */

.homepage-new #hero {
    padding: 120px 0 100px;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

.homepage-new .hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.homepage-new .hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.homepage-new .hero-text p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 550px;
}

.homepage-new .hero-img-area {
    flex: 1;
    position: relative;
}

.homepage-new .main-img-box {
    width: 350px;
    height: 350px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1a1a1a, #000);
    border: 2px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.homepage-new .main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-new .floating-stat {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
}

.homepage-new .stat-top {
    top: -10px;
    right: -20px;
}

.homepage-new .stat-bottom {
    bottom: 20px;
    left: -40px;
}

.homepage-new .floating-stat i {
    color: var(--gold);
    font-size: 1.6rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.homepage-new .btn {
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.homepage-new .btn-gold {
    background: var(--gold);
    color: #000;
    box-shadow: 0 10px 20px var(--gold-glow);
}

.homepage-new .btn-gold:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 15px 30px var(--gold-glow);
}

.homepage-new .btn-outline {
    border: 1px solid var(--border);
    color: #fff;
    margin-left: 15px;
}

.homepage-new .btn-outline:hover {
    background: var(--border);
}

.homepage-new .btn-wa {
    background: #25D366;
    color: #fff;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.homepage-new .section-head {
    text-align: center;
    margin-bottom: 70px;
}

.homepage-new .section-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.homepage-new .section-head p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* ============================================
   PROJECTS GRID
   ============================================ */

.homepage-new .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 100%;
}

/* For larger screens, limit to 3 columns for better layout */
@media (min-width: 1200px) {
    .homepage-new .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For medium screens, show 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .homepage-new .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.homepage-new .p-card {
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.homepage-new .p-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.homepage-new .p-img {
    height: 220px;
    background: #1a1a1a;
    overflow: hidden;
}

.homepage-new .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.homepage-new .p-card:hover .p-img img {
    transform: scale(1.1);
}

.homepage-new .p-body {
    padding: 25px;
}

.homepage-new .p-tag {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.homepage-new .p-body h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.homepage-new .p-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.homepage-new .p-link {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.homepage-new .p-link i {
    color: var(--gold);
    transition: 0.3s;
}

.homepage-new .p-link:hover i {
    transform: translateX(8px);
}

/* ============================================
   SERVICES GRID
   ============================================ */

.homepage-new .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.homepage-new .s-card {
    background: var(--bg-card);
    padding: 45px;
    border-radius: 35px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.homepage-new .s-card:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.02);
}

.homepage-new .s-card i {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 25px;
    display: block;
}

.homepage-new .s-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.homepage-new .s-list {
    list-style: none;
}

.homepage-new .s-list li {
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.homepage-new .s-list li i {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0;
}

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */

.homepage-new .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.homepage-new .r-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    position: relative;
}

.homepage-new .r-rating {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1;
}

.homepage-new .r-star {
    opacity: 0.3;
    margin-right: 2px;
}

.homepage-new .r-star.filled {
    opacity: 1;
}

.homepage-new .r-screenshot {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.homepage-new .r-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.homepage-new .r-text {
    color: var(--text-dim);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.homepage-new .r-client {
    display: flex;
    align-items: center;
    gap: 20px;
}

.homepage-new .r-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #222;
    border: 2px solid var(--gold);
}

.homepage-new .r-name {
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
}

.homepage-new .r-role {
    font-size: 0.85rem;
    color: var(--gold);
}

/* ============================================
   CTA FOOTER SECTION
   ============================================ */

.homepage-new .cta-box {
    background: linear-gradient(135deg, #121212 0%, #080808 100%);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 100px 50px;
    text-align: center;
    margin-bottom: 100px;
}

.homepage-new .cta-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 25px;
}

.homepage-new .cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .homepage-new .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .homepage-new .hero-text h1 {
        font-size: 2.8rem;
    }

    .homepage-new .main-img-box {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .homepage-new .hero-btns {
        justify-content: center;
    }

    .homepage-new .projects-grid,
    .homepage-new .services-grid,
    .homepage-new .reviews-grid {
        grid-template-columns: 1fr;
    }

    .homepage-new .section-head h2 {
        font-size: 2.2rem;
    }

    .homepage-new .cta-box h2 {
        font-size: 2.4rem;
    }

    .homepage-new .cta-box {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .homepage-new .hero-text h1 {
        font-size: 2.2rem;
    }

    .homepage-new .hero-text p {
        font-size: 1rem;
    }

    .homepage-new .main-img-box {
        width: 250px;
        height: 250px;
    }

    .homepage-new .floating-stat {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .homepage-new .stat-top {
        top: -5px;
        right: -10px;
    }

    .homepage-new .stat-bottom {
        bottom: 10px;
        left: -20px;
    }

    .homepage-new section {
        padding: 60px 0;
    }

    .homepage-new .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}