@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Modern Enterprise Color Palette */
    --bg-base: #f8fafc;
    /* Slate 50 - Very light cool gray/blue for background */
    --bg-surface: #ffffff;
    /* Pure white for cards */
    --text-main: #0f172a;
    /* Slate 900 - Almost black / deep navy */
    --text-muted: #475569;
    /* Slate 600 - Muted text */

    /* User Requested Colors - Refined for Modern Web */
    --brand-blue: #0ea5e9;
    /* Sky 500 - Light vibrant professional blue */
    --brand-blue-light: #e0f2fe;
    /* Sky 100 - Very light blue for subtle backgrounds */
    --brand-red: #e11d48;
    /* Rose 600 - Sophisticated crimson red */
    --brand-red-hover: #be123c;
    /* Rose 700 */

    /* Variables */
    --border-subtle: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

/* --- Navigation --- */
nav {
    position: absolute;
    /* Ensures it stays at the top without following the user */
    top: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: var(--brand-blue);
    border-radius: 6px;
    box-shadow: 2px 2px 0px var(--brand-red);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

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

/* Contact button in nav */
.nav-links a[href="contact.html"] {
    background: var(--brand-red);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links a[href="contact.html"]:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--brand-blue-light) 0%, var(--bg-base) 100%);
}

/* Abstract modern background shapes */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.hero::before {
    width: 400px;
    height: 400px;
    background: var(--brand-blue);
    top: -100px;
    right: -100px;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: var(--brand-blue-light);
    bottom: -150px;
    left: -150px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    color: var(--brand-blue);
}

.hero-content p {
    font-size: clamp(18px, 2vw, 22px);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--brand-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: #0284c7;
    /* Sky 600 */
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-subtle);
    margin-left: 16px;
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-main);
    color: var(--text-main);
}

/* --- General Sections --- */
section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 72px;
}

.section-title span {
    color: var(--brand-red);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

/* --- Contact Form --- */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    background: var(--bg-surface);
    padding: 64px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 32px;
}

.info-item {
    margin-bottom: 24px;
}

.info-item strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px var(--brand-blue-light);
    background: var(--bg-surface);
}

/* --- Footer --- */
footer {
    background: var(--bg-surface);
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 64px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--brand-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    nav {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .hero {
        padding-top: 160px;
    }
}