:root {
    /* Color Palette */
    --primary: #D4AF37;
    /* Gold */
    --primary-light: #F3E5AB;
    /* Light Gold/Vanilla */
    --secondary: #2C3E50;
    /* Deep Blue/Charcoal */
    --text-main: #333333;
    --text-light: #777777;
    --bg-main: #FAFAFA;
    /* Off-white */
    --bg-light: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

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

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

.section-title {
    margin-bottom: 4rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-light);
    /* White when transparent */
    letter-spacing: 1px;
}

.navbar.scrolled .logo {
    color: var(--secondary);
    /* Dark when scrolled */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--bg-light);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

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

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bg-light);
    margin: 5px auto;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--secondary);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-light);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background-color: #C09A2D;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--bg-light);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--bg-light);
    /* Placeholder gradient until image is added via inline style or separate CSS */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.6) 0%, rgba(44, 62, 80, 0.2) 50%, rgba(44, 62, 80, 0.7) 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        /* Fix iOS/mobile vanishing background issue */
        background-attachment: scroll !important;
    }
    
    /* Completely remove overlay on mobile for 0% blur effect */
    .hero-overlay {
        background: transparent;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    color: var(--bg-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links a {
        color: var(--secondary) !important;
        font-size: 1.2rem;
    }


    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--secondary);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--secondary);
    }
}

/* =========================================
   Why Us Comparison Section
   ========================================= */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid #eee;
    transition: var(--transition);
}

.compare-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.compare-card h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--secondary);
}

.compare-card.premium {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.compare-card.premium h3 {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li.check::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-list li.cross::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #c62828;
    font-weight: bold;
    font-size: 1.1rem;
}

.compare-card.premium .feature-list li {
    font-weight: 500;
}

/* =========================================
   Projects Section
   ========================================= */
.projects-scroll-container {
    width: 100%;
}

.project-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Desktop Projects Layout */
@media (min-width: 901px) {
    .projects-row {
        display: flex;
        gap: 2rem;
    }
    .project-card {
        flex: 0 0 calc(33.333% - 1.33rem); /* 3 cards per row */
        display: flex;
        flex-direction: column;
    }
    /* Prevent Swiper classes from breaking Desktop layout if randomly added */
    .projects-swiper {
        overflow: visible !important;
    }
    .projects-row.swiper-wrapper {
        flex-wrap: nowrap;
        transform: none !important;
    }
    .project-card.swiper-slide {
        width: auto !important; 
    }
}

.project-img {
    height: 350px;
    overflow: hidden;
    position: relative;
}

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

.project-card:hover .project-img img {
    transform: scale(1.05);
}

/* Add an overlay glassmorphism effect on hover */
.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img::after {
    opacity: 1;
}

.project-info {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--secondary);
}

.project-info .desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.project-info .package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.project-info .package-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}

.project-info .package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.project-info .package-features li strong {
    color: var(--secondary);
}

.mt-3 {
    margin-top: 1rem;
}

.highlight-text {
    font-weight: 600;
    color: var(--primary) !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Prevent Swiper classes from breaking Desktop layout */
@media (min-width: 901px) {
    .projects-swiper {
        overflow: visible !important;
    }
    .projects-row.swiper-wrapper {
        flex-wrap: nowrap;
        transform: none !important;
    }
    .project-card.swiper-slide {
        width: auto !important; 
    }
}

/* Projects Mobile Swiper Settings (Cards Effect) */
@media (max-width: 900px) {
    .projects-swiper {
        width: 320px; /* Exact size of original mobile card */
        max-width: 85vw; /* Failsafe for very small screens */
        margin: 0 auto;
        padding-bottom: 2.5rem;
        padding-top: 1rem;
        overflow: visible; /* Show the 3D stack overflow */
    }
    
    .projects-row.swiper-wrapper {
        align-items: center;
    }

    .project-card {
        width: 100%; /* Will fill the 320px swiper container */
        box-shadow: 0 10px 25px rgba(0,0,0,0.12); /* Enhance shadow for 3D stack */
        border: none;
    }

    /* Mobile Description Toggle Styles */
    .mobile-desc-btn {
        margin-top: 1rem;
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .project-info .desc {
        display: none !important;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    .project-info .desc.show-desc {
        display: block !important;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* =========================================
   Mobile Swipe Tutorial
   ========================================= */
.mobile-swipe-tutorial {
    display: none; /* Hidden by default (desktop) */
}

@media (max-width: 900px) {
    .mobile-swipe-tutorial {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        color: var(--secondary);
        font-size: 0.9rem;
        font-weight: 500;
        opacity: 0.8;
    }

    .swipe-icon {
        display: flex;
        align-items: center;
        animation: swipeHint 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes swipeHint {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(10px);
        }
    }
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials-swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
    /* Space for pagination */
    padding-top: 1rem;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-score {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 3rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.swiper-pagination-bullet {
    background-color: var(--secondary);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary);
}

.quote-icon {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
}

.review-text {
    flex-grow: 1;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.reviewer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.reviewer .name {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.reviewer .date {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: var(--secondary);
    color: var(--bg-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    color: var(--bg-light);
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-form-container {
    padding: 4rem 4rem 4rem 2rem;
}

.custom-form {
    display: grid;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-group input,
.form-group select {
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-main);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: var(--bg-light);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1.2rem;
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-container {
        padding: 3rem 2rem;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-logo {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-light);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.copyright {
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.6;
}