:root {
    /* --- Palette: High-Tech / Corporate / Trust --- */
    --primary-color: #0284c7;
    /* Sky 600 - More vibrant */
    --primary-dark: #0369a1;
    /* Sky 700 */
    --primary-light: #38bdf8;
    /* Sky 400 */
    --accent-color: #06b6d4;
    /* Cyan 500 */

    --secondary-color: #0f172a;
    /* Slate 900 - Premium Dark */
    --secondary-light: #1e293b;
    /* Slate 800 */

    /* --- Neutrals --- */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* --- Gradients --- */
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --gradient-text: linear-gradient(to right, #0284c7, #06b6d4);

    /* --- Typography --- */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* --- Spacing --- */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    /* Section spacing */
    --header-height: 80px;
    --header-scrolled: 60px;

    /* --- UI Elements --- */
    --container-width: 1280px;
    /* Wider for modern screens */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* --- Shadows (Layered for depth) --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-process: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.1);

    /* --- Transitions --- */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    /* Optimal reading height */
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: var(--header-height);
    /* Prevent content hiding behind fixed header */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
    letter-spacing: -0.02em;
    /* Modern tight tracking */
}

/* Partners Grid */
.partners-grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.p-img {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow: hidden;
}

.p-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-fast);
}

.partner-card:hover .p-img img {
    transform: scale(1.1);
}

.p-desc h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 600;
}

.p-desc p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    text-align: left;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
    color: var(--white);
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: height var(--transition-normal), background var(--transition-normal);
}

.main-header.scrolled {
    height: var(--header-scrolled);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Fill the fixed height */
}

/* Logo */
.brand-logo {
    height: 48px;
    width: auto;
    transition: var(--transition-fast);
}

.main-header.scrolled .brand-logo {
    height: 40px;
}

/* Nav Menu */
.main-nav ul {
    display: flex;
    gap: 2.5rem;
    /* Increased spacing */
    align-items: center;
}

.main-nav a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--gray-800);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: var(--gradient-dark), url('images/robot_industrial_1.png');
    /* Fallback image */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    padding: 60px 0;
    margin-top: -1px;
    /* Remove distinct line */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--white);
}

.brand-subtitle {
    font-size: 1.25rem;
    color: var(--gray-200);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-subtitle a {
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.brand-subtitle a:hover {
    border-bottom-color: var(--accent-color);
}

.development-notice {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    color: var(--gray-300);
    font-size: 0.95rem;
    border-left: 4px solid var(--accent-color);
}

/* Hero Form */
.form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-form h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-form input,
.hero-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.hero-form input:focus,
.hero-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.contact-link {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.4);
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */
.content-section {
    padding: 6rem 0;
    /* More breathing room */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-wrapper:first-child {
    grid-column: span 2;
}

.img-wrapper img {
    transition: transform 0.6s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.img-wrapper:hover .img-caption {
    transform: translateY(0);
}

/* Services / Solutions */
#giai-phap {
    background-color: var(--gray-50);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    top: 0;
}

.solution-card:hover {
    top: -8px;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-img {
    height: 240px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-bounce);
    /* Bouncy effect */
}

.solution-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.card-content p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Technology / AI Section */
#tr-tue-nhan-tao {
    background: var(--secondary-color);
    color: var(--white);
}

#tr-tue-nhan-tao .section-title {
    color: var(--white);
}

#tr-tue-nhan-tao p {
    color: var(--gray-300);
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse .feature-text {
    direction: ltr;
}

.feature-img img {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
    /* Neon glow */
}

/* Spoonosr Section */
#nha-tai-tro {
    background: linear-gradient(to bottom, #f0fdf4 0%, #ffffff 100%);
    border-top: 1px solid #bbf7d0;
    border-bottom: 1px solid #bbf7d0;
}

.sponsor-title {
    color: #15803d;
    /* Green 700 */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sponsor-title::after {
    background: #22c55e;
    content: '';
}

.sponsor-intro {
    background: #dcfce7;
    padding: 2rem;
    border-radius: var(--radius-lg);
    color: #14532d;
    margin-bottom: 2rem;
}

.sponsor-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--secondary-color);
    color: var(--gray-400);
    padding: 5rem 0 0;
    font-size: 0.95rem;
}

.footer-top {
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--white);
}

.footer-col input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.footer-col button {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-col button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
}

.tech-partners {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.tech-partners a {
    color: var(--gray-400);
    font-weight: 600;
    margin: 0 0.3rem;
    transition: color 0.3s ease;
}

.tech-partners a:hover {
    color: var(--accent-color);
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
}

.footer-links a {
    color: var(--gray-500);
    margin-left: 1.5rem;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--white);
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.75rem;
    }
}

.footer-desc a {
    color: var(--gray-400);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

.footer-desc a:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-effect {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

.btn-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(to right, #0066cc 20%, #00ffcc 40%, #00ffcc 60%, #0066cc 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.tilt-card {
    transition: transform 0.1s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.neon-text-blue {
    text-shadow: 0 0 5px #0066cc, 0 0 10px #0066cc, 0 0 20px #0066cc;
}

.neon-border {
    border: 1px solid #00ffcc;
    box-shadow: 0 0 5px #00ffcc, inset 0 0 5px #00ffcc;
}

.glass-dark {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-gradient-tech {
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000000 100%);
}

.bg-gradient-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.shape-blob {
    position: absolute;
    background: var(--gradient-primary);
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    background: var(--accent-color);
    animation-delay: -5s;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

::selection {
    background: var(--primary-color);
    color: var(--white);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 500;
}

.fw-light {
    font-weight: 300;
}

.text-uppercase {
    text-transform: uppercase;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.flex-1 {
    flex: 1;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
    top: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

.z-100 {
    z-index: 100;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .card-img {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        display: block;
        /* Ensure it's not hidden by mistake */
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1.25rem;
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--gray-100);
        padding-bottom: 0.5rem;
        color: var(--gray-800);
    }

    .main-nav a:hover {
        color: var(--primary-color);
        padding-left: 10px;
    }

    .main-nav a::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
        /* Prevent background scrolling */
    }

    .navbar {
        padding: 1rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-form {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .about-grid,
    .tech-container,
    .footer-top,
    .feature-item,
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-item.reverse {
        direction: ltr;
        /* Reset direction */
    }

    .feature-item.reverse .feature-text {
        direction: ltr;
    }

    .about-image {
        order: -1;
    }

    .tech-image-group {
        order: -1;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .partners-grid-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sponsor-links-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 0.5rem 0;
    }

    .header-inner {
        height: 60px;
    }

    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        padding-top: 6rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .copyright {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
        display: inline-block;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .partners-grid-content {
        grid-template-columns: 1fr;
    }

    .tech-image-group {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tech-image-group img:nth-child(1) {
        grid-column: auto;
    }

    .sponsor-content {
        padding: 1.5rem;
    }

    .form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .main-nav {
        overflow-y: auto;
    }
}

@media print {

    .main-header,
    .main-footer,
    .hero-form,
    .mobile-menu-toggle,
    .btn-contact {
        display: none !important;
    }

    body {
        font-size: 12pt;
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
    }

    .section-title {
        page-break-before: always;
    }
}