@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1B4332;
    --primary-light: #2D6A4F;
    --secondary-color: #F5F3EF;
    --accent-color: #D4AF37;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --bg-body: #FFFFFF;
    --card-bg: #FFFFFF;
    --footer-bg: #f9f9f9;
    --border-color: #f0f0f0;
    --input-border: #ddd;
    --footer-border: #eee;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 20px;
}

[data-theme="dark"] {
    --primary-color: #4CAF82;
    --primary-light: #5DC992;
    --secondary-color: #1e2a22;
    --accent-color: #D4AF37;
    --text-dark: #E8E8E8;
    --text-light: #A0A0A0;
    --white: #1A1A1A;
    --bg-body: #111827;
    --card-bg: #1F2937;
    --footer-bg: #151D28;
    --border-color: #2D3748;
    --input-border: #374151;
    --footer-border: #2D3748;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(var(--accent-color) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    animation: patternMove 60s linear infinite;
    transition: background-color 0.4s ease, color 0.4s ease;
}

@keyframes patternMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 5%;
    position: relative;
    background-color: transparent;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    gap: 10px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.25);
}

.btn-support {
    animation: buttonPulse 3s infinite;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #C19A2E;
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--bg-body);
    padding: 10px 5%;
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    max-height: 60px;
    /* Constrain container height */
}

.logo img {
    height: 50px !important;
    /* Force resize */
    width: auto !important;
    object-fit: contain;
    border-radius: 6px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 3px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.28s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-cta .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}
.nav-cta, 
    header .btn-support {
        display: none !important;
    }

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.mobile-toggle:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    animation: heroImageEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes heroImageEntrance {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: var(--shadow-medium);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 800;
    max-width: 100%;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-btns .btn:nth-child(1) {
    animation: btnFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.hero-btns .btn:nth-child(2) {
    animation: btnFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

@keyframes btnFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--card-bg);
    padding: 24px 48px;
    border-radius: 100px;
    box-shadow: var(--shadow-medium);
    margin: 60px auto 0;
    max-width: 100%;
    width: fit-content;
    z-index: 5;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.contact-item i {
    color: var(--accent-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card ul {
    margin-top: 20px;
}

.service-card ul li {
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
}

/* Why Choose Us */
.why-us {
    background-color: rgba(90, 30, 140, 0.92);
    color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.why-item {
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-item h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.why-item p {
    color: rgba(255, 255, 255, 0.85);
}

.why-us .section-tag {
    color: rgba(255, 255, 255, 0.75) !important;
}

.why-us .section-title {
    color: #ffffff !important;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.client-name {
    font-weight: 700;
    color: var(--primary-color);
}

/* About */
.about-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-content {
    flex: 1;
}

.section-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-dark);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-group textarea {
    height: 150px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    color: var(--primary-color);
}

.footer-links h4 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--footer-border);
    color: var(--text-light);
}

/* Dark Mode Toggle Button */
.dark-toggle {
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: var(--transition);
    flex-shrink: 0;
    background-color: var(--card-bg);
}

.dark-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(20deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.1;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 40px;
    }

    .about-split {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {

    /* Header becomes a two-row flex container on mobile */
    header {
        flex-wrap: wrap;
        padding: 12px 5%;
        gap: 8px;
        row-gap: 0;
    }

    /* Logo takes up as much room as it needs */
    .logo {
        font-size: 1rem;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo span {
        display: none;
        /* Logo image already contains the full name */
    }

    /* CTA button: smaller, never overflows */
    .nav-cta {
        order: 2;
    }

    .nav-cta .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Dark-toggle stays compact */
    .dark-toggle {
        order: 3;
        width: 36px;
        height: 36px;
    }

    /* Hamburger icon */
    .mobile-toggle {
        display: block !important;
        font-size: 1.4rem;
        color: var(--primary-color);
        cursor: pointer;
        order: 4;
    }

    /* Dropdown nav spans full width below the header row */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-body);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        display: none !important;
        transition: var(--transition);
        z-index: 1000;
    }

    nav.active {
        display: flex !important;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        width: 100%;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .hero p {
        margin: 0 auto 32px;
        font-size: 1.15rem;
        width: 100%;
        line-height: 1.6;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 18px;
    }

    .quick-contact {
        margin: 40px auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        background: var(--white);
        padding: 24px;
        border-radius: 20px;
        box-shadow: var(--shadow-medium);
        width: 100%;
        max-width: 100%;
        border: 1px solid rgba(212, 175, 55, 0.1);
        position: relative;
    }

    .contact-item {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .hero-image img {
        transform: none !important;
        width: 100%;
        height: auto;
        max-height: 400px;
        margin-top: 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Typewriter ─────────────────────────────────── */
.typewriter-tag {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: blinkCursor 0.75s step-end infinite;
    max-width: 100%;
}

@keyframes blinkCursor {

    0%,
    100% {
        border-color: var(--accent-color);
    }

    50% {
        border-color: transparent;
    }
}

/* Hero content fade-in from left */
.hero-content {
    animation: heroContentEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes heroContentEntrance {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Scroll Reveal ───────────────────────────────────────────────── */
.sr-hidden {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.sr-hidden.reveal-up {
    transform: translateY(40px);
}

.sr-hidden.reveal-left {
    transform: translateX(-50px);
}

.sr-hidden.reveal-right {
    transform: translateX(50px);
}

.sr-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .sr-hidden {
        transition: none;
        opacity: 1;
        transform: none;
    }
}