/* ==========================================
   TTC MEDIA - CUSTOM STYLESHEET
   Chuyên Nghiệp, Hiện Đại, Uy Tín
   ========================================== */

:root {
    /* Primary Colors - Teal & Golden */
    --primary-teal: #04534d;
    --light-teal: #14B8A6;
    --dark-teal: #0D5A54;
    --golden: #F59E0B;
    --light-golden: #FCD34D;
    --dark-golden: #D97706;
    
    /* Neutral Colors */
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-unit: 1rem;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-teal);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--golden), var(--primary-teal));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.container-lg {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-golden {
    background: linear-gradient(135deg, var(--golden), var(--dark-golden));
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-golden:hover {
    background: linear-gradient(135deg, var(--dark-golden), var(--golden));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-outline-golden {
    border: 2px solid var(--golden);
    color: var(--golden);
    background: transparent;
}

.btn-outline-golden:hover {
    background: var(--golden);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================
   PRELOADER
   ========================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top-color: var(--golden);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */

.ttc-navbar {
    background: var(--primary-teal);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white) !important;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-teal), var(--golden));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--bg-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--golden) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--golden);
    color: white;
}

.nav-contact-info {
    display: flex;
    align-items: center;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(245, 158, 11, 0.05));
    padding: 80px 0;
    overflow: hidden;
}

.hero-shape-top {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-bottom {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--golden), var(--light-golden));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--golden);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-teal);
    color: var(--text-muted);
}

.hero-image-placeholder i {
    font-size: 4rem;
    color: var(--light-teal);
    margin-bottom: 1rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--golden);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.7;
}

.service-link {
    color: var(--golden);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--dark-golden);
    gap: 0.75rem;
}

/* ==========================================
   WHY US SECTION
   ========================================== */

.why-us-section {
    padding: 80px 0;
}

.why-us-image {
    margin-bottom: 2rem;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-teal);
    color: var(--text-muted);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--light-teal);
    margin-bottom: 1rem;
}

.reason-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.reason-item:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(245, 158, 11, 0.05));
    transform: translateX(5px);
}

.reason-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--golden), var(--light-golden));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.reason-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.reason-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ==========================================
   TESTIMONIAL SECTION
   ========================================== */

.testimonial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(245, 158, 11, 0.05));
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars i {
    color: var(--golden);
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */

.ttc-footer {
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    padding-left: 40px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 40px;
}

.footer-text i {
    width: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    width: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--golden);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-left: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--golden);
    color: var(--text-dark);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--golden), var(--dark-golden));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-image-wrapper {
        height: 300px;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .back-to-top {
        bottom: 1rem;
    }
}

/* ==========================================
   GALLERY MODAL
   ========================================== */

.gallery-modal {
    background-color: #0f0f0f !important;
    color: white;
}

.gallery-modal .modal-header {
    background-color: rgba(4, 83, 77, 0.2);
    border-color: var(--primary-teal);
}

.gallery-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.gallery-modal .btn-close {
    filter: invert(1);
}

.gallery-container {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(20, 184, 166, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-loading {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--light-teal);
    width: 100%;
}

.gallery-loading .spinner-border {
    color: var(--light-teal) !important;
}

.gallery-empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    width: 100%;
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--light-teal);
    opacity: 0.5;
}

.gallery-empty p {
    font-size: 1.1rem;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: scaleIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--light-teal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
