:root {
    --darkest-bg: #010409;
    --dark-bg: #0D1117;
    --accent-gold: #FFC300;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --border-color: rgba(139, 148, 158, 0.15);
    --glow-color: rgba(255, 195, 0, 0.4);
}

.highlight-gold {
  color: var(--accent-gold);
  font-weight: 600; /* Полужирное начертание */
  text-shadow: 0 0 8px var(--glow-color); /* Небольшое свечение для красоты, в стиле вашего сайта */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--darkest-bg);
    overflow-x: hidden;
}

/* Enhanced noise texture */
body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.95" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.02;
    pointer-events: none;
    z-index: 999;
    animation: noiseShift 25s steps(10) infinite;
}

@keyframes noiseShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-5%, -10%) rotate(0.5deg); }
  20% { transform: translate(-15%, 5%) rotate(-0.3deg); }
  30% { transform: translate(7%, -25%) rotate(0.8deg); }
  40% { transform: translate(-5%, 25%) rotate(-0.6deg); }
  50% { transform: translate(-15%, 10%) rotate(0.4deg); }
  60% { transform: translate(15%, 0%) rotate(-0.7deg); }
  70% { transform: translate(0%, 15%) rotate(0.2deg); }
  80% { transform: translate(3%, 35%) rotate(-0.4deg); }
  90% { transform: translate(-10%, 10%) rotate(0.6deg); }
}

/* Enhanced floating particles system */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.particle.star {
    background: #ffffff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.particle.golden {
    background: var(--accent-gold);
    box-shadow: 0 0 6px var(--glow-color);
}

.particle.orb {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Navigation with blur effect */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
    max-width: calc(100vw - 40px);
    width: auto;
    align-items: center;
}

.nav:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для домашней иконки */
.nav a.home-icon {
    padding: 8px;
    min-width: 32px;
    min-height: 32px;
}

.nav a.home-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.nav a.home-icon:hover svg {
    transform: scale(1.1);
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 195, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.nav a:hover::before {
    opacity: 1;
}

/* Hero Section with enhanced effects */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(22, 27, 34, 0.8) 0%, var(--darkest-bg) 80%);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 195, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero-name {
    font-size: 3.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #8892b0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    opacity: 0;
    animation: revealText 1.2s ease-out 0.3s forwards;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-title {
    font-size: 1.9rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 0 10px var(--glow-color);
    opacity: 0;
    animation: revealText 1.2s ease-out 0.6s forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 45px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: revealText 1.2s ease-out 0.9s forwards;
    line-height: 1.7;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: revealText 1.2s ease-out 1.2s forwards;
}

.hero-button {
    background: var(--accent-gold);
    color: var(--darkest-bg);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px var(--glow-color);
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-button:hover::before {
    left: 100%;
}

.hero-button:hover {
    background: #ffdd40;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-color);
}

.hero-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.hero-button.secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(255, 195, 0, 0.3);
    background: rgba(255, 195, 0, 0.05);
}

.scroll-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: floatHint 3s ease-in-out infinite;
    opacity: 0;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

@keyframes floatHint {
    0%, 100% { 
        opacity: 0.7;
        transform: translateX(-50%) translateY(0); 
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) translateY(-8px); 
    }
}

/* Main Content */
.main-content {
    background: var(--darkest-bg);
    position: relative;
    z-index: 2;
}

.section {
    padding: 100px 60px 0px;
    max-width: 1200px;
    margin: 0 auto;
}


.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
}

/* Enhanced About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.15rem; /* ИЗМЕНЕНО */
    line-height: 1.7; /* ИЗМЕНЕНО */
    color: #c9d1d9;
}

.about-text h3 {
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-features {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-features:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.feature-item:hover {
    background: rgba(255, 195, 0, 0.05);
    transform: translateX(8px);
}

.feature-icon {
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 0 8px var(--glow-color);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--glow-color);
}

/* Enhanced Experience Section */
.experience-timeline {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.experience-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
    transition: all 0.5s ease;
}

.experience-item:hover {
    transform: scale(1.02);
}

.experience-period {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-align: right;
    padding-top: 28px;
    position: sticky;
    top: 100px;
    margin-top: 0;
    margin-bottom: 0;
}

.experience-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s ease;
}

.experience-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 195, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 195, 0, 0.1);
}

