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

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
    --color-dark-gray: #1a1a1a;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
}

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

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimize image loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Prevent layout shift */
.hero-background,
.page-hero-background,
.service-image,
.portfolio-image,
.intro-image,
.about-intro-image,
.team-image,
.service-detail-image,
.portfolio-detail-image {
    background-color: #f5f5f5;
    overflow: hidden;
}

/* Optimize rendering */
.hero-background img,
.page-hero-background img {
    will-change: transform;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray);
    position: relative;
    padding-bottom: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-black);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-black);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(1.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
}

.hero-title {
    font-size: clamp(64px, 12vw, 180px);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    color: var(--color-black);
}

.hero-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-black);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.3;
    }
}

/* Statement Section */
.statement {
    padding: 120px 40px;
    background: var(--color-white);
    text-align: center;
}

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

.statement-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    color: var(--color-black);
}

.statement-text {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Intro Section */
.intro {
    padding: 120px 40px;
    background: var(--color-white);
}

.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-content {
    max-width: 500px;
}

.intro-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--color-light-gray);
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray);
    display: block;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    color: var(--color-black);
}

.section-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 30px;
}

.link-button {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.link-button:hover {
    gap: 12px;
}

/* Services Preview */
.services-preview {
    padding: 120px 40px;
    background: var(--color-light-gray);
}

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

.services-header {
    margin-bottom: 80px;
}

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

.service-item {
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--color-light-gray);
}

.service-content {
    padding: 40px;
}

.service-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.service-description {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* Portfolio Preview */
.portfolio-preview {
    padding: 120px 40px;
    background: var(--color-white);
}

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

.portfolio-header {
    margin-bottom: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-item {
    display: block;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.portfolio-item:hover {
    background: var(--color-light-gray);
}

.portfolio-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--color-light-gray);
}

.portfolio-info {
    padding: 40px;
}

.portfolio-category {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    display: block;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

/* CTA Section */
.cta {
    padding: 120px 40px;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

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

.cta-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.cta-text {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 16px;
    font-weight: 500;
    border: 1px solid var(--color-white);
    transition: var(--transition);
}

.cta-button:hover {
    background: transparent;
    color: var(--color-white);
}

/* Page Hero */
.page-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
}

.page-hero-title {
    font-size: clamp(64px, 10vw, 140px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: var(--color-black);
}

.page-hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: var(--color-gray);
}

/* About Intro */
.about-intro {
    padding: 120px 40px;
    background: var(--color-white);
}

.about-intro-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-intro-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--color-light-gray);
}

/* Values */
.values {
    padding: 120px 40px;
    background: var(--color-light-gray);
}

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

.values-header {
    margin-bottom: 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.value-item {
    padding: 60px;
    background: var(--color-white);
}

.value-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.value-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
}

/* Team */
.team {
    padding: 120px 40px;
    background: var(--color-white);
}

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

.team-header {
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--color-light-gray);
    margin-bottom: 20px;
}

.team-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--color-black);
}

.team-role {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-gray);
}

/* Stats */
.stats {
    padding: 120px 40px;
    background: var(--color-black);
    color: var(--color-white);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.8;
}

/* Service Detail */
.service-detail {
    padding: 120px 40px;
    background: var(--color-white);
}

.service-detail.reverse {
    background: var(--color-light-gray);
}

.service-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail.reverse .service-detail-container {
    direction: rtl;
}

.service-detail.reverse .service-detail-container > * {
    direction: ltr;
}

.service-detail-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--color-light-gray);
}

.service-number {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 20px;
}

.service-detail-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    color: var(--color-black);
}

.service-detail-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 30px;
}

.service-features {
    list-style: none;
    margin-bottom: 40px;
}

.service-features li {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-gray);
    line-height: 2;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-black);
}

/* Portfolio Detail */
.portfolio-detail {
    padding: 120px 40px;
    background: var(--color-white);
}

.portfolio-detail.reverse {
    background: var(--color-light-gray);
}

.portfolio-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.portfolio-detail.reverse .portfolio-detail-container {
    direction: rtl;
}

.portfolio-detail.reverse .portfolio-detail-container > * {
    direction: ltr;
}

.portfolio-detail-image {
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: var(--color-light-gray);
    position: sticky;
    top: 100px;
}

.portfolio-detail-content {
    max-width: 500px;
}

.portfolio-detail-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    color: var(--color-black);
}

.portfolio-detail-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 40px;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 36px;
    font-weight: 200;
    color: var(--color-black);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-gray);
}

.portfolio-details h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 30px;
    color: var(--color-black);
}

.portfolio-details h3:first-child {
    margin-top: 0;
}

.portfolio-details p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    padding: 120px 40px;
    background: var(--color-white);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form-wrapper,
.contact-info-wrapper {
    max-width: 500px;
}

.contact-form {
    margin-top: 40px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-family: var(--font-primary);
    background: transparent;
    color: var(--color-black);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-black);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    margin-top: 40px;
}

.info-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--color-black);
}

.info-item p,
.info-item a {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-gray);
    line-height: 1.8;
}

.info-item a:hover {
    color: var(--color-black);
}

/* Footer */
.footer {
    padding: 80px 40px 40px;
    background: var(--color-black);
    color: var(--color-white);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.footer-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-link {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-white);
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .intro-container,
    .about-intro-container,
    .service-detail-container,
    .portfolio-detail-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .service-detail.reverse .service-detail-container,
    .portfolio-detail.reverse .portfolio-detail-container {
        direction: ltr;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-detail-image {
        position: static;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

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

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

    .nav-links {
        gap: 20px;
    }

    .hero,
    .page-hero {
        height: 80vh;
    }

    .statement,
    .intro,
    .services-preview,
    .portfolio-preview,
    .about-intro,
    .values,
    .team,
    .stats,
    .service-detail,
    .portfolio-detail,
    .contact-section,
    .cta {
        padding: 80px 20px;
    }

    .team-grid,
    .stats-container {
        grid-template-columns: 1fr;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 15px;
    }

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

    .portfolio-image,
    .service-image {
        height: 300px;
    }
}

