/* 
   Cong Ty TNHH T&T Integrated Group
   Main Stylesheet
*/

:root {
    --primary-color: #0F172A;
    /* Slate 900 - Premium Dark */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #D97706;
    /* Amber 600 - Sophisticated Gold */
    --accent-gradient: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    --bg-gradient: linear-gradient(to bottom right, #F8FAFC, #E2E8F0);
    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--accent-color);
    transition: all 0.3s;
    border-radius: 0.5rem;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::after {
    height: 100%;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-name-header {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 250px;
    text-transform: uppercase;
}

.logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 2rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Services */
.services {
    padding-top: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--bg-gradient);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    background: var(--accent-gradient);
}

.icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
    color: var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    font-size: 2.5rem;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card:hover .icon-box {
    background: var(--accent-gradient);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding-top: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.about-img img {
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-info-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border-top: 4px solid var(--accent-color);
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
}

/* NEW SECTIONS STYLES */

/* Stats */
.stats {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 6rem;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 1rem;
}

.step-count {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(15, 23, 42, 0.1);
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1567&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.footer-contact p {
    margin-bottom: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        gap: 3rem;
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}