:root {
    /* Color Palette */
    --primary: #22223B;
    /* Deep Navy */
    --accent-green: #59CD90;
    /* Fresh Green */
    --accent-blue: #3FA7D6;
    /* Soft Blue */
    --muted-taupe: #C9ADA7;
    /* Warm Taupe */
    --cream: #F8F5F2;
    /* Lighter Cream for modern cleaner look */
    --white: #ffffff;
    --text-dark: #22223B;
    --text-muted: #6C6C85;
    /* Softer muted text */

    /* System Variables */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-max: 1140px;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(34, 34, 59, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(34, 34, 59, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(34, 34, 59, 0.15);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

ul {
    list-style: none;
}

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

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

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

/* Typography Refinements */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Tighter letter spacing for modern feel */
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Button Refinements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #4ABF82;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(89, 205, 144, 0.3);
}

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

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

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.w-100 {
    width: 100%;
}

/* Navigation - Modern Glass */
.header {
    background: rgba(34, 34, 59, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    display: flex;
    /* Allow image alignment */
    align-items: center;
}

.logo-link {
    display: inline-block;
    line-height: 0;
    /* Remove extra space for images */
}

.logo-img {
    height: 50px;
    /* Adjustable base height */
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    /* Make white like footer */
}

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

/* Footer specific logo adjustment if needed */
.footer-logo-img {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Make it white for dark footer if needed, or remove if using colored logo */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.85rem;
    /* Slightly smaller for elegance */
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Component Spacing */
.section-spacing {
    padding: 5rem 0;
    /* Tightened from 6rem */
}

.mt-large {
    margin-top: 2.5rem;
}

/* Hero Section - Index */
#home.hero {
    background: linear-gradient(rgba(34, 34, 59, 0.9), rgba(34, 34, 59, 0.8)), url('AdobeStock_867318885.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    /* Full screen feel */
    display: flex;
    align-items: center;
    padding: 0;
    /* Reset */
    padding-top: 80px;
    /* Header offset */
    text-align: left;
    /* Left justify */
}

/* Secondary Hero - Other Pages */
.hero.secondary-hero {
    background: linear-gradient(rgba(34, 34, 59, 0.85), rgba(34, 34, 59, 0.85)), url('AdobeStock_867318885.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Add a subtle pattern to secondary hero */
.hero.secondary-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-text h1 {
    font-size: 3.5rem;
    /* Tighter than 5rem */
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-subtext {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
    /* Removed auto margins to allow left align on home, centered on others via utility */
}

/* Specific alignment overrides */
#home .hero-subtext {
    margin-left: 0;
}

.text-center .hero-subtext {
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Default alignment */
}

.text-center .hero-btns {
    justify-content: center;
}

#home .hero-content {
    display: block;
    /* Stack content for cleaner look or keep grid if image exists */
    width: 100%;
}

#home .hero-text {
    max-width: 800px;
    margin-left: 0;
    /* Left align */
}

/* Circular Grid / Service Summary */
.circular-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    /* Spacious gap */
    margin-top: 3rem;
}

.circular-card {
    text-align: center;
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    /* Soft square */
    box-shadow: var(--shadow-sm);
    flex: 0 1 240px;
    /* Fixed width basis */
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.circular-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.circular-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 1.5rem;
    background: var(--cream);
    padding: 15px;
}

.circular-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0;
}

/* Alternating Blocks - Services Page Flow */
.alternating-blocks {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    /* For the line */
}

/* Connecting Line */
.alternating-blocks::before {
    content: '';
    position: absolute;
    top: 5rem;
    bottom: 5rem;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-green), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.alt-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    /* Wide gap for the line */
    margin-bottom: 6rem;
    position: relative;
}

/* Dot on the line */
.alt-block::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--accent-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.8);
    /* White halo */
}

.alt-block:last-child {
    margin-bottom: 0;
}

.alt-block:nth-child(even) {
    direction: rtl;
}

.alt-block:nth-child(even) .text-content {
    direction: ltr;
}

.alt-block .text-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.alt-block .text-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.alt-block .alt-image img {
    width: 300px;
    height: 300px;
    /* Enforce square ratio for perfect circle */
    object-fit: contain;
    /* Ensure image isn't distorted */
    margin: 0 auto;
    display: block;
    border-radius: 50%;
    /* Circular */
    background: var(--cream);
    /* Match home page card style */
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
    /* Above line */
}

.alt-block:hover .alt-image img {
    transform: scale(1.02);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Uneven split */
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-form-side h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    /* Larger touch area */
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #fdfdfd;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(63, 167, 214, 0.1);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.footer-contact h4 {
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Little line under section title */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-green);
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile for now */
    .menu-toggle {
        display: block;
    }

    /* Assume JS toggles */

    /* Force grid stacking */
    .about-grid,
    .contact-grid,
    .alt-block {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .alt-block:nth-child(even) {
        direction: ltr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}