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

/* Base Styles */
body {
    background: #faf8f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    color: #4a4a4a;
    overflow-x: hidden;
}

/* Canvas */
#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

.content {
    text-align: center;
    z-index: 10;
    color: #4a4a4a;
}

h1 {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(255,255,255,0.8);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.85;
    text-shadow: 0 1px 10px rgba(255,255,255,0.8);
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a4a4a;
    transition: all 0.3s ease;
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 248, 246, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-overlay nav {
    text-align: center;
}

.menu-overlay nav a {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: #4a4a4a;
    text-decoration: none;
    margin: 1.5rem 0;
    transition: opacity 0.3s ease;
}

.menu-overlay nav a:hover {
    opacity: 0.6;
}

/* Sections */
section {
    position: relative;
    min-height: 100vh;
    padding: 6rem 2rem;
    background: #faf8f6;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 900px;
    width: 100%;
}

#contact .section-content {
    text-align: center;
}

section h2 {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 2rem;
    color: #4a4a4a;
    letter-spacing: -0.02em;
}

section p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #5a5a5a;
    font-weight: 300;
}

/* Services */
.services-list {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid rgba(74, 74, 74, 0.15);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: rgba(74, 74, 74, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #4a4a4a;
    letter-spacing: -0.01em;
}

.service-item p {
    font-size: 1.1rem;
    color: #6a6a6a;
    line-height: 1.6;
}

/* Contact Button */
.contact-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid #4a4a4a;
    color: #4a4a4a;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.contact-button:hover {
    background: #4a4a4a;
    color: #faf8f6;
}

/* Portfolio Section */
#portfolio {
    min-height: 100vh;
    padding: 6rem 0 0 0;
}

#portfolio .section-content {
    max-width: 100%;
}

#portfolio h2 {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.portfolio-carousel {
    margin-top: 0;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.portfolio-item {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.portfolio-item.active {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
}

.portfolio-image-wrapper:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.portfolio-link:hover .portfolio-image {
    filter: grayscale(80%);
    transform: scale(1.05);
}

/* Portfolio Video Styles */
.portfolio-video {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.portfolio-link:hover .portfolio-video {
    filter: grayscale(80%);
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    opacity: 1;
    transition: background 0.4s ease;
}

.portfolio-link:hover .portfolio-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.portfolio-info {
    text-align: center;
    color: #ffffff;
}

.portfolio-info h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.portfolio-link:hover .portfolio-info h3 {
    transform: translateY(-5px);
}

.portfolio-tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.portfolio-tech {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(74, 74, 74, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(74, 74, 74, 0.6);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section p {
        font-size: 1.1rem;
    }
    
    .services-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
    
    .service-item p {
        font-size: 1rem;
    }
    
    .menu-overlay nav a {
        font-size: 2rem;
        margin: 1rem 0;
    }
    
    .hamburger {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .portfolio-overlay {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-info h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-tagline {
        font-size: 1.05rem;
    }
    
    .portfolio-tech {
        font-size: 0.9rem;
    }
    
    .portfolio-video {
        height: 50vh;
    }
    
    .portfolio-image {
        height: 50vh;
    }
}
