/*
 * TWS Việt Nam - Technology & Web Solutions
 * Version: 2.0.26 (Pro Max UI/UX Edition)
 * Author: TWS Official Frontend Team
 * Description: Main stylesheet for tws.vn - The Digital Masterpiece
 */

/* =================================================================*********
   1. ROOT VARIABLES & THEME CONFIGURATION
   ========================================================================== */
:root {
    /* --- Brand Colors (Modern Tech Palette) --- */
    /* Primary: Deep Blue Gradient representing Trust & Technology */
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-light: #1e293b;
    /* Slate 800 */
    --primary-dark: #020617;
    /* Slate 950 */

    /* Accent: Vibrant Gradient for Calls to Action & Highlights */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --accent-glow: rgba(59, 130, 246, 0.5);

    /* Secondary Accent: Cyan/Purple for Tech Vibes (2026 Trend) */
    --tech-cyan: #06b6d4;
    /* Cyan 500 */
    --tech-purple: #8b5cf6;
    /* Violet 500 */
    --gradient-main: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(to right, #3b82f6, #06b6d4);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* --- Text Colors --- */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748b;
    /* Slate 500 */
    --text-dark: #0f172a;
    /* Slate 900 */
    --text-white: #ffffff;
    --text-white-muted: rgba(255, 255, 255, 0.8);

    /* --- Background Colors --- */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    /* Slate 100 */
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* --- Status Colors --- */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* --- Typography System --- */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    /* Modern, geometric sans for headings */

    /* Type Scale (Fluid) */
    --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 */
    --text-6xl: 3.75rem;
    /* 60px */

    /* --- Spacing System --- */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 3rem;
    /* 48px */
    --spacing-3xl: 4rem;
    /* 64px */
    --section-spacing: 5rem;
    /* 80px */

    /* --- Borders & Radius --- */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    --border-light: 1px solid #e2e8f0;
    --border-focus: 2px solid rgba(59, 130, 246, 0.5);

    /* --- Shadows (Neumorphism & 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-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* --- Transitions --- */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s ease-in-out;

    /* --- Z-Index --- */
    --z-negative: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    --z-overlay: 9999;
}

/* =================================================================*********
   2. MODERN CSS RESET & NORMALIZATION
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* --- Typography Reset --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--accent-color);
}

ul,
ol {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =================================================================*********
   3. UTILITY CLASSES & COMMON COMPONENTS
   ========================================================================== */

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* --- Flexbox Utilities --- */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

/* --- Text Gradients --- */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* --- Section Attributes --- */
section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.section-header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-light);
}

/* End of Part 1: Reset & Variables */

/* =================================================================*********
   4. HEADER & NAVIGATION (Glassmorphism Sticky Header)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    height: 80px;
    /* Fixed height for calculations */
}

/* --- Logo --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    z-index: var(--z-tooltip);
}

.header-logo {
    height: 50px;
    /* Optimal height */
    width: auto;
    transition: var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
}

.menu-list {
    display: flex;
    gap: var(--spacing-lg);
    /* Space between items */
    margin: 0;
    padding: 0;
}

.menu-list li {
    position: relative;
}

.menu-list a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

/* Hover Effect: Gradient Underline */
.menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.menu-list a:hover {
    color: var(--accent-color);
}

.menu-list a:hover::after {
    width: 100%;
}

/* Active State (can be added via JS later) */
.menu-list a.active {
    color: var(--accent-color);
}

.menu-list a.active::after {
    width: 100%;
}

/* --- Mobile Menu Trigger (Hidden on Desktop) --- */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* --- Responsive Adjustments for Header --- */
@media (max-width: 992px) {
    .header-container {
        height: 70px;
    }

    .header-logo {
        height: 40px;
    }

    /* Simple mobile menu adjustments for now - full responsive menu in Part 6 */
    .menu-list {
        gap: var(--spacing-md);
    }

    .menu-list a {
        font-size: var(--text-sm);
    }
}

/* End of Part 2: Header & Menu */