.experience-content::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 35px;
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color);
    transition: all 0.3s ease;
}

.experience-content:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--glow-color);
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.experience-company {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.experience-description p {
    color: #c9d1d9;
    margin-bottom: 25px;
    font-size: 1.15rem; /* ЭТАЛОН */
    line-height: 1.7; /* ЭТАЛОН */
}

.experience-achievements {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    color: #c9d1d9;
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.experience-achievements li:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

.experience-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    transition: all 0.3s ease;
}

.experience-achievements li:hover::before {
    transform: scale(1.2);
}

/* Enhanced Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    width: 100%;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    height: 100%;
    width: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-link:hover .project-card {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(255, 195, 0, 0.2);
}

.project-card-link:hover .project-card::before {
    opacity: 1;
}

.project-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, rgba(139, 148, 158, 0.1), rgba(139, 148, 158, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover .project-image {
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), rgba(139, 148, 158, 0.05));
}

.project-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-placeholder {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.project-image img,
.project-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
    transform: scale(1.05);
}

.project-content {
    padding: 35px;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent-gold);
}

.project-description {
    color: #c9d1d9;
    margin-bottom: 25px;
    line-height: 1.7; /* ИЗМЕНЕНО */
    font-size: 1.15rem; /* ИЗМЕНЕНО */
}

.project-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 195, 0, 0.1);
    color: var(--accent-gold);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .stat {
    background: rgba(255, 195, 0, 0.2);
    transform: translateY(-2px);
}

.project-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.project-link:hover {
    color: #ffdd40;
    transform: translateX(5px);
}

/* Creative Section */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.creative-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.4s ease;
}

.creative-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.creative-item h3 {
    color: var(--accent-gold);
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 600;
}

.creative-item p {
    color: #c9d1d9;
    margin-bottom: 25px;
    line-height: 1.7; /* ИЗМЕНЕНО */
    font-size: 1.15rem; /* ИЗМЕНЕНО */
}

.spotify-embed {
    margin-top: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.concept-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.creative-item:hover .concept-image {
    transform: scale(1.02);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 45px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h3 {
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.contact-item a, .contact-item p {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
    display: inline-block;
}

/* Work visuals for experience section */
.work-visuals {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.visual-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.work-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.work-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 195, 0, 0.3);
}

.work-image:hover img {
    transform: scale(1.02);
}

.work-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(139, 148, 158, 0.1), rgba(139, 148, 158, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6e7681;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.work-placeholder:hover {
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), rgba(139, 148, 158, 0.05));
    color: var(--accent-gold);
    transform: scale(1.05);
}

.visual-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhanced creative section */
.creative-item.music-item {
    grid-column: span 2;
}

/* Video containers */
.video-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(139, 148, 158, 0.1), rgba(139, 148, 158, 0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), rgba(139, 148, 158, 0.05));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 195, 0, 0.2);
}

.video-placeholder span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 195, 0, 0.2);
    border-color: rgba(255, 195, 0, 0.3);
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
    display: block;
}

.video-container video {
    object-fit: cover;
}

.video-container iframe {
    object-fit: fill;
}

/* Image container */
.image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 148, 158, 0.1), rgba(139, 148, 158, 0.05));
}

.image-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 195, 0, 0.2);
    border-color: rgba(255, 195, 0, 0.3);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.02);
}

.image-container.square {
    aspect-ratio: 1 / 1;
}

.image-container.portrait {
    aspect-ratio: 3 / 4;
}

.image-container.landscape {
    aspect-ratio: 4 / 3;
}

.image-container.wide {
    aspect-ratio: 16 / 9;
}

.image-container.fixed-height {
    height: 200px;
}

.image-container.fixed-height img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Описание чат-бота */
.chat-intro {
  margin: 30px auto 20px auto;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: left;
  transition: all 0.3s ease;
  max-width: 600px;
}

.chat-intro:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem; /* ИЗМЕНЕНО */
  line-height: 1.7; /* ИЗМЕНЕНО */
  font-weight: 400;
}

/* Buttons in Experience section */
.experience-buttons {
    margin-top: 30px;
    margin-bottom: 30px;
}

.experience-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    
    /* Стили, скопированные у .hero-button */
    background: var(--accent-gold);
    color: var(--darkest-bg);
    border: none;
    padding: 12px 24px; /* Немного адаптированный размер */
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600; /* Сделали шрифт жирнее */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px var(--glow-color);
}

