/* ============================================
   VARIABLES
   ============================================ */
:root {
    --color-bg-dark: #0a0a12;
    --color-bg-secondary: #12121f;
    --color-bg-card: #1a1a2e;
    --color-text-light: #f0f0f5;
    --color-text-muted: #94a3b8;
    --color-accent-blue: #6366f1;
    --color-accent-purple: #8b5cf6;
    --color-accent-pink: #ec4899;
    --color-accent-cyan: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {

    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100%;
    /* width: 100%; */
    display: flex;
    flex-direction: column;
}

/* ============================================
   CURSOR
   ============================================ */


.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.3s;
    display: none;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--color-accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    display: none;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    border-color: var(--color-accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.cursor.click {
    width: 15px;
    height: 15px;
}

/* ============================================
   BACKGROUND
   ============================================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-blue);
    top: -100px;
    left: -100px;
    animation: float-orb 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-purple);
    bottom: -200px;
    right: -200px;
    animation: float-orb 20s ease-in-out infinite reverse;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* padding: 20px 0; */
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    width: 99%;
    margin: 0;
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 18, 0.95);
}

.header .container {
    width: 99%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;

}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    transition: width 0.3s;
}

.logo:hover::after {
    width: 100%;
}

/* Navigation */
.desktop-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.desktop-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.desktop-nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-blue);
    transition: width 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-text-light);
}

.desktop-nav a:hover::before,
.desktop-nav a.active::before {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 40px 40px;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid var(--glass-border);
    transition: right 0.4s;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav a:hover {
    background: var(--glass-bg);
    color: var(--color-accent-blue);
}

.mobile-nav a i {
    color: var(--color-accent-blue);
    width: 30px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent-blue);
    background: var(--glass-bg);
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 90px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 2px;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.tech-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-1 { width: 300px; height: 300px; animation: rotate 20s linear infinite; }
.orbit-ring-2 { width: 450px; height: 450px; animation: rotate-reverse 30s linear infinite; }
.orbit-ring-3 { width: 600px; height: 600px; animation: rotate 40s linear infinite; }

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent-purple);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 3px solid var(--color-accent-blue);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-content h1 span {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter {
    font-size: 1.2rem;
    color: var(--color-accent-blue);
    margin-bottom: 20px;
    min-height: 30px;
}

.hero-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-stack {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

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

.tech-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
}

.tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent-purple);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--color-accent-blue);
    transform: translateY(-2px);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn-cta {
    background: white;
    color: var(--color-accent-blue);
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.2);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding-top: 140px;
    padding-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image {
    width: 400px;
    height: 400px;
    border-radius: 30px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.about-image-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    top: 20px;
    left: 20px;
    z-index: 1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30px; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 30px;
    z-index: 3;
    text-align: center;
    animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.exp-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-content h1 span {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Timeline */
.timeline-section {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent-blue), var(--color-accent-purple));
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-accent-blue);
    border-radius: 50%;
    top: 30px;
    box-shadow: 0 0 20px var(--color-accent-blue);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -40px;
    background: var(--color-accent-purple);
    box-shadow: 0 0 20px var(--color-accent-purple);
}

.timeline-date {
    color: var(--color-accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category h3 i {
    color: var(--color-accent-blue);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-bar {
    height: 8px;
    background: var(--color-bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-hero {
    padding-top: 140px;
    text-align: center;
}

.projects-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-hero p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    color: white;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow);
}

.project-card.hidden {
    display: none;
}

.project-slider {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--color-bg-card);
}

.slider-container {
    display: flex;
    transition: transform 0.5s;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--color-accent-blue);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info > p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-accent-blue);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--color-accent-blue);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-nav.prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-hero {
    padding-top: 140px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-hero p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.tab-btn {
    padding: 15px 35px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-text-light);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow);
}

