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

:root {
    --bg-light: #FAFAFA;
    --bg-dark: #111111;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent: #0066FF;
    --border: #E5E5E5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(250, 250, 250, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Page Views */
.page-view {
    display: none;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 3rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    top: 10%;
    left: -10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.floating-element-2 {
    bottom: 10%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

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

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

/* Featured Work Section */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border);
    background: white;
}

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.work-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

.work-info {
    padding: 1.75rem;
}

.work-info h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.work-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.938rem;
    line-height: 1.6;
}

.work-meta {
    color: var(--text-tertiary);
    font-size: 0.813rem;
}

.coming-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 500;
    z-index: 10;
}

.see-more {
    text-align: center;
    margin-top: 4rem;
}

/* Companies Section */
.companies-section {
    background: white;
    padding: 6rem 3rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.companies-header {
    text-align: center;
    margin-bottom: 4rem;
}

.companies-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.company-logo {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    cursor: pointer;
}

.company-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.company-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.company-name {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.813rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.company-name::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--text-primary);
}

.company-logo:hover .company-name {
    opacity: 1;
    bottom: -50px;
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 3rem 6rem;
}

.about-header {
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.medium-section {
    margin-top: 5rem;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.medium-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.medium-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.skill-item {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 8rem 3rem;
}

.contact h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.contact p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Case Study Page */
.case-study {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 3rem 6rem;
}

.case-study-header {
    margin-bottom: 4rem;
    text-align: center;
}

.case-study-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.case-study-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 0.813rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.case-study-content {
    margin-top: 4rem;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.case-study-image {
    width: 100%;
    border-radius: 12px;
    margin: 3rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: var(--text-primary);
    transform: translateX(-5px);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-image {
        order: -1;
    }

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

    .companies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .case-study {
        padding: 6rem 1.5rem 4rem;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }
}