/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0b0e;
    color: #f0f0f5;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== GLASS HEADER ===== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    transition: 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 180, 255, 0.15);
}

.logo-360 {
    color: #6ec8ff;
    text-shadow: 0 0 20px rgba(80, 200, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6ec8ff;
    transition: 0.3s;
    box-shadow: 0 0 12px #6ec8ff;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out;
    opacity: 0;
    will-change: opacity;
}

.slider-bg.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 24px;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 60px;
    text-decoration: none;
    transition: 0.4s;
    box-shadow: 0 0 30px rgba(80, 200, 255, 0.1);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: rgba(110, 200, 255, 0.2);
    border-color: #6ec8ff;
    box-shadow: 0 0 50px rgba(80, 200, 255, 0.25);
    transform: scale(1.02);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    color: #fff;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 12px auto 0;
    background: #6ec8ff;
    border-radius: 4px;
    box-shadow: 0 0 20px #6ec8ff;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #16161e;
    transition: 0.4s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-card:hover {
    transform: scale(1.03) translateY(-6px);
    border-color: rgba(110, 200, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(80, 200, 255, 0.05);
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.portfolio-card:hover .card-image {
    filter: brightness(1.1) saturate(1.05);
}

.card-content {
    padding: 22px 24px 28px;
    background: rgba(12, 12, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6ec8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.card-btn i {
    transition: 0.3s;
}

.card-btn:hover {
    color: #a8ddff;
    border-bottom-color: #6ec8ff;
}

.card-btn:hover i {
    transform: translateX(6px);
}

/* ===== TECH SECTION ===== */
.tech {
    background: linear-gradient(180deg, #0b0b0e 0%, #12121a 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    padding: 40px 30px;
    border-radius: 28px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 200, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tech-icon {
    font-size: 2.6rem;
    color: #6ec8ff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(80, 200, 255, 0.2);
}

.tech-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Glassmorphism for tech cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== FOOTER ===== */
.footer {
    background: #07070b;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.4s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.social-btn i {
    font-size: 1.3rem;
}

.social-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
    box-shadow: 0 0 40px rgba(0, 136, 204, 0.15);
}

.social-btn.avito:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
}

.social-btn.vk:hover {
    background: rgba(0, 119, 255, 0.15);
    border-color: #0077ff;
    box-shadow: 0 0 40px rgba(0, 119, 255, 0.1);
}

.footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .portfolio-grid, .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 30px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .portfolio-grid, .tech-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .section {
        padding: 56px 0;
    }

    .card-image {
        height: 190px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}