/* --- Professional Home Page Styles (Redesigned for 3D/2D Focus) --- */
:root {
    --primary-color: #c9a227;
    --secondary-color: #1a1a1a;
    --light-bg: #f7f7f7;
    --text-color: #555;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1rem; }

/* --- Header & Navigation --- */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-size: 1.8rem;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: #f0f0f0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

/* --- WhatsApp Button --- */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: 2px solid #25D366;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
}

.btn-whatsapp svg {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

/* --- Sections --- */
.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-bg);
}

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

.subheading {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Services Showcase Grid --- */
.services-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.service-showcase-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.service-showcase-card:hover .service-image {
    transform: scale(1.05);
}

.service-info {
    padding: 2rem;
}

.service-info h3 {
    margin-bottom: 0.5rem;
}

.service-info p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--body-font);
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* --- Process Grid --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.process-step {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

/* --- Testimonials --- */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.testimonial-slider blockquote {
    font-family: var(--body-font);
    font-size: 1.25rem;
    font-style: normal;
    color: var(--secondary-color);
    border: none;
    padding: 0;
}

.testimonial-slider cite {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--text-color);
    font-style: normal;
}

/* --- Call to Action --- */
.cta-section {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.cta-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Login Modal --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); animation: fadeIn 0.3s ease; }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 2rem; border: 1px solid #888; width: 90%; max-width: 400px; border-radius: 8px; position: relative; animation: slideIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer;}
.close-btn:hover, .close-btn:focus { color: var(--secondary-color); }
#login-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
#login-form input { width: 100%; padding: 1rem; border: 1px solid #ced4da; border-radius: 5px; font-family: var(--body-font); font-size: 1rem; }


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: 90px; flex-direction: column; background-color: rgba(255, 255, 255, 0.98); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); padding: 2rem 0; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1rem 0; }
    
    .services-showcase-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 80%; }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* --- Main Page Wrapper --- */
#main-page-wrapper.loaded {
    opacity: 1 !important;
}/* WhatsApp Style Testimonial Slider (Continuous Infinite Scroll) */
.testimonial-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    /* Fades the left and right edges for a professional look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content; /* Required for continuous scrolling */
}

/* Wrapper for the cloned sets */
.scroll-set {
    display: flex;
    gap: 30px;
}

/* The continuous animation */
.continuous-scroll {
    animation: scroll-left 20s linear infinite; /* Time is dynamically set in JS based on card count */
}

/* Pause the scrolling when the user hovers over a review to read it! */
.continuous-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); } /* Shifts exactly half the width + half the gap */
}

/* =========================================
   Profile & Bubble Styles (Upgraded WhatsApp Look) 
   ========================================= */
.wa-testi-card {
    flex: 0 0 auto;
    width: 350px; 
    max-width: 85vw; /* Prevents overflow on mobile */
    display: flex;
    flex-direction: column;
}

.wa-profile {
    display: flex;
    align-items: flex-end; /* Aligns the name near the top of the bubble */
    gap: 12px;
    margin-bottom: 10px; /* Sinks the profile picture into the bubble perfectly */
    padding-left: 0; /* Shifts the profile picture fully to the left */
    position: relative;
    z-index: 2; /* Keeps profile picture above the bubble tail */
}

.wa-profile img {
    width: 50px; /* Perfect size for a chat avatar */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wa-profile h4 {
    margin: 0;
    margin-bottom: 12px; /* Pushes the name slightly above the bubble */
    font-size: 0.95rem;
    color: #475569; /* Soft grey like WhatsApp contact names */
    font-weight: 600;
}

.wa-bubble {
    background-color: #dcf8c6; /* Classic WhatsApp Green */
    color: #1e293b;
    padding: 15px 20px;
    border-radius: 0 15px 15px 15px; /* Flat top-left corner */
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 20px; /* Pushes the bubble right so the tail connects to the image */
}

/* Little tail that connects the bubble to the profile picture */
.wa-bubble::before {
    content: "";
    position: absolute;
    top: 0; 
    left: -10px;
    width: 0; 
    height: 0;
    border-top: 12px solid #dcf8c6;
    border-left: 12px solid transparent;
}

/* Brand / navbar upgrades */
.navbar { gap: 24px; }
.nav-logo { display:inline-flex; align-items:center; gap:14px; text-decoration:none; }
.nav-logo img { width:44px; height:44px; object-fit:contain; border-radius:14px; padding:6px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,0.12); }
.nav-logo span { position:relative; display:inline-block; }
.nav-logo span::after {
    content:''; position:absolute; left:0; bottom:-4px; width:100%; height:2px;
    background:linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform:scaleX(0.35); transform-origin:left center; animation:brandPulse 2.8s ease-in-out infinite;
}
.nav-action-link {
    padding: 10px 18px; border-radius: 999px; background: var(--primary-color); color:#fff !important;
    box-shadow: 0 12px 24px rgba(201,162,39,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-action-link:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(201,162,39,0.28); }
.brand-preloader { backdrop-filter: blur(12px); }
.brand-loader-shell { display:flex; align-items:center; gap:18px; padding:26px 30px; border-radius:28px; background:linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,247,247,0.92)); box-shadow:0 30px 80px rgba(15,23,42,0.12); }
.brand-loader-mark { width:72px; height:72px; border-radius:22px; background:linear-gradient(135deg, rgba(201,162,39,0.18), rgba(26,26,26,0.08)); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.brand-loader-mark img { width:58px; height:58px; object-fit:contain; animation: floatBrand 2.8s ease-in-out infinite; }
.brand-loader-copy { display:flex; flex-direction:column; gap:6px; }
.brand-loader-kicker { text-transform:uppercase; letter-spacing:0.22em; font-size:0.72rem; color:#7c6f52; }
.brand-loader-copy strong { font-family:var(--heading-font); font-size:clamp(1.6rem, 4vw, 2.6rem); color:var(--secondary-color); animation:brandGlow 2.4s ease-in-out infinite; }
@keyframes brandPulse { 0%,100% { transform:scaleX(0.35); opacity:0.4; } 50% { transform:scaleX(1); opacity:1; } }
@keyframes brandGlow { 0%,100% { letter-spacing:0.02em; transform:translateY(0); text-shadow:0 0 0 rgba(201,162,39,0); } 50% { letter-spacing:0.06em; transform:translateY(-2px); text-shadow:0 12px 30px rgba(201,162,39,0.22); } }
@keyframes floatBrand { 0%,100% { transform:translateY(0px) scale(1); } 50% { transform:translateY(-4px) scale(1.04); } }
@media (max-width: 768px) {
  .nav-logo img { width:38px; height:38px; border-radius:12px; }
  .nav-logo { gap:10px; }
  .brand-loader-shell { flex-direction:column; text-align:center; padding:24px; }
}


/* --- Shared smooth loading states --- */
#preloader {
    backdrop-filter: blur(6px);
}
#preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}
.loader-spinner {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.18);
}
#main-page-wrapper {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#main-page-wrapper.loaded,
body.site-ready #main-page-wrapper {
    opacity: 1 !important;
    transform: translateY(0);
}