.price-card.popular {
    border-color: var(--color-accent-purple);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-pink));
    color: white;
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.price-header {
    margin-bottom: 30px;
    text-align: center;
}

.price-category {
    font-size: 0.9rem;
    color: var(--color-accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.price-header > p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.price-features {
    list-style: none;
    margin-bottom: 30px;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features li i {
    color: var(--color-accent-blue);
}

.price-features li.not-included {
    opacity: 0.5;
}

.price-features li.not-included i {
    color: var(--color-text-muted);
}

.price-card .btn {
    width: 100%;
    justify-content: center;
}


/* FAQ */

.faq-section {
    margin-top: 80px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item.open {
    border-color: var(--color-accent-blue);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.08);
}

.faq-item.open .faq-question {
    color: var(--color-accent-blue);
}

.faq-question i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-accent-blue);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(-10px);
    transition: 
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease-out 0.1s,
        transform 0.4s ease-out 0.1s,
        padding 0.4s ease;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 5px 30px 25px;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero {
    padding-top: 140px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-categories .category {
    padding: 10px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.blog-categories .category:hover,
.blog-categories .category.active {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    color: white;
    border-color: transparent;
}

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

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow);
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.blog-meta i {
    color: var(--color-accent-blue);
    margin-right: 5px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content > p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--color-accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.blog-link:hover {
    gap: 12px;
}

.newsletter {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    margin-top: 80px;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter > p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--color-text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--color-accent-blue);
}

.newsletter-form input::placeholder {
    color: var(--color-text-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
    padding-top: 140px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.contact-method:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-method a {
    color: var(--color-accent-blue);
    text-decoration: none;
}

.contact-method > div > p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.social-large {
    margin-top: 30px;
}

.social-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 600;
    transition: var(--transition);
}

.social-big.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.social-big i {
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent-blue);
}

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

.submit-btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 30px;
    margin: 0;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--color-bg-secondary);
    position: relative;
    z-index: 10;
    /* flex-shrink: 0; */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: transparent;
    color: white;
}

.footer > p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}



/* ============================================
   KWORK BADGE
   ============================================ */
.kwork-badge {
    background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(238,90,111,0.05));
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.kwork-badge:hover {
    border-color: rgba(255,107,107,0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.15);
}

.kwork-badge i {
    color: #ff6b6b;
    font-size: 1.6rem;
}

.kwork-badge p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.kwork-badge a {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kwork-badge a:hover {
    gap: 10px;
}

/* ============================================
   CUSTOM SELECT
   ============================================ */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    width: 100%;
    padding: 15px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.select-trigger:hover {
    border-color: var(--color-accent-blue);
    background: rgba(99, 102, 241, 0.05);
}

.custom-select.open .select-trigger {
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.select-trigger i {
    color: var(--color-accent-blue);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .select-trigger i {
    transform: rotate(180deg);
}

.select-placeholder {
    color: var(--color-text-muted);
}

.select-trigger.selected .select-placeholder {
    color: var(--color-text-light);
}

/* Выпадающий список */
.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.custom-select.open .select-options {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px;
}

/* Опции */
.option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--color-text-light);
}

.option:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.option-icon {
    font-size: 1.3rem;
    filter: grayscale(0.3);
    transition: filter 0.2s;
}

.option:hover .option-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Скролл внутри списка */
.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: transparent;
}

.select-options::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

/* Firefox fix */
@-moz-document url-prefix() {
    select {
        background-image: none;
        text-indent: 0;
        text-overflow: '';
    }
}


/* Дополнительные услуги - адаптивный дизайн */
.additional-services-section {
    margin: 100px 0;
    padding: 60px 0;
}



