/* 
 * style.css
 * Project: grok.vn
 * Created: 2026
 * Description: Main stylesheet for Grok Vietnam
 */

/* =========================================
   1. FONTS & ROOT VARIABLES
   ========================================= */
:root {
    /* Brand Colors - Professional, Trustworthy, Insightful */
    --color-primary: #0A2647;
    /* Deep Navy Blue - Authority */
    --color-secondary: #144272;
    /* Medium Blue - Professionalism */
    --color-accent: #2C74B3;
    /* Bright Blue - Clarity */
    --color-highlight: #205295;
    /* Strong Blue */

    /* Support Colors */
    --color-text-dark: #111827;
    /* Almost Black - Sharp Text */
    --color-text-light: #4B5563;
    /* Cool Gray - Secondary Text */
    --color-text-lighter: #6B7280;
    /* Lighter Gray */
    --color-bg-light: #F3F4F6;
    /* Soft Gray Background */
    --color-bg-white: #FFFFFF;
    --color-border: #E5E7EB;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Typography System */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    /* Using Roboto for body for excellent readability */

    /* Font Sizes (Fluid Typography) */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    /* Better for long reading */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;

    /* Effects */
    --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);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   3. CSS RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: var(--leading-relaxed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Tighten headings slightly for modern look */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Fluid sizing */
h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: var(--text-base);
    color: var(--color-text-light);
}

strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Link Resets */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* Image Resets */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Component Placeholders (Will be expanded later) */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* End of Initial Setup */

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 48px;
    /* Fixed height for consistency */
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    display: none;
    /* Hidden on smallest screens if needed, or shown */
}

@media (min-width: 480px) {
    .logo-text {
        display: block;
    }
}

