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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background-color: #ffffff;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section-spacing {
    padding: 6rem 0;
}

@media (min-width: 640px) {
    .section-spacing {
        padding: 8rem 0;
    }
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 3rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light {
    background-color: #f8fafc;
}

.bg-white {
    background-color: #ffffff;
}

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.logo-img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

.nav-links {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-left: 2.5rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background-color: #3b82f6;
}

.nav-mobile {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

.mobile-menu-btn {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 1rem;
    height: 1rem;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #0f172a;
    transition: 0.3s;
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 0.5rem;
    gap: 0.25rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.mobile-nav-link:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

/* Intro Section */
.intro-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.three-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#threeCanvas {
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 1rem;
}

.intro-kicker {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 1rem;
}

.intro-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .intro-title {
        font-size: 4rem;
    }
}

.intro-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 1200px;
    margin: 0 auto;
}

/* Projects Section */
.projects-container {
    max-width: 1280px;
    margin: 0 auto;
}

.project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.2s;
}

.project-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.project-period {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.period-badge {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
}

.motto-badge {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #64748b;
    background: #f8fafc;
}

.project-content {
    padding: 1.5rem;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-item {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.project-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.project-title {
    font-weight: 500;
    color: #0f172a;
    line-height: 1.6;
}

.project-type {
    font-weight: 300;
    color: rgba(100, 116, 139, 0.7);
}

.project-description {
    color: #64748b;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 1rem;
    height: 1rem;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 4px solid #ffffff;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
}

@media (min-width: 1024px) {
    .timeline-dot {
        display: block;
    }
}

.timeline-content {
    width: 100%;
}

@media (min-width: 1024px) {
    .timeline-content {
        width: 41.666667%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
        padding-left: 2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: auto;
        padding-right: 2rem;
    }
}

.timeline-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}

.timeline-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-year-company {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .timeline-item:nth-child(even) .timeline-year-company {
        align-items: flex-end;
    }
    
    .timeline-item:nth-child(odd) .timeline-year-company {
        align-items: flex-start;
    }
}

.timeline-year {
    font-size: 1.875rem;
    font-weight: 700;
    color: #3b82f6;
}

.company-badge {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.875rem;
    width: fit-content;
    background: #f8fafc;
}

.timeline-content-body {
    padding: 1.5rem;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-event {
    border-left: 4px solid rgba(59, 130, 246, 0.2);
    padding-left: 1rem;
}

@media (min-width: 1024px) {
    .timeline-item:nth-child(even) .timeline-event {
        border-left: none;
        border-right: 4px solid rgba(59, 130, 246, 0.2);
        padding-left: 0;
        padding-right: 1rem;
        text-align: right;
    }
}

.event-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #64748b;
}

/* Clients Section */
.marquee-container {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6rem;
    z-index: 10;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
}

@media (min-width: 768px) {
    .marquee-item {
        padding: 0 3rem;
    }
}

.marquee-logo {
    height: 3rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .marquee-logo {
        height: 4rem;
    }
}

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

.marquee-separator {
    margin: 0 2rem;
    color: rgba(100, 116, 139, 0.3);
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .marquee-separator {
        margin: 0 3rem;
    }
}

.clients-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.client-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.client-logo {
    height: 2rem;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .client-logo {
        height: 2.5rem;
    }
}

.client-logo:hover {
    filter: grayscale(0%);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    color: #3b82f6;
}

/* Footer */
.footer {
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: #64748b;
}

/* Responsive Utilities */
@media (max-width: 767px) {
    .section-spacing {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
}
