/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-purple: #6B2FB8;
    --primary-teal: #1CBBB4;
    --primary-blue: #0D47A1;
    --dark-navy: #0D1B45;
    --light-blue: #E3F2FD;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --menu-hover: #EAFBFA;
    --menu-active: #D6F5F3;
    --menu-accent: #1CBBB4;
    --gradient-primary: linear-gradient(135deg, #6B2FB8 0%, #1CBBB4 100%);
    --gradient-dark: linear-gradient(135deg, #0D1B45 0%, #0D47A1 100%);
    --navbar-height: 105px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    padding-top: var(--navbar-height);
}

img,
video {
    max-width: 100%;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*height: 70px;*/
    height: var(--navbar-height);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: background 0.25s ease;
}

.hamburger:hover,
.hamburger.active {
    background: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}

.hamburger.active span {
    background: var(--menu-accent);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* ==================== LANGUAGE SWITCHER ==================== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lang-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.lang-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.lang-link:hover::after,
.lang-link.active::after {
    width: 100%;
}

.lang-link:hover,
.lang-link.active {
    color: var(--primary-purple);
}

.lang-separator {
    color: var(--text-light);
}

/* ==================== ALERT SECTION ==================== */
.alert-section {
    background: var(--gradient-dark);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert {
    max-width: 1200px;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: 8px;
    color: var(--white);
    border-left: 5px solid #FF4500;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.alert h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(13, 27, 69, 0.96) 0%, rgba(13, 27, 69, 0.86) 42%, rgba(13, 71, 161, 0.54) 100%),
        linear-gradient(180deg, rgba(13, 27, 69, 0.16) 0%, rgba(13, 27, 69, 0.76) 100%),
        url("../images/seobent-hero-bg.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-teal);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary-purple);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero > div {
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    width: 100%;
    max-width: 600px;
}

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

.highlight {
    color: var(--light-blue);
}

.highlight-seo {
    color: var(--primary-teal);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(107, 47, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 47, 184, 0.6);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-purple);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    right: 50px;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-blue));
    color: var(--white);
}

.card-2 {
    bottom: 100px;
    right: 150px;
    background: linear-gradient(135deg, var(--primary-purple), #9C27B0);
    color: var(--white);
}

.floating-card i {
    font-size: 2rem;
}

.floating-card span {
    font-weight: 600;
}

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

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 20px;
    background: var(--white);
}

.services .container {
    text-align: center;
}

.services h2,
.seo-section h2,
.portfolio h2,
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--light-blue);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 40px rgba(107, 47, 184, 0.2);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
    background: var(--light-blue);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== SEO SECTION ==================== */
.seo-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.seo-section .container {
    text-align: center;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.seo-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-teal);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.seo-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 150px;
    height: 150px;
    background: var(--primary-teal);
    opacity: 0.1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.seo-card:hover {
    box-shadow: 0 15px 40px rgba(28, 187, 180, 0.2);
    border-left-color: var(--primary-purple);
    transform: translateX(5px);
}

.seo-card:hover::before {
    right: -50px;
}

.seo-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.seo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.seo-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
    padding: 100px 20px;
    background: var(--white);
}

.portfolio .container {
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(107, 47, 184, 0.2);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.placeholder-image {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-info {
    padding: 25px;
    text-align: left;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.portfolio-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-purple);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 100px 20px;
    background: var(--gradient-dark);
    color: var(--white);
}

.contact .container {
    text-align: center;
}

.contact h2,
.contact .section-subtitle {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.contact-info {
    text-align: left;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-teal);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field-hidden {
    display: none;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.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(--primary-teal);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(28, 187, 180, 0.2);
}

.cf-turnstile {
    min-height: 65px;
}

.form-status {
    display: none;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    color: #DDFBF7;
    background: rgba(28, 187, 180, 0.18);
    border: 1px solid rgba(28, 187, 180, 0.45);
}

.form-status.is-error {
    color: #FFE3E3;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.45);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0A1238;
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-teal);
    transform: translateY(-3px);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top-button {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(13, 27, 69, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scroll-top-button i {
    font-size: 1.1rem;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    box-shadow: 0 10px 28px rgba(107, 47, 184, 0.36);
    outline: none;
}

.scroll-top-button[hidden] {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .alert-section,
    .hero,
    .services,
    .seo-section,
    .portfolio,
    .contact,
    .footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .nav-container {
        gap: 12px;
        justify-content: flex-start;
        padding: 0 16px;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .logo-link {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .logo-img {
        width: min(225px, 58vw);
    }

    .language-switcher {
        flex-shrink: 0;
        margin-left: 0;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        top: var(--navbar-height);
        z-index: 1001;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: left;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: translateX(-100%);
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid rgba(13, 27, 69, 0.08);
        box-shadow: 0 16px 30px rgba(13, 27, 69, 0.14);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        padding: 14px 28px;
        font-weight: 600;
        position: relative;
    }

    .nav-link:hover {
        background: var(--menu-hover);
        color: var(--primary-purple);
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 12px;
        bottom: 12px;
        left: 14px;
        width: 3px;
        border-radius: 3px;
        background: var(--menu-accent);
        opacity: 0;
        transform: scaleY(0.4);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        transform: scaleY(1);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 60px 20px;
        background:
            linear-gradient(180deg, rgba(13, 27, 69, 0.98) 0%, rgba(13, 27, 69, 0.9) 48%, rgba(13, 71, 161, 0.76) 100%),
            url("../images/seobent-hero-bg.png");
        background-size: cover;
        background-position: 62% center;
    }

    .hero-content {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100vw - 40px);
    }

    .hero-content h1 {
        font-size: 2rem;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .alert {
        max-width: 100%;
    }

    .alert h3 {
        font-size: 16px;
        overflow-wrap: break-word;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .card-1 {
        top: 20px;
        right: 20px;
    }

    .card-2 {
        bottom: 35px;
        right: auto;
        left: 20px;
    }

    .floating-card {
        font-size: 0.9rem;
        padding: 15px 20px;
    }

    .services h2,
    .seo-section h2,
    .portfolio h2,
    .contact h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer .container {
        flex-direction: column;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: linear-gradient(90deg, var(--menu-active), rgba(234, 251, 250, 0.55));
        color: var(--primary-purple);
    }

    .scroll-top-button.is-visible {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .alert-section {
        padding: 20px 12px;
    }

    .alert {
        flex: 0 1 355px;
        padding: 18px 14px;
    }

    .hero-content {
        max-width: 355px;
    }

    .hero-image {
        width: 100%;
        max-width: 355px;
    }

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

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        max-width: 335px;
    }
}

@media (max-width: 480px) {
    .alert-section {
        padding: 20px 12px;
    }

    .alert {
        padding: 18px 14px;
    }

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

    .alert h3 {
        font-size: 15px;
    }

    .services-grid,
    .seo-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 0;
    }
}
