:root {
    --primary: #FFB396;
    --primary-dark: #FF9B7A;
    --primary-light: #FFF0EB;
    --text-dark: #2C3E50;
    --text-gray: #6C7A89;
    --text-light: #95A5A6;
    --bg-light: #FAFAFA;
    --bg-section: #F5F7FA;
    --white: #FFFFFF;
    --border: #E8ECF0;
    --shadow: rgba(44, 62, 80, 0.08);
    --shadow-hover: rgba(44, 62, 80, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-section);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 179, 150, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.nav-desktop {
    display: none;
    gap: 32px;
}

.nav-desktop a {
    font-weight: 500;
    color: var(--text-gray);
}

.nav-desktop a:hover {
    color: var(--primary-dark);
}

.nav-cta {
    display: none;
}

.nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

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

.nav-mobile a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    box-shadow: 0 2px 10px var(--shadow);
}

.hero-badge i {
    color: var(--primary);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.about-grid {
    display: grid;
    gap: 40px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

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

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.tech-tag i {
    color: var(--primary);
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.projects-grid {
    display: grid;
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.project-card[data-hidden=true] {
    display: none;
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--bg-section);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-section) 100%);
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.project-content {
    padding: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tag {
    padding: 4px 10px;
    background: var(--primary-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-dark);
}

.project-link:hover {
    gap: 10px;
}

.services-grid {
    display: grid;
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--white);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
}

.contact-grid {
    display: grid;
    gap: 40px;
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-gray);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.footer-links h4 {
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.project-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
}

.project-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-hero .project-tags {
    justify-content: center;
    margin-bottom: 20px;
}

.project-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.project-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.project-section p,
.project-section li {
    color: var(--text-gray);
}

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

.project-section li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.project-section li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.gallery {
    display: grid;
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-section);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-section) 100%);
}

.gallery-placeholder i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tech-item {
    padding: 16px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.tech-item h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.tech-item p {
    font-weight: 500;
    color: var(--text-dark);
}

.cta-section {
    text-align: center;
    padding: 60px 0;
    background: var(--primary-light);
    border-radius: 20px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--primary-dark);
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .nav-cta {
        display: block;
    }
    
    .nav-mobile-toggle {
        display: none;
    }
    
    .hero {
        padding: 160px 0 100px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
