/* CSS Reset and Variables */
:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;

    --font-main: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --container-width: 1200px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-color);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.9);
    /* More opaque for readability */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

#navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1002;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

nav a:hover {
    color: var(--text-primary);
}

nav .btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 3px;
}

/* Hamburger Animation */
.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #e0f2fe;
    color: var(--accent-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.item-details {
    padding: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    background-color: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.form-group input {
    min-height: 52px;
    /* Force consistent height for all inputs including date on iOS */
}

/* Fix specifically for date input on mobile */
.form-group input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.full-width {
    width: 100%;
}

/* WhatsApp Button */
.booking-form .btn-primary {
    background-color: #25D366;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    /* Match label size */
}

.booking-form .btn-primary:hover {
    background-color: #128C7E;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    #navbar .container {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Nav */
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        padding-top: var(--nav-height);
        z-index: 1001;
        /* Behind hamburger but above content */
        display: flex;
    }

    #nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    nav a {
        font-size: 1.5rem;
    }

    nav .btn-primary {
        font-size: 1.25rem;
        width: auto;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}