/* Index Page Specific Styles */

/* =====================
   COMMON LAYOUT
   ===================== */
.section-padding { padding: var(--section-padding) 5%; }
.container { max-width: 1400px; margin: 0 auto; }
.section-subtitle { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 15px; }
.accent-text { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 15px; display: block; }
.text-center { text-align: center; }

/* =====================
   HERO SLIDER
   ===================== */
.hero {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    max-width: 750px;
}

.slide-content .subtitle {
    font-family: var(--font-body);
    font-size: clamp(12px, 1.5vw, 16px);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: var(--primary);
    display: block;
}

.slide-content .title {
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--white);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* 3D Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.blob {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), transparent);
    filter: blur(50px);
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 { width: 300px; height: 300px; top: -100px; left: -100px; opacity: 0.3; }
.blob-2 { width: 400px; height: 400px; bottom: -100px; right: -100px; opacity: 0.2; animation-delay: -5s; }

.glass-sphere {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    animation: float 8s infinite alternate ease-in-out;
}

.sphere-1 { width: 100px; height: 100px; top: 20%; right: 20%; animation-duration: 12s; }
.sphere-2 { width: 60px; height: 60px; bottom: 30%; left: 30%; animation-duration: 9s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(30px) rotate(15deg); }
}

/* =====================
   STATS / TRUSTED BRANDS
   ===================== */
