/* CSS Variables - Premium Dark Theme */
:root {
    --bg-main: #121212;
    --bg-alt: #1A1A1A;
    --bg-card: #222222;
    --accent: #E67E22;
    --accent-hover: #D35400;
    --text-main: #F5F5F5;
    --text-muted: #A0A0A0;
    --border: #333333;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, .logo { font-family: var(--font-heading); font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.2; margin-bottom: 40px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
p { color: var(--text-muted); font-weight: 300; }

.section-tag {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.8rem; color: var(--text-main); text-decoration: none; letter-spacing: 1px; z-index: 1001; }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; margin: 0 16px; font-size: 0.9rem; font-weight: 500; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--accent); }
.mobile-phone-link { display: none; }

.nav-contact { z-index: 1001; }
.phone { color: var(--text-main); text-decoration: none; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; border-bottom: 2px solid var(--accent); transition: var(--transition); }
.phone:hover { color: var(--accent); }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1002; }
.hamburger span { width: 28px; height: 2px; background: var(--text-main); transition: var(--transition); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Hero */
.hero {
    height: 100vh;
    background: url('assets/img/photo-1617103996702-96ff29b1c467-da644931.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, 0.7); }
.hero-container { position: relative; z-index: 2; margin-top: 60px; }
.hero-content { max-width: 800px; }
.hero-subtitle { color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; max-width: 650px; }
.hero-btns { display: flex; gap: 20px; }

/* Sections Utility */
section { padding: 120px 0; }
.bg-alt { background-color: var(--bg-alt); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; height: auto; border-radius: 4px; object-fit: cover; aspect-ratio: 4/5; }
.experience-badge { position: absolute; bottom: -30px; right: -30px; background: var(--accent); color: #fff; padding: 40px; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.3; border-radius: 2px; }
.stats { display: flex; gap: 40px; margin-top: 40px; border-top: 1px solid var(--border); padding-top: 40px; }
.stat-item strong { display: block; font-size: 2.5rem; color: var(--text-main); font-family: var(--font-heading); line-height: 1; margin-bottom: 8px; }
.stat-item span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-item { background: var(--bg-card); overflow: hidden; border-radius: 4px; cursor: pointer; position: relative; }
.portfolio-img { height: 350px; overflow: hidden; position: relative; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
/* Overlay to hint it's clickable */
.portfolio-item::after {
    content: '🔍 Увеличить';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 350px;
    background: rgba(230, 126, 34, 0.8);
    color: white; font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: var(--transition); pointer-events: none;
}
.portfolio-item:hover::after { opacity: 1; }
.portfolio-item:hover .portfolio-img img { transform: scale(1.08); }
.portfolio-info { padding: 30px; position: relative; z-index: 2; background: var(--bg-card); }

/* Lightbox Gallery */
.lightbox {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); user-select: none; }
.lightbox-close {
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px;
    cursor: pointer; transition: color 0.3s; z-index: 2001; line-height: 1;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1); border: none; color: white;
    font-size: 24px; padding: 20px; cursor: pointer; transition: var(--transition);
    z-index: 2001; border-radius: 50%; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }


/* Process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.process-card { padding: 40px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; position: relative; transition: var(--transition); }
.process-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.geometric-icon {
    width: 40px; height: 40px; background: var(--bg-main); border: 2px solid var(--accent);
    margin-bottom: 24px; position: relative;
}
.geometric-icon::after { content: ''; position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; background: var(--accent); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { padding: 50px 40px; background: var(--bg-card); border-radius: 4px; transition: var(--transition); }
.service-card.highlight { border: 2px solid var(--accent); transform: scale(1.02); }
.service-card:hover { transform: translateY(-5px); }
.service-card.highlight:hover { transform: scale(1.02) translateY(-5px); }
.service-card .price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-top: 24px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: var(--text-main); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; padding: 24px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; color: var(--accent); font-size: 1.5rem; transition: var(--transition); }
.faq-item.active .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 24px; }

/* Contact Form */
.contact { background: url('assets/img/photo-1503387762-592deb58ef4e-7eab24ac.jpg') center/cover no-repeat; position: relative; }
.contact::before { content: ''; position: absolute; inset: 0; background: rgba(18, 18, 18, 0.9); }
.contact-wrapper { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-details { margin-top: 40px; }
.contact-details p { margin-bottom: 16px; color: var(--text-main); }
.contact-details strong { color: var(--accent); font-family: var(--font-heading); display: inline-block; width: 90px; }

.glass-form { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.05); padding: 50px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.form-group { margin-bottom: 24px; }
input, textarea { width: 100%; padding: 16px 20px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); color: var(--text-main); font-family: var(--font-body); font-size: 1rem; border-radius: 4px; transition: var(--transition); }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(0,0,0,0.4); }
.form-response { margin-top: 20px; font-size: 0.9rem; font-weight: 500; text-align: center; }

/* Footer */
.footer { padding: 60px 0; background: var(--bg-alt); border-top: 1px solid var(--border); font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-end; }
.footer .logo { font-size: 1.5rem; margin-bottom: 16px; display: inline-block; }
.copyright { margin-bottom: 8px; }
.privacy-link { color: var(--text-muted); text-decoration: underline; }
.dev-link { color: var(--text-muted); }
.dev-link a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive / Mobile */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(18, 18, 18, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; align-items: center; padding: 30px 0;
        transform: translateY(-100%); opacity: 0; visibility: hidden;
        transition: var(--transition); border-bottom: 1px solid var(--border);
        z-index: 1000;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links a { margin: 15px 0; font-size: 1.1rem; }
    
    .nav-contact { display: none; }
    .mobile-phone-link { display: block !important; color: var(--accent) !important; font-weight: 700 !important; font-size: 1.3rem !important; margin-top: 30px !important; }

    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .hero-btns { flex-direction: column; }
    .btn-outline { margin-left: 0; }
    .experience-badge { bottom: 0; right: 0; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 30px; }
    
    .lightbox-nav { padding: 15px; width: 50px; height: 50px; font-size: 20px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
