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

:root {
    --color-bg: #fafafa;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-accent: #2a2a2a;
    --color-border: #e5e5e5;
    --color-white: #ffffff;
    --font-primary: 'Aptos', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    transition: right var(--transition);
    padding: 100px 48px;
    border-left: 1px solid var(--color-border);
}

.nav.active {
    right: 0;
}

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

.nav-link {
    font-size: 32px;
    font-weight: 400;
    display: block;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-link:hover {
    transform: translateX(8px);
    opacity: 0.7;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 800px;
}

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

.hero-content p {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--color-text-muted);
    max-width: 600px;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 48px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-item {
    cursor: pointer;
    transition: transform var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-4px);
}

.portfolio-image {
    aspect-ratio: 4/3;
    background-color: var(--color-border);
    margin-bottom: 16px;
    overflow: hidden;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* About Section */
.about-content {
    max-width: 700px;
}

.about-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.service-item h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
}

.service-item p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 24px;
    margin-bottom: 32px;
}

.contact-email {
    font-size: 32px;
    font-weight: 500;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 4px;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .nav {
        max-width: 100%;
    }

    .nav-link {
        font-size: 28px;
    }

    .contact-email {
        font-size: 24px;
    }

    .about-text {
        font-size: 18px;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}
