/* Smooth Scroll & Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Apple Theme Color Palette */
:root {
    --bg-primary: #f5f5f7;        /* Subtle Apple light gray background */
    --bg-card: #ffffff;           /* Clean white cards */
    --text-main: #1d1d1f;         /* Deep Apple charcoal text */
    --text-muted: #86868b;        /* Apple silver-gray subtext */
    --apple-blue: #0071e3;        /* Signature Apple interactive blue */
    --apple-blue-hover: #0077ed;
    --border-light: rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Apple-Style Glass Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--apple-blue);
}

/* Section Container Layout */
section {
    padding: 120px 22px 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

/* Typography Hierarchy */
.sub-heading {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 24px;
}

/* Hero Section */
.hero {
    text-align: center;
    background: #000000;
    color: #f5f5f7;
}

.tagline {
    font-size: 1rem;
    color: var(--apple-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    max-width: 800px;
    margin: 0 auto 16px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #86868b;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 12px 22px;
    border-radius: 980px; /* Apple rounded pill buttons */
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary {
    background-color: var(--apple-blue);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--apple-blue-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Services Grid (Liquid Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 32px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.contact-info a {
    color: var(--apple-blue);
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--apple-blue);
}

/* Footer */
footer {
    text-align: center;
    padding: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    background-color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}