/* =========================================
1. Variables & Reset
   ========================================= */
:root {
    --primary-color: #0f172a;
    /* Deep Navy */
    --secondary-color: #1e293b;
    /* Slate */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #bfa130;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

/* =========================================
   2. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

/* =========================================
   3. Global Components
   ========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 1rem;
}

/* =========================================
   4. Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1280px;
    padding: 15px 30px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    top: 10px;
    padding: 10px 30px;
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-color);
}

.logo img {
    border-radius: 50%;
    height: 40px;
    /* Ensure height matches previous inline style */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

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

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

.nav-cta {
    padding: 10px 25px;
    font-size: 0.85rem;
    border-radius: 30px;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: slowZoom 30s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
}

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

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover::before {
    top: 10px;
    left: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
}

/* =========================================
   7. Services
   ========================================= */
.bg-light {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 400px;
    /* Fixed height to show image */
    padding: 0;
    /* Remove default padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align content to bottom */
    border: none;
    /* Remove border if present */
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    /* Always visible */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.service-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 30px;
    width: 100%;
    transform: translateY(calc(100% - 80px));
    /* Adjusted for title height */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--white);
    border-top: 2px solid var(--accent-color);
    /* Add accent border on top */
}

.service-content h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.6rem;
    /* Increased font size */
    font-family: 'Playfair Display', serif;
}

.service-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    opacity: 0;
    /* Hide text initially */
    transition: opacity 0.3s ease 0.1s;
    transform: translateY(20px);
}

/* Service Card Hover States */
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card:hover .service-bg {
    transform: scale(1.1);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-card:hover .service-content p {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. Why Choose Us
   ========================================= */
.why-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.why-item:last-child {
    margin-bottom: 0;
}

.why-item.reverse {
    flex-direction: row-reverse;
}

.why-image {
    flex: 1;
    position: relative;
    padding: 20px;
    /* Add padding for the offset shadow */
}

.why-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0px -5px var(--accent-color), 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Creative border/shadow */
    filter: grayscale(0%);
    /* Removed grayscale for better look */
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.why-image:hover img {
    transform: translateY(-5px);
    box-shadow: 25px 25px 0px -5px var(--accent-color), 0 20px 30px rgba(0, 0, 0, 0.2);
}

.why-text {
    flex: 1;
}

.why-text h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.why-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* =========================================
   9. Feedback Section
   ========================================= */
.feedback-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.feedback-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent-color);
}

.feedback-form .form-group {
    margin-bottom: 24px;
}

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: #f8fafc;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: var(--white);
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: var(--transition);
    margin: 0;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: var(--accent-color);
}

/* =========================================
   10. Consultation Page
   ========================================= */
.consultation-page-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.consultation-wrapper {
    width: 100%;
    max-width: 800px;
}

.consultation-card {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.consultation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
}

.consultation-header {
    text-align: center;
    margin-bottom: 40px;
}

.consultation-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 20px;
}

.consultation-header p {
    color: var(--text-dark);
    opacity: 0.8;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: absolute;
    top: 30px;
    left: 30px;
}

.back-link:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.consultation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.consultation-form .form-group {
    margin-bottom: 24px;
}

.consultation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: #f8fafc;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: var(--white);
}

/* =========================================
   11. Footer
   ========================================= */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}


/* =========================================
   12. Animations
   ========================================= */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

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

/* Base state for animated elements */
.animate-text,
.animate-slide-up,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-text {
    transform: translateY(40px);
}

.animate-slide-up {
    transform: translateY(40px);
}

.animate-slide-left {
    transform: translateX(-40px);
}

.animate-slide-right {
    transform: translateX(40px);
}

/* Active states when visible */
.visible.animate-text,
.visible.animate-slide-up,
.visible.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.visible.animate-slide-left,
.visible.animate-slide-right {
    opacity: 1;
    transform: translateX(0);
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.animate-slide-up {
    transform: translateY(60px);
}

.animate-slide-left {
    transform: translateX(-60px);
}

.animate-slide-right {
    transform: translateX(60px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================
   13. Responsive
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .about-grid,
    .why-item,
    .why-item.reverse {
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .navbar {
        width: 95%;
        padding: 15px 20px;
        border-radius: 15px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        border-radius: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-grid,
    .why-item,
    .why-item.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .why-image {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .btn {
        padding: 14px 30px;
    }

    /* Consultation Page Responsive */
    .consultation-card {
        padding: 30px 20px;
    }

    .consultation-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .back-link {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 60px;
    }

    .navbar {
        width: 100%;
        border-radius: 0;
        top: 0;
        padding: 15px;
        background: rgba(15, 23, 42, 0.95);
    }

    .navbar.scrolled {
        top: 0;
    }

    .nav-links {
        top: 60px;
        /* Adjust based on navbar height */
        border-radius: 0;
        margin-top: 0;
        border-left: none;
        border-right: none;
    }

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

    .service-card {
        min-height: 350px;
    }

    .why-item {
        gap: 40px;
        margin-bottom: 80px;
    }

    .why-text h3 {
        font-size: 1.8rem;
    }
}