/* ===== CSS VARIABLES ===== */
:root {
    --navy: #14181c;
    --hero: #272727;
    --wrap: #181717;
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --accent: #99aabb;
    --muted: rgba(255, 255, 255, 0.07);
    --glass: rgba(255, 255, 255, 0.04);
    --text: #e6e9ee;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #fff;
    background: var(--wrap);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--navy);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar .logo img {
    height: 50px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #fff, var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1050;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        margin-left: 25px;
        margin-top: 25px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 1rem 2rem;
    overflow: hidden;
    background: linear-gradient(270deg, #14181c, #272727, #181717);
    background-size: 600% 600%;
    animation: gradientShift 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.hero-content > div:first-child {
    flex: 1;
    min-width: 300px;
}

.hero-content h1,
.hero-content h2,
.hero-content p {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s forwards;
}

.hero-content h1 {
    animation-delay: 0.3s;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    animation-delay: 0.6s;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-content p {
    animation-delay: 0.9s;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent), #7a8b9c);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 170, 187, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s forwards 1.2s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(153, 170, 187, 0.5);
    background: linear-gradient(135deg, #7a8b9c, var(--accent));
}

.hero-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s forwards 1.2s;
    width: 350px;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-content img {
        margin-top: 1rem;
        width: 280px;
    }

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

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--bg-primary);
    padding: 4rem 1rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(153, 170, 187, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    margin-left: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-secondary);
    padding: 4rem 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #7a8b9c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(153, 170, 187, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.service-card:hover .service-icon {
    filter: grayscale(0);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.service-lang {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(153, 170, 187, 0.1);
    border-radius: 20px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PORTFOLIO / WRAPPER SECTION ===== */
.wrapper {
    padding: 4rem 1rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(153, 170, 187, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), #7a8b9c);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(153, 170, 187, 0.3);
}

@media (max-width: 600px) {
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-header .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fff, var(--accent));
    margin: 0.5rem auto 2rem;
    border-radius: 2px;
}

/* Swiper Portfolio Carousel */
.swiper {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.swiper-slide {
    width: 300px;
    height: auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2, 6, 10, 0.6);
    text-align: center;
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide:hover {
    transform: translateY(-6px) scale(1.03);
}

.swiper-slide img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
    margin: 0;
    cursor: pointer;
}

.swiper-slide .title {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1rem 0.25rem;
}

.swiper-slide .title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1rem 0.25rem;
    flex-wrap: wrap;
}

.swiper-slide .title-wrapper .title {
    padding: 0;
}

.imdb-link svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.imdb-link:hover svg {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.swiper-slide .meta {
    font-size: 0.85rem;
    opacity: 0.8;
    padding: 0 1rem 1rem;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--accent);
}

.swiper-pagination {
    position: relative !important;
    margin-top: 30px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--muted);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.25);
}

/* ===== ABOUT / CV SECTION ===== */
.about-cv {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--text);
}

.cv-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cv-header h2 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.6px;
}

.role {
    margin: 0.25rem 0 0;
    color: rgba(230, 233, 238, 0.82);
    font-weight: 500;
}

.cv-contacts {
    text-align: right;
    min-width: 230px;
}

.cv-contacts .contact-line {
    font-size: 0.95rem;
    color: rgba(230, 233, 238, 0.9);
    margin-bottom: 0.35rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.cv-side .box,
.cv-main .box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-top: 25px;
}

.box h3 {
    margin: 0 0 0.6rem 0;
    font-size: 1.05rem;
}

.box h4 {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.98rem;
}

.box h5 {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.9rem;
    color: var(--accent);
}

.muted {
    color: rgba(230, 233, 238, 0.65);
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
}

.chip.primary {
    background: linear-gradient(90deg, rgba(153, 170, 187, 0.14), rgba(230, 57, 70, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.simple-list,
.bullet-list,
.clients {
    padding-left: 1.1rem;
    margin: 0.3rem 0 0 0;
}

.simple-list li,
.bullet-list li,
.clients li {
    margin-bottom: 0.45rem;
    color: rgba(230, 233, 238, 0.9);
}

.experience {
    margin-top: 0.5rem;
}

.about-cv p {
    line-height: 1.45;
    color: rgba(230, 233, 238, 0.93);
}

@media (max-width: 980px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .cv-contacts {
        text-align: left;
    }
}

/* ===== CONTACT FORM ===== */
.contact {
    background: linear-gradient(135deg, #14181c, #272727, #181717);
    padding: 6rem 1rem;
    color: #fff;
}

.contact-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(153, 170, 187, 0.3);
}

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

.contact-form button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 1rem;
}

.contact-form button:hover {
    transform: scale(1.05);
    background: #7a8b9c;
}

#formResponse {
    padding: 15px 20px;
    margin-top: 15px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#formResponse.success {
    background-color: #e6f4ea;
    color: #276749;
    border-left: 5px solid #38a169;
    display: block;
}

#formResponse.error {
    background-color: #fbeaea;
    color: #9b2c2c;
    border-left: 5px solid #e53e3e;
    display: block;
}

@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #14181c, #272727);
    color: #fff;
    padding: 4rem 1rem 2rem;
    text-align: center;
    position: relative;
}

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

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

@media (max-width: 500px) {
    .srwebdesign img {
        height: 50px;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .contact,
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 1rem;
    }

    body {
        background: #fff;
        color: #000;
    }
}