.trusted-brands {
    padding: 60px 5%;
    background: var(--secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item h3 {
    font-size: clamp(36px, 5vw, 55px);
    color: var(--primary);
    display: inline-block;
    line-height: 1;
}

.stat-item span {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-item p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* =====================
   ABOUT PREVIEW
   ===================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 5px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    padding: 35px;
    text-align: center;
    color: var(--white);
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.experience-badge h2 {
    color: var(--white);
    font-size: clamp(36px, 4vw, 50px);
    margin-bottom: 8px;
}

.experience-badge p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

.about-text h2 {
    font-size: clamp(28px, 3vw, 45px);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* =====================
   SERVICES SECTION
   ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.service-card {
    background: var(--background);
    padding: 45px 35px;
    border-radius: 5px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.service-icon {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 28px;
}

.service-card h3 {
    font-size: clamp(20px, 2vw, 24px);
    margin-bottom: 18px;
}

.service-card p {
    color: #666;
    margin-bottom: 28px;
    font-size: 15px;
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more:hover { color: var(--primary); }
.read-more i { transition: transform 0.3s ease; }
.read-more:hover i { transform: translateX(5px); }

/* =====================
   WHAT WE OFFER
   ===================== */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--background);
    padding: 22px 25px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.offer-item i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.offer-item p {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

.offer-promise {
    margin-top: 50px;
    padding: 40px;
    background: var(--background);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.offer-promise h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 25px;
}

.offer-promise ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.offer-promise li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
}

.offer-promise li i {
    color: var(--primary);
    font-size: 18px;
}

/* =====================
   WHY CHOOSE US
   ===================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-text h2 {
    font-size: clamp(28px, 3vw, 45px);
    margin-bottom: 20px;
}

.why-list {
    margin-top: 28px;
}

.why-list li {
    margin-bottom: 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.why-list i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.w-card {
    padding: 35px;
    border-radius: 5px;
    text-align: center;
}

.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.why-cards-grid .w-card {
    height: 100%;
}

.why-cards-grid .w-card p {
    font-size: 13px;
    color: #666;
}

.why-tagline {
    text-align: center;
    margin-top: 50px;
}

.why-tagline p {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.2vw, 28px);
    color: var(--secondary);
    font-weight: 500;
}

.w-card.glass-panel {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.8);
}

.w-card i {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 18px;
}

.w-card h4 {
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 14px;
}

/* =====================
   PORTFOLIO PREVIEW
   ===================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.portfolio-item {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 35px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transition: bottom 0.5s ease;
}

.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { bottom: 0; }
.portfolio-overlay h3 { color: var(--white); font-size: clamp(18px, 2vw, 24px); margin-bottom: 5px; }
.portfolio-overlay p { color: var(--primary); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials-section {
    background: var(--secondary);
    color: var(--white);
}

.testimonial-slider-container {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    margin-top: 50px;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.t-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
    visibility: hidden;
}

.t-slide.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    position: relative;
}

.testimonial-card {
    padding: 50px 40px;
    text-align: center;
    border-radius: 5px;
}

.stars {
    color: var(--primary);
    margin-bottom: 22px;
    font-size: 18px;
}

.quote {
    font-size: clamp(16px, 2vw, 22px);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.9);
}

.t-controls {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}

.t-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* =====================
   PROCESS TIMELINE
   ===================== */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    position: relative;
    margin-top: 60px;
}

.timeline-item {
    width: calc(25% - 25px);
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 30px;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 10px var(--white);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.1);
}

.timeline-content h3 {
    font-size: clamp(15px, 1.5vw, 18px);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 13px;
    color: #666;
}

.timeline-content.glass-panel {
    padding: 25px 15px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    height: 100%;
}

.process-commitment {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.process-commitment h3 {
    margin-bottom: 15px;
    font-size: clamp(20px, 2.5vw, 28px);
}

.process-commitment p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
}

/* =====================
   CTA BANNER
   ===================== */
.cta-banner {
    padding: 40px 5%;
}

.cta-content {
    padding: 90px 5%;
    text-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    /* Removed background-attachment: fixed for iOS compatibility */
}

.cta-text {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.cta-text h2 {
    font-size: clamp(28px, 4vw, 50px);
    color: var(--white);
    margin-bottom: 18px;
}

.cta-text p {
    font-size: clamp(15px, 1.5vw, 18px);
    margin-bottom: 35px;
    color: rgba(255,255,255,0.8);
}

/* =====================
   INSTAGRAM GALLERY
   ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 40px;
}

.g-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.g-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(176, 141, 87, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g-overlay i {
    color: var(--white);
    font-size: 36px;
    transform: scale(0.5);
    transition: transform 0.5s ease;
}

.g-item:hover img { transform: scale(1.08); }
.g-item:hover .g-overlay { opacity: 1; }
.g-item:hover .g-overlay i { transform: scale(1); }

/* =====================
   NEWSLETTER FORM
   ===================== */
.newsletter-form {
    display: flex;
    margin-top: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 18px;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.newsletter-form button:hover {
    color: var(--white);
}

/* =====================
   BEFORE & AFTER SLIDER
   ===================== */
.ba-slider-container {
    max-width: 950px;
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 480px;
    background: #f0f0f0;
    user-select: none;
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.ba-after { z-index: 1; }
.ba-before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary);
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-arrows {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* =====================
   FAQ
   ===================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* =====================
   RESPONSIVE — 1200px
   ===================== */
@media (max-width: 1200px) {
    .timeline {
        flex-direction: column;
        gap: 40px;
        padding: 0;
        align-items: stretch;
    }

    .timeline-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 25px;
        text-align: left;
        margin-bottom: 0;
    }

    .timeline-dot {
        margin: 0;
        box-shadow: 0 0 0 10px var(--background);
        flex-shrink: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================
   RESPONSIVE — 991px
   ===================== */
@media (max-width: 991px) {
    .slide-content .title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }

    .about-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .about-img img {
        height: 420px;
    }

    .experience-badge {
        bottom: -20px;
        right: -10px;
        padding: 25px;
    }

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

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

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

    .ba-slider {
        height: 360px;
    }
}

/* =====================
   RESPONSIVE — 768px
   ===================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 5%;
    }

    .hero {
        min-height: 500px;
    }

    .slide-content {
        left: 6%;
        right: 6%;
    }

    .slide-content .title {
        font-size: clamp(1.8rem, 8vw, 3rem);
        margin-bottom: 20px;
    }

    .slide-content .subtitle {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .slider-controls {
        bottom: 20px;
        right: 20px;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-item h3 {
        font-size: clamp(28px, 7vw, 40px);
    }

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

    .cta-text h2 {
        font-size: clamp(22px, 5vw, 35px);
    }

    .timeline-item {
        width: 100%;
    }

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

    .portfolio-item {
        height: 300px;
    }

    .testimonial-card {
        padding: 35px 25px;
    }

    .ba-slider {
        height: 280px;
    }

    .cta-content {
        padding: 60px 5%;
    }
}

/* =====================
   RESPONSIVE — 480px
   ===================== */
@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }

    .slide-content .title {
        font-size: clamp(1.6rem, 9vw, 2.4rem);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-img img {
        height: 300px;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        display: inline-block;
    }

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

    .why-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        margin-bottom: 35px;
    }

    .trusted-brands {
        padding: 40px 5%;
    }

    .ba-slider {
        height: 220px;
    }

    .cta-banner {
        padding: 20px 4%;
    }

    .cta-content {
        padding: 50px 5%;
        border-radius: 6px;
    }
}
