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

html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

:root {
    /* Cyber security inspired palette - ešte svetlejšie odtiene v súlade s logom */
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #0066ff;
    --accent-color: #00ff88;

    --bg-darker: #253447;
    --bg-dark: #2b3d52;
    --bg-card: #32465d;
    --bg-card-hover: #3d526b;

    --text-light: #f5f7fa;
    --text-gray: #c5d0e0;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12) 0, transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.16) 0, transparent 55%),
                var(--bg-darker);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    padding-top: 64px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-darker);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

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

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    padding: 0.8rem 0;
    min-height: 64px;
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    body {
        padding-top: 96px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 0;
        min-height: 96px;
    }
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.nav-menu {
    margin-left: auto;
    margin-right: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    /* logo je PNG s priehľadným pozadím */
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.brand-text {
    font-family: 'Orbitron', 'Rajdhani', 'Exo 2', monospace, sans-serif;
    font-weight: 700;
    font-size: 1.17rem;
    color: var(--text-light);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

.language-switcher {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-left: 1rem;
    margin-right: 0;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin-top: -2rem;
}

.flag-icon {
    width: 1rem;
    height: 1rem;
    display: block;
    object-fit: contain;
    border-radius: 0.25rem;
}

.lang-btn[data-lang="hu"] .flag-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.lang-btn[data-lang="en"] .flag-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.lang-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

@media (max-width: 768px) {
    .language-switcher {
        gap: 0.2rem;
    }
    
    .lang-btn {
        width: 1.3rem;
        height: 1.3rem;
    }
    
    .flag-icon {
        width: 0.85rem;
        height: 0.85rem;
    }
    
    .lang-btn[data-lang="hu"] .flag-icon,
    .lang-btn[data-lang="en"] .flag-icon {
        width: 0.95rem;
        height: 0.95rem;
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.855rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.25s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.25s ease;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-light);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(0, 102, 255, 0.20) 0%, transparent 55%),
        radial-gradient(circle at 50% 10%, rgba(0, 255, 136, 0.10) 0%, transparent 65%);
    opacity: 0.9;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, transparent 0%, rgba(0, 212, 255, 0.08) 40%, transparent 80%),
        linear-gradient(-60deg, transparent 0%, rgba(0, 102, 255, 0.06) 35%, transparent 75%);
    pointer-events: none;
    opacity: 0.6;
    transform: translate3d(0,0,0);
    animation: float-orbs 22s ease-in-out infinite alternate;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 2.5rem;
    margin-top: -3rem;
}

.hero-logo-img {
    max-width: 500px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.08) contrast(1.12) drop-shadow(0 16px 40px rgba(0, 212, 255, 0.5));
    transition: all 0.4s ease;
}

.hero-logo-img:hover {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 20px 50px rgba(0, 212, 255, 0.7));
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.44rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 680px;
    margin: 0 auto 2.4rem;
    font-size: 0.99rem;
    color: var(--text-gray);
    text-align: center;
    font-style: italic;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.855rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #020617;
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(0, 212, 255, 0.8);
}

.btn-red {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(255, 68, 68, 0.4);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(255, 68, 68, 0.6);
    background: linear-gradient(135deg, #ff5555, #dd1111);
}

/* SECTIONS */
section {
    padding: 5rem 0;
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    z-index: 100;
}

.section-title {
    font-size: 2.16rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 0.8rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ABOUT */
.about {
    background: radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.18) 0, transparent 55%),
                var(--bg-dark);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    flex: 1 1 calc(33.333% - 1.34rem);
    min-width: 250px;
}

.about-text p {
    margin-bottom: 1.3rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: justify;
}

.about-text p strong {
    color: var(--primary-color);
}

.about-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    align-items: stretch;
}

.about-stats .stat-item {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    min-width: 200px;
}

.stat-item {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.8rem 1.1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-item.animate:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.stat-item.animate:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-item.animate:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat-number {
    font-size: 1.98rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

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

/* SERVICES */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
}

.services-grid .service-card {
    flex: 1 1 calc(20% - 1.44rem);
    min-width: 0;
    max-width: calc(20% - 1.44rem);
}

.service-card {
    background: var(--bg-card);
    border-radius: 0.9rem;
    padding: 2.3rem 1.9rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 212, 255, 0.14);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}


