/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --primary: #e63946;
    --secondary: #1d3557;
    --light: #f1faee;
    --accent: #a8dadc;
    --dark: #457b9d;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #495057;

    /* Typography */
    --font-family: 'Kanit', sans-serif;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2.2rem;
    --font-size-4xl: 2.8rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER STYLES
   ======================================== */
header {
    background-color: rgba(29, 53, 87, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    height: 50px;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 5px;
}

.company-name {
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: 1px;
}

.company-name span {
    color: var(--accent);
    font-weight: 300;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    padding: var(--space-xs) 0;
    position: relative;
    transition: all var(--transition-base);
    font-size: var(--font-size-lg);
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-base);
}

nav ul li a:hover::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(29, 53, 87, 0.7), rgba(29, 53, 87, 0.7)),
        url('../images/background.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 var(--space-sm);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, var(--font-size-5xl));
    margin-bottom: var(--space-md);
    animation: fadeIn 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 1200px;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 700px;
    margin-bottom: 2.5rem;
    animation: fadeIn 1.5s ease;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-sm) 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    animation: fadeIn 2s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #c1121f;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: var(--space-3xl) 10%;
}

.section-title {
    font-size: clamp(2rem, 4vw, var(--font-size-4xl));
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-xl);
}

.about-text p {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: #555;
}

.about-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-slow);
}

.about-image img {
    width: 120%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   IATF CERTIFICATION SECTION
   ======================================== */
.iatf-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 90%);
    padding: 60px 0;
    margin: 0px 0;
    border-radius: 15px;
}

.iatf-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.iatf-logo {
    text-align: center;
}

.iatf-logo img {
    width: 300px;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.iatf-logo img:hover {
    transform: translateY(-5px);
}

.iatf-title {
    color: var(--secondary);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    
}

.iatf-title i {
    color: var(--dark);
    font-size: 1.8rem;
}

.iatf-description {
    color: var(--gray-dark);
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: 25px;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 30px;
    gap: 8px;
}

.iatf-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.iatf-feature {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--dark);
    transition: transform var(--transition-base);
}

.iatf-feature:hover {
    transform: translateY(-3px);
}

.iatf-feature h5 {
    color: var(--secondary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iatf-feature i {
    color: var(--dark);
    font-size: var(--font-size-lg);
}

.iatf-feature p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    background-color: var(--secondary);
    color: var(--white);
    padding: var(--space-3xl) 0;
    position: relative;
}

.gallery-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.gallery-title {
    color: var(--white);
    margin-bottom: var(--space-2xl);
}

.gallery-title::after {
    background-color: var(--accent);
}

.gallery-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 80%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform var(--transition-slow);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.slide-caption h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xs);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 var(--space-lg);
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
    gap: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active,
.dot:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ========================================
   MAIN CONTENT & CONTAINER
   ======================================== */
.container {
    max-width: 100px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    background-color: var(--light);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: var(--radius-md);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: var(--space-lg);
}

.service-content h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-2xl);
    color: var(--secondary);
}

.service-content p {
    color: #666;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-base);
    gap: var(--space-xs);
}

.read-more:hover {
    color: var(--secondary);
}

.read-more span {
    transition: transform var(--transition-base);
}

.read-more:hover span {
    transform: translateX(5px);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
    background-color: var(--white);
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 var(--space-sm);
    margin-bottom: var(--space-xl);
}

.step-number {
    width: 120px;
    height: 120px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    transition: all var(--transition-base);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--secondary);
}

.process-step h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-2xl);
    color: var(--secondary);
}

.process-step p {
    color: #666;
    line-height: 1.7;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 5rem 10% var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
    color: var(--accent);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    color: #ddd;
    font-weight: 300;
    gap: var(--space-sm);
}

.contact-info p span {
    color: var(--accent);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: all var(--transition-base);
    font-size: var(--font-size-xl);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-weight: 300;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media screen and (max-width: 1200px) {
    section {
        padding: 5rem 8%;
    }
}

/* Tablet Large */
@media screen and (max-width: 300px) {
    .header-container {
        padding: var(--space-sm) 3%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .iatf-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-steps::before {
        display: none;
    }

    .gallery-slider {
        height: 400px;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }

    .header-container {
        flex-direction: column;
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .gallery-slider {
        height: 300px;
    }

    .slider-nav {
        padding: 0 var(--space-sm);
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
}
/* ========================================
   READ MORE FUNCTIONALITY
   ======================================== */
   .service-content .text-preview {
    display: inline;
}

.service-content .text-full {
    display: none;
}

.service-card.expanded .text-preview {
    display: none;
}

.service-card.expanded .text-full {
    display: inline;
}

.service-content .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    margin-left: 5px;
}

.service-content .read-more:hover {
    color: var(--secondary);
}

.service-content .read-more span {
    margin-left: 5px;
    transition: transform var(--transition-base);
}

.service-content .read-more:hover span {
    transform: translateX(3px);
}

.service-card.expanded .read-more span {
    transform: rotate(90deg);
}

.service-content p {
    transition: all var(--transition-base);
}

/* Mobile */
@media screen and (max-width: 576px) {
    .btn {
        padding: 0.8rem var(--space-lg);
        font-size: var(--font-size-base);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .iatf-features {
        grid-template-columns: 1fr;
    }

    
}