.section-subtitle {
    text-align: center;
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.service-item {
    background: linear-gradient(145deg, #1e1e2e 0%, #252538 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(99, 102, 241, 0.1);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.service-content h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.service-price {
    color: #6366f1;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-desc {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.additional-services-note {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.additional-services-note i {
    color: #6366f1;
    font-size: 24px;
    flex-shrink: 0;
}

.additional-services-note p {
    color: #c7c7c7;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   VIDEO IN PROJECT SLIDERS - ADAPTIVE
   ============================================ */

/* Базовые стили для видео в слайдах */
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--color-bg-card);
}

/* Скрываем стандартные контролы, показываем при наведении/касании */
.slide video::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide:hover video::-webkit-media-controls,
.slide video.playing::-webkit-media-controls {
    opacity: 1;
}


@media (max-width: 768px) and (orientation: landscape) {
    .project-slider {
        height: 250px;
    }
    
    /* Разворачиваем видео на весь экран при клике */
    .slide video.fullscreen-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999;
        object-fit: contain;
        background: black;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {


    .additional-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    .desktop-nav {
        display: none;
    }

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

    .mobile-nav {
        display: flex;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image,
    .about-image-bg {
        width: 300px;
        height: 300px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-content::after {
        left: -40px !important;
        right: auto !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .price-card.popular {
        transform: scale(1);
        order: -1;
    }

    .price-card.popular:hover {
        transform: translateY(-10px);
    }

    .popular-badge {
        right: -20px;
        font-size: 0.7rem;
        padding: 6px 30px;
    }
}

@media (max-width: 768px) {
    /* Контейнер слайдера на мобильных */
    .project-slider {
        height: 200px; /* Фиксированная высота для консистентности */
        position: relative;
    }
    
    /* Видео адаптируется под контейнер */
    .slide video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* или contain, если нужно показать всё видео */
        object-position: center;
    }
    
    /* Показываем контролы всегда на мобильных для удобства */
    .slide video::-webkit-media-controls {
        opacity: 1 !important;
    }
    
    /* Увеличиваем размер контролов для пальцев */
    .slide video::-webkit-media-controls-panel {
        padding: 0 10px;
    }
    
    /* Кнопка play/pause больше */
    .slide video::-webkit-media-controls-play-button {
        transform: scale(1.3);
    }
    
    /* Полоса прокрутки толще */
    .slide video::-webkit-media-controls-timeline {
        height: 8px;
        margin: 0 10px;
    }
    
    /* Полноэкранный режим по тапу */
    .slide video {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
    
    /* Индикатор "видео" поверх превью */
    .slide:has(video)::before {
        content: '\f04b'; /* fa-play */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        z-index: 2;
        pointer-events: none;
        backdrop-filter: blur(4px);
    }
    
    /* Скрываем индикатор когда видео играет */
    .slide video.playing + ::before,
    .slide:has(video.playing)::before {
        display: none;
    }
    .additional-services-section {
        margin: 60px 0;
        padding: 40px 0;
    }
    
    .additional-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-item {
        padding: 25px 20px;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .additional-services-note {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .section-title {
        font-size: 2rem;
        display: block;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: row;
        gap: 20px;
    }

    .about-image,
    .about-image-bg {
        width: 250px;
        height: 250px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .pricing-tabs,
    .blog-categories {
        gap: 10px;
    }

    .tab-btn,
    .blog-categories .category {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .newsletter {
        padding: 40px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        display: block;
    }
}
@media (max-width: 480px) {
    .project-slider {
        height: 180px;
    }
    
    /* Ещё больше контролы для пальцев */
    .slide video::-webkit-media-controls-play-button {
        transform: scale(1.5);
    }
    
    /* Индикатор видео меньше */
    .slide:has(video)::before {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 10;

    }
    
    .service-icon {
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    html {
        font-size: 14px;
    }
    
    body {
        margin: 0;
        width: 100%;
        min-width: 320px;
        overflow-x: hidden;
    }
    main {
        width: 100%;
        position: relative;

        flex: 1 0 auto;

    }
    .container {
        margin: 0;
        padding: 0 16px;
        max-width: 100%;
    }

    
    /* Header */
    .header {
        padding: 12px 0;
        width: 99%;
        margin: 0;

    }
    
    .header .container {
        padding: 0 16px;
        width: 100%;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.2rem;
        padding: 6px;
    }
    
    .mobile-nav {
        width: 85%;
        max-width: 300px;
        padding: 70px 16px 20px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
        text-align: center;

        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: static !important;
    }
    
    .section-title::after {
        width: 40px;
        height: 3px;
        bottom: -10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        padding: 0 12px;
    }
    
    .hero-content {
        padding: 24px 16px;
        border-radius: 20px;
        width: 100%;
    }
    
    .hero-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .typewriter {
        font-size: 0.9rem;
        min-height: 20px;
        margin-bottom: 12px;
    }
    
    .hero-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stat {
        padding: 10px 4px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Feature Cards */
    .features-grid {
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Tech Stack */
    .tech-grid {
        gap: 12px;
    }
    
    .tech-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .tech-card h3 {
        font-size: 1rem;
        margin-bottom: 14px;
    }
    
    .tech-tags {
        gap: 6px;
    }
    
    .tech-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    /* CTA */
    .cta {
        padding: 48px 0;
    }
    
    .cta h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .cta p {
        font-size: 0.9rem;
        margin-bottom: 24px;
        padding: 0 20px;
    }
    
    .btn-cta {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    /* About Page */
    .about-hero {
        padding-top: 80px;
        padding-bottom: 32px;
    }
    
    .about-grid {
        gap: 32px;
    }
    
    .about-image,
    .about-image-bg {
        width: 220px;
        height: 220px;
        border-radius: 20px;
    }
    
    .about-image-bg {
        top: 10px;
        left: 10px;
    }
    
    .experience-badge {
        padding: 12px 16px;
        border-radius: 12px;
        right: 10px;
        bottom: -5px;
    }
    
    .exp-number {
        font-size: 1.6rem;
    }
    
    .exp-label {
        font-size: 0.7rem;
    }
    
    .about-content h1 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
    
    .about-text {
        font-size: 0.85rem;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 24px;
    }
    
    .stat-box {
        padding: 12px 4px;
        border-radius: 12px;
    }
    
    .stat-num {
        font-size: 1.3rem;
    }
    
    .stat-box-label {
        font-size: 0.7rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 20px;
        margin-bottom: 24px;
    }
    
    .timeline-content {
        padding: 16px;
        border-radius: 12px;
    }
    
    .timeline-content::after {
        width: 10px;
        height: 10px;
        left: -25px;
        top: 20px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Skills */
    .skills-grid {
        gap: 16px;
    }
    
    .skill-category {
        padding: 20px;
        border-radius: 16px;
    }
    
    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .skill-item {
        margin-bottom: 14px;
    }
    
    .skill-info {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .skill-bar {
        height: 5px;
    }
    
    /* Projects */
    .projects-hero {
        padding-top: 80px;
    }
    
    .projects-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .projects-hero p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .project-filters {
        gap: 6px;
        margin-bottom: 24px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .projects-grid {
        gap: 16px;
    }
    
    .project-card {
        border-radius: 16px;
    }
    
    .project-slider {
        height: 180px;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }
    
    .project-info {
        padding: 16px;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .project-info > p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .project-tech {
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .project-tech span {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    /* Lightbox */
    .lightbox-content {
        max-height: 60vh;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
    
    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        background-color: #12121f;

    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
    }
    
    .lightbox-nav.prev { left: 2px; }
    .lightbox-nav.next { right: 2px; }
    
    /* Pricing */
    .pricing-hero {
        padding-top: 80px;
    }
    
    .pricing-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .pricing-hero p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .pricing-tabs {
        gap: 6px;
        margin-bottom: 32px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .pricing-grid {
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .price-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .price-card.popular {
        transform: scale(1);
    }
    
    .price-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .popular-badge {
        top: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 0.65rem;
    }
    
    .price-header {
        margin-bottom: 20px;
    }
    
    .price-category {
        font-size: 0.8rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .price-features li {
        padding: 8px 0;
        font-size: 0.85rem;
        gap: 8px;
    }


    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
        font-size: 0.9rem;
    }

    .faq-item.open .faq-answer {
        padding: 5px 20px 20px;
    }
        
    
    
    /* Blog */
    .blog-hero {
        padding-top: 80px;
    }
    
    .blog-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .blog-hero p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .blog-categories {
        gap: 6px;
        margin-bottom: 24px;
    }
    
    .blog-categories .category {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .blog-grid {
        gap: 16px;
    }
    
    .blog-card {
        border-radius: 16px;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-category {
        top: 10px;
        left: 10px;
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-meta {
        gap: 12px;
        margin-bottom: 10px;
        font-size: 0.75rem;
    }
    
    .blog-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .blog-content > p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .blog-link {
        font-size: 0.85rem;
    }
    
    .newsletter {
        padding: 32px 20px;
        margin-top: 40px;
        border-radius: 20px;
    }
    
    .newsletter h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .newsletter > p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .newsletter-form input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .newsletter-form .btn {
        padding: 12px 20px;
    }
    
    /* Contact */
    .contact-hero {
        padding-top: 80px;
    }
    
    .contact-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .contact-hero p {
        font-size: 0.9rem;
    }
    
    .contact-grid {
        gap: 24px;
    }
    
    .contact-info {
        padding: 20px;
        border-radius: 20px;
    }
    
    .contact-method {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 18px;
    }
    
    .contact-method h3 {
        font-size: 0.95rem;
    }
    
    .contact-method a {
        font-size: 0.85rem;
    }
    
    .contact-method > div > p {
        font-size: 0.8rem;
    }
    
    .social-large {
        margin-top: 20px;
    }
    
    .social-big {
        padding: 14px;
        border-radius: 12px;
        font-size: 0.9rem;
    }
    
    .contact-form-wrapper {
        padding: 20px;
        border-radius: 20px;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        margin-top: 4px;
    }
    
    /* Footer */
    .footer {
        margin: 0;
        padding: 32px 16px 20px;
    }
    
    .social-links {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer > p {
        font-size: 0.8rem;
    }
    
    /* Animations reduced for mobile */

    /* Disable complex animations on mobile */
    .orb {
        opacity: 0.2;
    }
    
    .bg-grid {
        background-size: 40px 40px;
        animation: none;
    }
}

/* 3D Tilt */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* iOS специфичные фиксы */
@supports (-webkit-touch-callout: none) {
    /* Отключаем стандартное поведение iOS */
    .slide video {
        -webkit-playsinline: true;
        playsinline: true;
    }
    
    /* На iOS показываем свой кастомный play button */
    .slide:has(video)::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
        pointer-events: none;
    }
    
    .slide:hover:has(video)::after {
        opacity: 0;
    }
}

/* Увеличиваем зону нажатия для кнопок слайдера на мобильных */
@media (max-width: 768px) {
    .slider-btn {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
        opacity: 1 !important; /* Всегда видны на мобильных */
    }
    
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }
    
    /* Тап по видео не мешает свайпу слайдера */
    .slide {
        touch-action: pan-y;
    }
    
    .slide video {
        touch-action: manipulation;
        pointer-events: auto;
    }
    
    /* Жесты для слайдера */
    .project-slider {
        touch-action: pan-y pinch-zoom;
    }
    
    .slider-container {
        touch-action: pan-x;
    }
}

/* ============================================
   LIGHTBOX VIDEO MOBILE
   ============================================ */

@media (max-width: 768px) {
    .lightbox-content video {
        max-width: 100%;
        max-height: 70vh;
        width: 100%;
        height: auto;
    }
    
    /* Полноэкранное видео в lightbox на мобильных */
    .lightbox-content video:-webkit-full-screen {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}