.service-card:hover .service-icon {
    color: #ff8800;
    transform: scale(1.1);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.service-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
    min-height: 3.2em;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Special handling for long titles - adjust font size for 5th service card */
.service-card:nth-child(5) h3 {
    font-size: 0.95rem;
    line-height: 1.2;
}

.service-card p {
    font-size: 0.855rem;
    color: var(--text-gray);
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: 0.05em;
    hyphens: auto;
    flex: 1;
}

/* PARTNERS */
.partners {
    background: var(--bg-dark);
    padding: 5rem 0;
}

.partners-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.partners-grid .partner-item {
    flex: 1 1 calc(8.333% - 1.67rem);
    min-width: 120px;
    max-width: 200px;
}

.partner-item {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.partner-logo {
    max-width: 90%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    transform: scale(1.05);
}

.partner-placeholder {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.partner-item img[alt="Synology"] {
    object-fit: cover;
    object-position: center;
    clip-path: inset(10% 10% 10% 10%);
}

.partner-item img[alt="Apple"] {
    max-width: 50%;
    max-height: 35px;
}

.partner-item img[alt="Mikrotik"] {
    max-width: 143%;
    max-height: 114px;
}

.partner-item img[alt="Sophos"] {
    max-width: 110%;
    max-height: 88px;
}

.partner-item img[alt="Fortinet"] {
    max-width: 110%;
    max-height: 88px;
}

.partner-item img[alt="Microsoft"] {
    max-width: 110%;
    max-height: 88px;
}

.partners-disclaimer {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.765rem;
    margin-top: 3rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CONTACT */
.contact {
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.12) 0, transparent 70%),
                var(--bg-darker);
}

.contact-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-content > * {
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.26rem;
    margin-bottom: 0.7rem;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 1.8rem;
    text-align: justify;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-item {
    background: var(--bg-card);
    border-radius: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.14);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.15rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-card);
    border-radius: 0.9rem;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 212, 255, 0.14);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #253447;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.855rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.6);
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    display: block;
    visibility: visible;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-popup-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    flex-shrink: 0;
}

.cookie-popup-content p {
    flex: 1;
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    min-width: 300px;
}

.cookie-popup-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* FOOTER */
.footer {
    background: #253447;
    padding: 2.4rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.13);
}

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

/* ANIMATIONS */
@keyframes float-orbs {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(-10px, 16px, 0); }
    100% { transform: translate3d(8px, 28px, 0); }
}

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

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-text p {
        flex: 1 1 calc(50% - 1rem);
        min-width: 250px;
    }

    .about-stats .stat-item {
        flex: 0 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        min-width: 180px;
    }

    .services-grid .service-card {
        flex: 1 1 calc(33.333% - 1.2rem);
        min-width: 200px;
    }

    .hero-title {
        font-size: 1.8rem;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        position: relative;
        flex-wrap: wrap;
    }
    
    .language-switcher {
        position: absolute;
        top: 4.5rem;
        left: 8px;
        order: 2;
        margin: 0;
    }
    
    .navbar.menu-open .language-switcher {
        display: none;
    }
    
    .menu-toggle {
        order: 3;
        position: absolute;
        top: 3rem;
        right: 8px;
        margin: 0;
        display: flex !important;
        z-index: 1001;
        opacity: 1 !important;
        visibility: visible !important;
        width: 24px;
        height: 24px;
        padding: 3px;
    }
    
    .menu-toggle span {
        background: var(--text-light) !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 18px;
        height: 2px;
    }

    .brand-text {
        font-size: 0.65rem;
        max-width: none;
        overflow: visible;
        white-space: nowrap;
        flex-shrink: 1;
    }
    
    .logo-img {
        height: 42px;
        flex-shrink: 0;
    }
    
    .nav-brand {
        gap: 0.5rem;
        min-width: 0;
        flex-shrink: 1;
        max-width: calc(100% - 180px);
        margin-top: 0;
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .nav-menu {
        position: fixed;
        inset: 64px 0 auto 0;
        flex-direction: column;
        background: radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.18) 0, transparent 55%),
                    radial-gradient(circle at 80% 90%, rgba(0, 102, 255, 0.12) 0, transparent 55%),
                    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.08) 0, transparent 60%),
                    var(--bg-dark);
        backdrop-filter: blur(10px);
        padding: 1.7rem 1rem 2rem;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

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

    .hero {
        min-height: auto;
        padding: 7rem 0 4.5rem;
    }

    .hero-logo-img {
        max-width: 320px;
        max-height: 160px;
    }

    .about-stats .stat-item {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 150px;
    }

    .services-grid .service-card {
        flex: 1 1 calc(50% - 0.9rem);
        min-width: 200px;
    }
    
    .service-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .partners-grid .partner-item {
        flex: 1 1 calc(33.333% - 1.34rem);
        min-width: 120px;
    }

    .contact-content > * {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 0.6rem;
        max-width: none;
        overflow: visible;
    }
    
    .nav-brand {
        max-width: calc(100% - 160px);
    }

    .hero-logo-img {
        max-width: 280px;
        max-height: 140px;
    }

    .hero-title {
        font-size: 1.44rem;
        white-space: normal;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.882rem;
    }

    .about-text p {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .about-stats .stat-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .services-grid .service-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .service-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .partners-grid .partner-item {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 120px;
        max-width: calc(50% - 0.75rem);
    }
    
    .partners-grid {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .logo-img {
        height: 36px;
    }

    section {
        padding: 4rem 0;
    }
}

/* Back to top button (mobile only) */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.back-to-top svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--text-light);
}

@media (max-width: 768px) {
    .back-to-top {
        display: flex !important;
        width: 1.3rem;
        height: 1.3rem;
        align-items: center;
        justify-content: center;
    }
    
    .back-to-top svg {
        width: 0.85rem;
        height: 0.85rem;
    }
}