/* =================================================================*********
   5. LAYOUT SECTIONS & TYPOGRAPHY
   ========================================================================== */

/* --- Hero Section (Section 1) --- */
.hero-section {
    padding-top: 120px;
    /* Account for fixed header */
    background: var(--bg-surface-alt);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: var(--z-normal);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Fluid typography */
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.keywords-h2 h2 {
    font-size: var(--text-xl);
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
    margin-right: var(--spacing-md);
}

.intro-notice {
    font-size: var(--text-lg);
    max-width: 900px;
    margin-bottom: var(--spacing-2xl);
    border-left: 4px solid var(--accent-color);
    padding-left: var(--spacing-md);
    background: rgba(255, 255, 255, 0.5);
    padding: var(--spacing-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
    align-items: start;
}

.hero-text-long {
    font-size: var(--text-base);
    text-align: justify;
}

.hero-text-long p {
    margin-bottom: var(--spacing-md);
}

/* --- Hero Images Grid --- */
.hero-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.feature-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* --- Sponsor Section (Section 2) --- */
.sponsor-section {
    background: white;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.sponsor-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
    animation: float 3s ease-in-out infinite;
}

.sponsor-logo {
    height: 80px;
    margin: 0 auto var(--spacing-lg);
}

.section-content {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.section-content p {
    margin-bottom: var(--spacing-md);
}

.sponsor-images {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.sponsor-images img {
    max-width: 60%;
    border-radius: var(--radius-xl);
}

/* --- Partners Section (Section 3) --- */
.partners-section {
    background: var(--bg-surface-alt);
}

.partners-grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.partner-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Partner Links Style */
.partner-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px dotted var(--accent-color);
}

.partner-link:hover {
    color: var(--tech-purple);
    border-bottom: 1px solid var(--tech-purple);
}

.partner-item h3 {
    font-size: var(--text-lg);
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.section-image-wrapper {
    text-align: center;
}

.section-image-wrapper img {
    max-width: 80%;
    margin: 0 auto;
    border-radius: var(--radius-xl);
}

/* --- Services Section (Section 4) --- */
.services-section {
    background: var(--primary-dark);
    color: var(--text-white);
    padding-bottom: var(--section-spacing);
}

.services-section .section-header h2 {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-section .section-desc {
    color: var(--text-white-muted);
}

.services-content-body {
    max-width: 1000px;
    margin: 0 auto var(--spacing-2xl);
}

.service-block {
    background: rgba(255, 255, 255, 0.05);
    /* Glass dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.service-block:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.service-block h3 {
    color: var(--tech-cyan);
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-xl);
}

.service-block p {
    color: var(--text-white-muted);
}

.services-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* --- About & News (Section 5 & 6) --- */
.about-section {
    background: white;
}

.about-text-long h3 {
    color: var(--primary-light);
    margin-top: var(--spacing-lg);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: var(--spacing-xs);
}

.about-images,
.news-images {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    justify-content: center;
}

.about-images img,
.news-images img {
    width: 45%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.news-section {
    background: var(--bg-surface-alt);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.news-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-content {
    padding: var(--spacing-lg);
}

.news-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .services-images,
    .about-images,
    .news-images {
        flex-direction: column;
        align-items: center;
    }

    .about-images img,
    .news-images img {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* End of Part 3: Layouts & Typography */

/* =================================================================*********
   6. CONTACT SECTION & FORMS
   ========================================================================== */
.contact-section {
    background: white;
    position: relative;
}

.contact-content-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.contact-info-block {
    background: var(--bg-surface-alt);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    height: fit-content;
}

.contact-info-block h3,
.consulting-process h3,
.map-integration h3 {
    font-size: var(--text-xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--accent-color);
    padding-left: var(--spacing-sm);
}

.contact-list li {
    margin-bottom: var(--spacing-md);
    font-size: var(--text-base);
    position: relative;
    padding-left: var(--spacing-lg);
}

.contact-list li strong {
    color: var(--text-dark);
}

.contact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* --- Contact Form Styling --- */
.contact-form-wrapper {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background-color: var(--bg-surface-alt);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- Hero Contact Form (Floating Glass) --- */
.contact-form-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--text-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

.contact-link {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

/* --- Map Placeholder --- */
.map-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: var(--text-light);
    border-radius: var(--radius-lg);
    border: 2px dashed #cbd5e1;
    margin-top: var(--spacing-md);
}

/* =================================================================*********
   7. FOOTER STYLING
   ========================================================================== */
#main-footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    font-size: var(--text-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: var(--spacing-2xl);
}

.footer-col h3 {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-lg);
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col p {
    color: var(--text-white-muted);
    margin-bottom: var(--spacing-md);
}

.footer-links,
.footer-backlinks,
.footer-partners-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a,
.footer-backlinks a,
.footer-partners-list a {
    color: var(--text-white-muted);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover,
.footer-backlinks a:hover,
.footer-partners-list a:hover {
    color: var(--tech-cyan);
    transform: translateX(5px);
}

.footer-backlinks li,
.footer-partners-list li {
    font-size: 0.9em;
}

.copyright {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

/* =================================================================*********
   8. UTILITY CLASSES & HELPERS
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mt-5 {
    margin-top: var(--spacing-2xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.mb-5 {
    margin-bottom: var(--spacing-2xl);
}

.py-section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.hidden {
    display: none !important;
}

.shadow-hover {
    transition: var(--shadow-sm);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* --- Text Color Utilities --- */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-muted {
    color: var(--text-light);
}

/* --- Background Utilities --- */
.bg-light {
    background-color: var(--bg-surface-alt);
}

.bg-white {
    background-color: white;
}

.bg-dark {
    background-color: var(--primary-dark);
    color: white;
}

/* --- Responsive Adjustments for Footer & Contact --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .contact-content-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-form-container {
        padding: var(--spacing-md);
    }
}

/* End of Part 4: Footer, Form & Utilities */

/* =================================================================*********
   9. RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

/* --- Tablet (Landscape & Portrait) - 1024px and below --- */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 4rem;
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .container {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }

    /* Auto-adjust grids slightly */
    .partners-grid-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile (Large) & Tablet Portrait - 768px and below --- */
@media (max-width: 768px) {

    /* Safe Area for Mobile */
    :root {
        --section-spacing: 3rem;
        --spacing-3xl: 2rem;
        --text-4xl: 2rem;
    }

    /* Header & Nav */
    .mobile-menu-btn {
        display: flex;
        /* Show hamburger icon */
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0.5rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: var(--radius-md);
        background: transparent;
        z-index: 101;
    }

    /* Mobile Menu Dropdown Style */
    .main-nav .menu-list {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-light);
        gap: var(--spacing-md);
    }

    .main-nav .menu-list.active {
        display: flex;
        /* Show when active */
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-list a {
        display: block;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--bg-surface-alt);
        font-size: var(--text-lg);
    }

    /* Hero Section */
    .hero-section {
        padding-top: 100px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .intro-notice {
        text-align: left;
        margin: 0 auto var(--spacing-xl);
    }

    .hero-images {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 but smaller */
        gap: var(--spacing-sm);
    }

    /* Sections */
    .contact-content-body {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablet/large mobile */
        gap: var(--spacing-lg);
    }

    .footer-col {
        margin-bottom: var(--spacing-lg);
    }

    .text-justify {
        text-align: left;
        /* Better for mobile reading */
    }

    /* Service Images stack */
    .services-images {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (Small) - 480px and below --- */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    /* Force single column for grids on small screens */
    .news-grid,
    .partners-grid-content,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .partner-item {
        padding: var(--spacing-md);
    }

    /* Logo adjustment */
    .header-logo {
        height: 35px;
    }

    .hero-images {
        display: none;
        /* Hide heavy images on very small screens to focus on CTA */
    }

    .about-images,
    .news-images {
        gap: var(--spacing-md);
    }

    .map-placeholder {
        height: 250px;
    }
}

/* End of Part 9: Responsive Design */
/* Final File Complete */