/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #000000;
    --color-secondary: #333333;
    --color-accent: #666666;
    --color-background: #f8f8f8;
    --color-white: #ffffff;
    --spacing-unit: 1rem;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --font-heading: 'Clash Display', sans-serif;
    --font-hero: 'Switzer', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--color-secondary);
    background-color: var(--color-background);
    font-size: 16px;
}

/* Header and Navigation */
header {
    background-color: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary);
    margin-left: 2.5rem;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

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

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

/* Main content */
main {
    position: relative;
    z-index: 1;
    margin-top: 5rem;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
    opacity: 0.7;
}

/* Hero section */
.hero {
    text-align: left;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(to bottom, var(--color-background), var(--color-white));
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.hero h1 {
    font-family: var(--font-hero);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--color-primary);
    width: 0;
    animation: 
        typing 2s steps(20, end) forwards,
        blink 1s step-end 3 2s,
        hideCursor 0s forwards 5s;
    position: relative;
}

.bird {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c-2 0-4 1-6 3-2 2-3 4-3 6s1 4 3 6c2 2 4 3 6 3s4-1 6-3c2-2 3-4 3-6s-1-4-3-6c-2-2-4-3-6-3z'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0;
    animation: 
        drawBird 0.7s ease 2s forwards,
        wingFlap 0.3s ease 2.3s forwards;
    transform-origin: center;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-summary {
    max-width: 600px;
}

.bio {
    margin-top: 2rem;
}

.bio p:last-child {
    margin-bottom: 0;
}

.hero-image-container {
    position: sticky;
    top: 8rem;
    transition: var(--transition-base);
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Work section */
.work {
    padding-top: 2rem;
    background-color: var(--color-white);
}

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

.work-item {
    transition: var(--transition-base);
    position: relative;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: translateY(0);
}

.work-item:first-child {
    grid-column: span 2;
    height: 600px;
}

.work-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.work-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-background);
    flex-shrink: 0;
    margin: 0;
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: var(--transition-base);
}

.work-item:hover .work-image::after {
    opacity: 1;
}

.work-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.work-item:hover .work-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

.work-content {
    padding: 2rem;
    background-color: var(--color-white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-item h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.work-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.work-description {
    color: var(--color-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.work-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.work-link:hover::after {
    transform: translateX(5px);
}

/* Loading optimization */
.work-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Past Clients section */
.past-clients {
    padding-top: 2rem;
    background-color: var(--color-background);
}

.past-clients h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.clients-grid span {
    color: var(--color-secondary);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.clients-grid span:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Employment history cards */
.employment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.employment-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.employment-logo {
    height: 32px;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.employment-logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left;
    filter: brightness(0);
    opacity: 0.9;
}

.employment-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.employment-role {
    font-weight: 400;
    color: var(--color-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .employment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .employment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .employment-logo {
        height: 28px;
    }
}

/* About section */
.about {
    padding-top: 2rem;
    background-color: var(--color-white);
}

.about h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.bio {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 2rem;
}

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

.bio p:last-child {
    margin-bottom: 0;
}

/* Contact section */
.contact {
    padding-top: 2rem;
    background-color: var(--color-background);
    text-align: center;
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.contact p {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    background-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-summary {
        margin: 0 auto 2rem;
    }

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

    .work-item:first-child {
        grid-column: auto;
        height: auto;
    }

    .work-item {
        height: auto;
    }

    .work-image {
        height: 240px;
    }

    .hero-image-container {
        position: relative;
        top: 0;
        margin: 0 auto;
        max-width: 300px;
    }

    .hero-image {
        max-width: 100%;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
}

/* Animations */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    0%, 100% { border-color: var(--color-primary); }
    50% { border-color: transparent; }
}

@keyframes hideCursor {
    from, to { border-right-color: transparent; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.videos {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.videos h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: var(--transition-base);
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        padding: 5rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .work-item:first-child {
        grid-column: auto;
        height: auto;
    }

    .work-item {
        height: auto;
    }

    .work-image {
        height: 200px;
    }

    .hero-image-container {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .hero-image {
        max-width: 100%;
    }
}

/* Remove bird line animation styles */
.bird-line {
    display: none;
} 
