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

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #0066ff;
    --text-gray: #666;
    --light-gray: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    overflow-x: hidden;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.lang-switch {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 1000px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: -2rem auto 4rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-member h4 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
}

.team-member p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Tech Stack */
.tech-stack {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.tech-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.tech-column h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-column ul {
    list-style: none;
}

.tech-column li {
    padding: 0.5rem 0;
    color: var(--text-gray);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-content {
    padding: 2rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin: 3rem 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

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

/* Logo Text Visibility */
.desktop-logo-text {
    display: block;
}

.mobile-logo-text {
    display: none;
}

/* Mobile Header Improvements */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .logo img {
        height: 35px !important;
        width: auto;
    }
    
    .desktop-logo-text {
        display: none;
    }
    
    .mobile-logo-text {
        display: block;
        font-size: 0.9rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .lang-switch {
        margin-right: 0.5rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .mobile-menu-btn {
        margin-left: 0;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        gap: 6px;
    }
    
    .logo img {
        height: 30px !important;
    }
    
    .mobile-logo-text {
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    .lang-switch {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        margin-right: 0.3rem;
    }
    
    .mobile-menu-btn {
        margin-left: 0;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .mobile-logo-text {
        font-size: 0.75rem;
        max-width: 80px;
    }
    
    .logo img {
        height: 28px !important;
    }
}

/* Hidden class for language switching */
.hidden {
    display: none;
}
