/**
 * A.T.C.S CSS Stylesheet
 * Colors derived from logo: Muted Blue (#5485B8), Light Blue (#0083FA), Bright Red (#FF0000), Black (#000000)
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
    /* Core Colors */
    --primary-blue: #5485B8;
    --primary-blue-dark: #3A638E;
    --accent-blue: #0083FA;
    --accent-red: #E60000;
    /* Slightly deeper red for premium feel */
    --accent-red-hover: #b30000;

    /* Grays & Neutrals */
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;

    /* Layout */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 131, 250, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hidden-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-hover));
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(230, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(230, 0, 0, 0.4);
}

.btn:hover::after {
    opacity: 1;
}

/* =========================================
   Sections & Layout
   ========================================= */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   Header (Glassmorphism)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

.header.scrolled .container {
    height: 70px;
}

.logo {
    max-height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-list a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-list a:hover {
    color: var(--accent-blue);
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('images/page12_img0.jpeg') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(84, 133, 184, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin-top: 50px;
}

.hero-content h1 {
    color: white;
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-content h2 {
    color: var(--accent-blue);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    -webkit-text-fill-color: initial;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* =========================================
   About Structure
   ========================================= */
.about-grid {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--accent-blue));
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.feature-list>li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.feature-list>li>strong {
    color: var(--text-dark);
    display: inline-block;
    margin-bottom: 5px;
}

.feature-list>li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: rgba(0, 131, 250, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.feature-list ul {
    margin-top: 10px;
    padding-left: 20px;
}

.feature-list ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feature-list ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

/* =========================================
   Sectors Cards
   ========================================= */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transition: height 0.4s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    height: 100%;
}

.card:hover h3,
.card:hover p {
    color: white;
}

.card h3 {
    transition: var(--transition);
}

.card p {
    color: var(--text-light);
    margin-top: 10px;
    transition: var(--transition);
}

/* =========================================
   Materials Section
   ========================================= */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.material-col {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-red);
}

.material-list li {
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.material-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin-right: 15px;
}

/* =========================================
   Facilities
   ========================================= */
.team-quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.team-info,
.quality-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-info:hover,
.quality-info:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.team-info h3 {
    color: var(--accent-red);
}

.quality-info h3 {
    color: var(--accent-blue);
}

.team-info>p {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* =========================================
   Gallery (Premium Grid)
   ========================================= */
.gallery {
    background: var(--text-dark);
}

.gallery h2 {
    color: white;
    background: none;
    -webkit-text-fill-color: initial;
}

.gallery .divider {
    background: var(--accent-red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    opacity: 0.8;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 0.4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* =========================================
   Footer (Goodspartiate requirement)
   ========================================= */
.footer {
    background-color: #0F172A;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--primary-blue), var(--accent-blue));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 1.1rem;
    margin-top: 15px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.powered-by {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.powered-by a {
    color: white;
    font-weight: 800;
    background: linear-gradient(90deg, #00C6FF, #0072FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
    position: relative;
}

.powered-by a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #00C6FF, #0072FF);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.powered-by a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   Responsive 
   ========================================= */
@media (max-width: 992px) {
    .team-quality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .nav-list {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-list.active {
        max-height: 400px;
        padding: 20px 0;
    }

    .nav-list a {
        padding: 15px 24px;
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }

    .nav-list a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid {
        padding: 30px 20px;
    }
}

/* =========================================
   Lightbox (Image Zoom)
   ========================================= */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: white;
    /* Give a white background for transparent images */
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-red);
}

/* =========================================
   Contact Page Styles
   ========================================= */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--accent-blue));
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.contact-section {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    background: var(--bg-light);
    color: var(--accent-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card-content h3 {
    margin-bottom: 5px;
    color: var(--primary-blue-dark);
}

.contact-card-content p,
.contact-card-content a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-card-content a:hover {
    color: var(--accent-blue);
}

.contact-form-container {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.file-input-label {
    display: block;
    padding: 15px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
}

.file-input-label:hover {
    background: #f1f5f9;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.file-input-label i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .contact-hero {
        padding: 100px 0 60px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }
}