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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Header styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 40px 0 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.main-header.scrolled .logo a {
    color: #1a1a1a;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.main-header.scrolled .nav-link {
    color: #1a1a1a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

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

.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

.lang-btn {
    background: none;
    border: 1px solid #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    color: #1a1a1a;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #1a1a1a;
    color: white;
}

.lang-btn:not(.active):hover {
    background: #1a1a1a;
    color: white;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    background: #ffffff;
}

.hero-content {
    max-width: 700px;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    color: #666;
    font-weight: 400;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #1a1a1a;
}

.cta-button:hover {
    background: transparent;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* Section styles */
section {
    padding: 150px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 80px;
    text-align: left;
    color: #1a1a1a;
    line-height: 1.1;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-image {
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-image {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.project-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.service-card {
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #d6d6d6;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* About section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Contact section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-email {
    display: inline-block;
    font-size: 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    margin: 20px 0;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.contact-email::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.contact-email:hover {
    color: #007acc;
}

.contact-email:hover::after {
    transform: translateX(5px);
}

.contact-location {
    font-size: 1.1rem;
    color: #666;
    margin-top: 40px;
}

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    text-align: left;
    color: #666;
    border-top: 1px solid #eaeaea;
    margin-top: 100px;
}

/* Blog section styles */
.blog-section {
    padding: 150px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.blog-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafafa;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #d6d6d6;
}

.blog-image {
    height: 250px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content {
    padding: 30px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.blog-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #007acc;
}

.read-more:hover::after {
    transform: translateX(5px);
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.category {
    background: #eaeaea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Blog post page styles */
.blog-post {
    padding: 150px 0 50px;
}

.blog-post-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 60px 0 25px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

/* Custom cursor elements */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(2);
}

.cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 2000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .hero {
        padding: 200px 0 100px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .section-title {
        text-align: center;
    }
    
    .projects-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-image {
        min-height: 300px;
        height: 50vh;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
    }
}