* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #4f46e5;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --background: #ffffff;
    --background-secondary: #fafafa;
    --background-tertiary: #f5f5f5;
    --border-color: #e5e5e5;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-left: -24px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link {
    text-decoration: none;
    display: block;
    line-height: 0;
    margin-right: auto;
    padding-left: 24px;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

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

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

.nav-links a:hover {
    color: var(--text-secondary);
}

.btn-primary-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.btn-primary-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--background-secondary);
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 140px 0 120px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    color: var(--text-primary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

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

.badge {
    display: inline-block;
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--background);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 19px;
    max-width: 650px;
    margin: 0 auto 70px;
    line-height: 1.7;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.services-grid-centered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: var(--background-secondary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    background: white;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: #000000;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--background-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--text-primary);
}

.project-image {
    width: 100%;
    height: 280px;
    background: var(--background-tertiary);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.project-image iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: 0 0;
    width: 200%;
    height: 200%;
}

.project-image canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.project-info {
    padding: 32px;
}

.project-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--background-tertiary);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--text-secondary);
    transform: translateX(4px);
}

.projects-cta {
    text-align: center;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--primary-color);
    line-height: 1.2;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 28px;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.stat h3 {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image canvas {
    max-width: 100%;
    height: auto;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

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

.contact .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.contact .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Footer */
.footer {
    padding: 50px 0;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-content {
        margin-left: 0;
        padding: 16px 0;
    }

    .logo-link {
        padding-left: 0;
    }

    .logo-img {
        height: 45px;
    }

    .hero {
        padding: 60px 0;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 17px;
        padding: 0 16px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .section-title {
        font-size: 32px;
        letter-spacing: -1px;
        padding: 0 16px;
    }

    .section-subtitle {
        font-size: 16px;
        padding: 0 16px;
    }

    .services-grid,
    .services-grid-centered,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

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

    .about-image {
        order: -1;
    }

    .about-text h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .about-text p {
        font-size: 16px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .logo-img {
        height: 38px;
    }

    .hero {
        padding: 50px 0;
        margin-top: 75px;
    }

    .badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 8px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 15px;
    }

    .about-text h2 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .about-text p {
        font-size: 15px;
    }

    .stat h3 {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 12px 28px;
    }

    .contact {
        padding: 80px 0;
    }
}

