/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --bg: #ffffff;
    --alt-bg: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ===== Navbar ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    transition: box-shadow .3s;
}

nav.scrolled {
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text) !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color .2s;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
}

/* ===== Hero / Splash ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fefce8 100%);
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: .75rem;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    color: var(--text);
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

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

.btn-secondary {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: #d97706;
    border-color: #d97706;
}

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ===== Sections ===== */
.section {
    padding: 6rem 2rem;
}

.alt-bg {
    background: var(--alt-bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: .5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-card {
    background: var(--bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.about-card h3 {
    margin-bottom: 1rem;
}

.about-card ul {
    list-style: none;
}

.about-card li {
    padding: .5rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-light);
}

.about-card li:last-child {
    border-bottom: none;
}

/* ===== Project Cards ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: .75rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: .95rem;
}

.card-link {
    font-weight: 600;
    font-size: .9rem;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.contact-form label {
    font-weight: 600;
    font-size: .9rem;
}

.contact-form input,
.contact-form textarea {
    padding: .75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: .75rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--text);
    color: #94a3b8;
    font-size: .9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: var(--bg);
        width: 220px;
        height: calc(100vh - 60px);
        padding: 2rem;
        gap: 1.5rem;
        transition: right .3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        right: 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