.experience-button:hover {
    background: #ffdd40; /* Осветление при наведении */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-color); /* Усиленная тень */
}

.experience-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Стили для выделенного проекта в секции опыта */
.project-highlight {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
}

.project-highlight h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-highlight p {
    color: var(--text-secondary); /* ИЗМЕНЕНО */
    line-height: 1.7; /* ИЗМЕНЕНО */
    font-size: 1.15rem; /* ИЗМЕНЕНО */
    margin-bottom: 25px;
}

.project-highlight .work-image {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .work-visuals {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
        overflow: visible;
    }
    
    .visual-item {
        min-width: auto;
    }
    
    .creative-item.music-item {
        grid-column: span 1;
    }
    
    .work-image {
        margin-bottom: 15px;
    }
    
    .work-placeholder {
        height: 120px;
    }
    
    .video-placeholder {
        height: 160px;
    }
    
    .video-container {
        padding-bottom: 60%;
    }
    
    .image-container.fixed-height {
        height: 160px;
    }
    
    .hero {
        height: 100vh;
        padding-top: 40px;
        padding-bottom: 20px;
        align-items: center;
    }
    
    .hero-content {
        max-width: 800px;
        padding: 0 20px;
        position: relative;
        z-index: 3;
        transform: translateY(-10vh);
    }
    
    .hero-name {
        font-size: 2.5rem;
        line-height: 1.0;
        margin-bottom: 10px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .hero-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .scroll-hint {
        position: absolute;
        bottom: 120px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-secondary);
        font-size: 0.8rem;
        animation: floatHint 3s ease-in-out infinite;
        opacity: 0;
        animation-delay: 2s;
        animation-fill-mode: forwards;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .about-text {
        font-size: 1rem; /* ИЗМЕНЕНО */
        line-height: 1.5; /* ИЗМЕНЕНО */
    }
    
    .about-text h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .about-features {
        padding: 25px;
    }
    
    .feature-item {
        margin-bottom: 16px;
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .feature-icon {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
        flex-shrink: 0;
    }
    
    .experience-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .experience-period {
        text-align: center;
        margin-bottom: 0;
        margin-top: 0;
        position: static;
        font-size: 1.1rem;
        padding-top: 0;
    }
    
    .experience-content {
        padding: 15px;
        display: flow-root;
    }
    
    .experience-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .experience-company {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .experience-description p {
        font-size: 1rem; /* ЭТАЛОН */
        line-height: 1.5; /* ЭТАЛОН */
        margin-bottom: 20px;
        text-align: left;
    }
    
    .experience-achievements {
        text-align: left;
    }
    
    .experience-achievements li {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .experience-achievements li::before {
        content: '▸';
        position: absolute;
        left: 0;
        color: var(--accent-gold);
        font-weight: bold;
        font-size: 1.2rem;
        line-height: 1;
        transition: all 0.3s ease;
    }
    
    .experience-content::before {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .project-description {
        font-size: 1rem; /* ИЗМЕНЕНО (уже совпадало) */
        line-height: 1.5; /* ИЗМЕНЕНО (уже совпадало) */
        margin-bottom: 20px;
    }
    
    .creative-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .creative-item {
        padding: 15px;
    }
    
    .creative-item h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .creative-item p {
        font-size: 1rem; /* ИЗМЕНЕНО (уже совпадало) */
        line-height: 1.5; /* ИЗМЕНЕНО (уже совпадало) */
        margin-bottom: 20px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-item h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .contact-item a, .contact-item p {
        font-size: 1rem;
    }
    
    .chat-intro p {
        font-size: 1rem; /* ИЗМЕНЕНО */
        line-height: 1.5; /* ИЗМЕНЕНО */
    }
    
    .nav {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 14px;
        gap: 8px;
        max-width: calc(100vw - 20px);
        border-radius: 12px;
    }
    
    .nav:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    
    .nav a {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    
    .nav a.home-icon {
        padding: 6px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .nav a.home-icon svg {
        width: 16px;
        height: 16px;
    }

    .stat {
        font-size: 0.8rem;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darkest-bg); /* Используем цвет фона с вашего сайта */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    opacity: 1;
    visibility: visible;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color); /* Используем цвет границ */
    border-top-color: var(--accent-gold); /* Акцентный цвет для анимации */
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Класс для скрытия прелоадера */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- Custom Audio Player (Telegram Style) --- */
.custom-audio-player {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Распределяем элементы по краям */
    width: 100%;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    margin-top: 25px;
}

.play-pause-btn {
    background: var(--accent-gold);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 15px;
    box-shadow: 0 2px 10px var(--glow-color);
    transition: transform 0.2s ease;
}

.play-pause-btn:hover {
    transform: scale(1.05);
}

.play-pause-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--darkest-bg);
    transition: opacity 0.2s;
    transform: translateX(1px); 
}

.play-pause-btn .icon-pause {
    transform: none;
}

.progress-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.progress-bar-wrapper {
    height: 6px;
    width: 100%;
    background: rgba(139, 148, 158, 0.2);
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: left;
}

.hidden {
    display: none !important;
}

/* --- Стили для контроля громкости --- */
.volume-control {
    position: relative; /* Для позиционирования иконок друг над другом */
    display: none;      /* По умолчанию скрыто на мобильных */
    margin-left: 15px;
    /* Задаем жесткие размеры, чтобы блок не "прыгал" */
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.volume-icon {
    /* Позиционируем иконки абсолютно, друг над другом */
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease; /* Добавляем плавность для opacity */
}

.volume-icon:hover {
    transform: scale(1.1);
}

/* Вместо display: none, теперь управляем прозрачностью */
.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Чтобы нельзя было кликнуть на невидимую иконку */
}

.volume-slider-wrapper {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 40, 40, 0.9);
    border-radius: 8px;
    padding: 15px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.volume-control:hover .volume-slider-wrapper {
    opacity: 1;
    visibility: visible;
}

.volume-slider {
    /* ИСПРАВЛЕНО: используем современный стандартный метод */
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 5px;
    height: 100%;
    background: rgba(139, 148, 158, 0.3);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Показываем контроль громкости только на десктопе */
@media (min-width: 768px) {
    .volume-control {
        display: block; /* Показываем на экранах шире 768px */
    }
}

/* --- Стили для текстовой ссылки (kruzhki.kz) --- */
.text-link {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 195, 0, 0.3);
    transition: all 0.3s ease;
}
.text-link:hover {
    border-bottom-color: var(--accent-gold);
    color: #fff;
}

/* --- Стили для баннера AI-Инструментов --- */
.ai-ecosystem-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 25px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Эффект свечения при наведении */
.ai-ecosystem-banner:hover {
    background: linear-gradient(145deg, rgba(255, 195, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 195, 0, 0.15);
}

.ai-banner-content {
    flex: 1;
    z-index: 2;
}

.ai-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ai-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-gold);
    color: var(--darkest-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.ai-ecosystem-banner h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ai-ecosystem-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.ai-link-text {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    transition: margin-left 0.3s ease;
    display: inline-block;
}

.ai-ecosystem-banner:hover .ai-link-text {
    margin-left: 5px;
}




/* --- Стили для широкого AI-баннера (Исправлено: убраны отступы) --- */

.project-banner-link.wide-mode {
    display: block;
    margin-top: 50px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* 1. Включаем align-items: stretch. 
   Это заставит и видео, и текст быть одинаковой высоты, убирая пустые зоны. */
.wide-card-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch; 
    overflow: hidden; /* Обрезаем углы, если видео вылезает */
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.wide-image-container {
    /* Ширина как у карточек выше */
    width: calc(50% - 25px) !important;
    
    /* Пропорция 16:9 задает минимальную высоту */
    aspect-ratio: 16 / 9;
    
    /* Сброс стилей */
    height: auto !important; 
    padding-bottom: 0 !important; 
    
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    
    /* Важно для позиционирования видео внутри */
    position: relative;
}

/* 2. Принудительно растягиваем видео на 100% ширины и высоты контейнера */
.wide-image-container video {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Видео заполнит весь блок без черных полос */
    display: block; /* Убирает возможный нижний отступ строчного элемента */
}

.wide-content-container {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 0 40px; 
}

/* Адаптив для мобильных */
@media (max-width: 900px) {
    .wide-card-layout {
        flex-direction: column;
    }

    .wide-image-container {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        aspect-ratio: auto; 
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }

    .wide-content-container {
        padding: 30px 25px;
    }
}