/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.logo-text {
    font-weight: 600;
}

/* Desktop nav */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
}

.main-nav a:hover {
    color: #2563eb;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #111827;
    display: block;
    margin: 5px 0;
    transition: 0.3s;
}

/* Open state for hamburger */
.nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    padding: 4rem 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.hero h1 span {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: #4b5563;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    border: 1px solid #2563eb;
    color: #2563eb;
}

/* Fixed profile image */
.photo-frame {
    width: 260px;
    height: 260px;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 24px;
    padding: 4px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: #fff;
}

.section h2 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* Contact */
.contact-list {
    list-style: none;
}

/* Footer */
.site-footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Version */
@media (max-width: 768px) {
    
    .nav-toggle {
        display: block;
    }

    /* Hide desktop nav */
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Show nav when opened */
    .main-nav.nav-open {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-photo {
        margin-top: 2rem;
    }
}