/* Navigation Styles */
.nav-list {
    display: none;
    /* Mobile first hidden */
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .nav-list {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

/* Special Button Style for Contact Link */
.nav-link.btn-contact {
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.nav-link.btn-contact:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-link.btn-contact::after {
    display: none;
    /* No underline for button */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Main Content Padding for Fixed Header */
main {
    padding-top: var(--header-height);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

/* Animated Background Gradient */
.hero-bg-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(10, 38, 71, 0.05) 0%,
            rgba(44, 116, 179, 0.1) 25%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(44, 116, 179, 0.1) 75%,
            rgba(10, 38, 71, 0.05) 100%);
    animation: gradientFlow 15s ease infinite;
    z-index: 0;
    filter: blur(80px);
}

@keyframes gradientFlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
        /* Text larger than form */
    }
}

/* Hero Text Styles */
.hero-text {
    padding-right: var(--spacing-md);
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    margin-top: var(--spacing-sm);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cooperation-note {
    background-color: rgba(44, 116, 179, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Hero Visual / Contact Form */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    /* Align form to right */
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

.contact-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-card h3 {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    color: var(--color-secondary);
}

.form-desc {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(44, 116, 179, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   6. ABOUT SECTION LAYOUT
   ========================================= */
.about-section {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.section-header {
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 500;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-warning);
    margin: var(--spacing-md) auto;
    border-radius: var(--radius-sm);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.text-justify {
    text-align: justify;
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.about-image {
    position: relative;
    padding: var(--spacing-lg);
}

.image-stack {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio placeholder */
}

.img-back,
.img-front {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.img-back {
    top: 0;
    left: 40px;
    width: 80%;
    height: 80%;
    z-index: 1;
    opacity: 0.8;
}

.img-front {
    bottom: 0;
    right: 40px;
    width: 80%;
    height: 80%;
    z-index: 2;
    border: 4px solid white;
}

.stat-box {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid var(--color-accent);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* =========================================
   7. SERVICES SECTION LAYOUT
   ========================================= */
.services-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-light);
}

.bg-gray {
    background-color: var(--color-bg-light);
}

.services-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.service-icon img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    object-fit: contain;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.service-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    flex-grow: 1;
    /* Ensure equal height alignment if wanted */
}

/* =========================================
   8. EXPERTISE SECTION LAYOUT
   ========================================= */
.expertise-section {
    padding: var(--spacing-xxl) 0;
}

.expertise-content {
    max-width: 1000px;
    margin: 0 auto;
}

.commitment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .commitment-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.commitment-box {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--color-text-light);
}

.highlight-box {
    background: white;
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-warning);
}

.commitment-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.expert-quote-wrapper {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background-color: rgba(10, 38, 71, 0.03);
    border-radius: var(--radius-lg);
    position: relative;
}

.expert-quote blockquote {
    font-family: var(--font-accent, serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.expert-quote cite {
    font-weight: 700;
    color: var(--color-primary);
    font-style: normal;
}

/* =========================================
   9. FOOTER LAYOUT
   ========================================= */
.main-footer {
    background-color: #05152a;
    /* Very dark blue */
    color: #cbd5e1;
    /* Light gray text */
    padding: var(--spacing-xxl) 0 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    padding-right: var(--spacing-lg);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.footer-desc {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
    color: #cbd5e1;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-warning);
    padding-left: 4px;
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.credit-link,
.footer-credits a {
    color: var(--color-warning);
    font-weight: 600;
}

.credit-desc {
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

.credit-desc a {
    color: white;
    text-decoration: underline;
}

.credit-desc a:hover {
    color: var(--color-warning);
}

/* =========================================
   10. UTILITY CLASSES (LAYOUT & SPACING)
   ========================================= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-white {
    color: white !important;
}

.text-gray {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-dark {
    background-color: var(--color-primary);
}

.line-white {
    background-color: rgba(255, 255, 255, 0.2);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Fix Contact Section specific layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.contact-list .icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content .label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 2px;
}

.info-content .value {
    color: white;
    font-weight: 500;
}

.contact-form-wrapper {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-full {
    width: 100%;
}

/* =========================================
   11. ADVANCED ANIMATIONS & MODERN EFFECTS
   ========================================= */

/* Keyframes Definitions */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 116, 179, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(44, 116, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(44, 116, 179, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes gradient-xy {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 50px, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Utility Animation Classes */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

.animate-shimmer {
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(44, 116, 179, 0.3);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #b8860b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Modern Card Styles enhancement */
.service-card {
    position: relative;
    overflow: hidden;
    background: white;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 116, 179, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .service-icon {
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-title {
    color: var(--color-accent);
}

/* Hero Enhancements */
.hero-visual .contact-card {
    animation: float 6s ease-in-out infinite;
}

.hero-actions .btn {
    position: relative;
    overflow: hidden;
}

.hero-actions .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.hero-actions .btn:hover::after {
    left: 100%;
}

/* Partner Logos Styling */
.partner-logo {
    /* Removed global grayscale to fix Diamond Partner issue */
    transition: all 0.4s ease;
    max-height: 80px;
    /* Ensure consistency */
    width: auto;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Specific styling for Diamond Partner (Social Boost Asia) to look premium */
#doi-tac-tai-tro .partner-logo {
    filter: none !important;
    /* Force no filter */
    opacity: 1 !important;
    height: 100px;
    /* Make it prominent */
    max-height: none;
    margin-bottom: var(--spacing-md);
}

/* Diamond Partner Header Styling */
#doi-tac-tai-tro .partner-header {
    margin-bottom: var(--spacing-xl);
}

#doi-tac-tai-tro .partner-badge {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#doi-tac-tai-tro .partner-title {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 10px;
    background: linear-gradient(135deg, #B8860B 0%, #FFD700 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    /* Soft shadow for depth */
}

/* Container polish */
.glass-effect-gold {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 50px rgba(218, 165, 32, 0.15);
}

/* Link Group Hover Effects in Partner Section */
.link-group ul li a {
    position: relative;
    padding-left: 0;
}

.link-group ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.link-group ul li a:hover {
    padding-left: 15px;
    color: var(--color-accent);
}

.link-group ul li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Floating Elements in Background */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(44, 116, 179, 0.1);
    top: 10%;
    left: -100px;
    animation: float 8s infinite alternate;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(184, 134, 11, 0.05);
    /* Gold tint */
    bottom: 20%;
    right: -50px;
    animation: float 6s infinite alternate-reverse;
}

/* Input Focus Animation */
.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 116, 179, 0.15);
}

/* Button Pulse on Contact */
.btn-submit {
    animation: pulse-glow 3s infinite;
}

.btn-submit:hover {
    animation: none;
    /* Stop pulse on hover to show hover state */
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
}

/* Scroll Bar Customization (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

/* Selection Color */
::selection {
    background: var(--color-accent);
    color: white;
}

/* Responsive Font Scaling Smoothness */
html {
    transition: font-size 0.2s ease;
}

/* Loading Skeleton Class (for future use) */
.skeleton {
    background: #ddd;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    width: 80%;
    margin-bottom: 0.5em;
}

/* Glassmorphism Classes Advanced */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Image Reveal Effect */
.reveal-image {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-image.visible {
    opacity: 1;
    transform: scale(1);
}

/* 3D Tilt Effect Container */
.tilt-container {
    perspective: 1000px;
}

.tilt-element {
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

/* Footer Link Hover Advanced */
.footer-col ul li a {
    display: inline-block;
    position: relative;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-warning);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
    width: 100%;
}

/* Back to Top Button (Future Implementation Placeholder Styles) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
}

/* Stats Counter Animation Helper */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--color-text-dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-text-dark) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Accessibility Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .main-header,
    .hero-bg-animation,
    .hero-actions,
    .mobile-menu-toggle,
    .back-to-top {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

}

/* =========================================
   13. ECOSYSTEM PARTNER STYLES
   ========================================= */
.eco-partner-section {
    padding: var(--spacing-xxl) 0;
    background-color: #f9fafb;
}

.eco-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.eco-card {
    position: relative;
    z-index: 10;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.eco-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.eco-card h4 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: var(--spacing-xs);
}

.eco-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    text-align: justify;
}

.eco-card a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(44, 116, 179, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.eco-card a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}

@media (max-width: 768px) {
    .eco-partners-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Large Devices (Desktops & Laptops, less than 1200px) */
@media (max-width: 1199.98px) {
    :root {
        --container-width: 960px;
        --text-5xl: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    :root {
        --container-width: 720px;
        --header-height: 70px;
        --spacing-xxl: 48px;
    }

    /* Mobile Menu Logic */
    .nav-list {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: white;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-direction: column;
        padding: 0;
    }

    .nav-list.active {
        height: auto;
        padding: var(--spacing-lg) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu items */
    .nav-list.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-list.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-list.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-list.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-list.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-list.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-link {
        display: block;
        padding: 12px var(--spacing-md);
        font-size: 1.1rem;
    }

    .nav-link:hover {
        background-color: var(--color-bg-light);
    }

    .nav-link.btn-contact {
        display: inline-block;
        margin-top: var(--spacing-md);
    }

    /* Hero adjustments */
    .hero-section {
        padding: var(--spacing-xl) 0;
        min-height: auto;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
    }

    .hero-visual {
        justify-content: center;
        margin-top: var(--spacing-lg);
    }

    .hero-actions {
        justify-content: center;
    }

    /* Layout adjustments */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (Tablets & Large Phones, less than 768px) */
@media (max-width: 767.98px) {
    :root {
        --container-width: 540px;
        --text-4xl: 2rem;
        --spacing-xxl: 40px;
    }

    h1,
    .hero-title {
        font-size: 2.25rem;
    }

    h2,
    .section-title {
        font-size: 1.85rem;
    }

    .services-grid,
    .commitment-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-image .img-front {
        width: 60%;
        height: 60%;
        right: 20px;
        bottom: 20px;
    }

    .about-image .img-back {
        width: 80%;
        height: 80%;
    }

    .stat-box {
        bottom: 0;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --container-width: 100%;
        --spacing-md: 12px;
        --spacing-lg: 20px;
        --text-base: 0.95rem;
        /* Slightly smaller body text */
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        margin-bottom: var(--spacing-sm);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    .contact-card {
        padding: var(--spacing-lg);
    }

    .logo-text {
        display: block;
        /* Keep brand name visible */
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-image {
        padding: 0;
        margin-bottom: var(--spacing-xl);
    }
}

/* Javascript Helper Classes for Menu */
.overflow-hidden {
    overflow: hidden;
}

/* Fix for iOS Input Zoom */
@media screen and (-webkit-min-device-pixel-ratio:0) {

    select:focus,
    textarea:focus,
    input:focus {
        font-size: 16px;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-list {
        overflow-y: auto;
        max-height: 80vh;
    }

    .hero-section {
        padding: var(--spacing-lg) 0;
    }
}

/* Dark Mode Support (Future proofing) */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode variables here later */
    /* :root { ... } */
}