/* --- Variables & Reset --- */
:root {
    --primary-color: #DA291C; /* Canadian Red */
    --secondary-color: #00A4E4; /* TTI Blue */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #4a4a4a;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-heading); color: var(--dark-color); line-height: 1.2; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; position: relative; display: inline-block; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px; 
    background: var(--primary-color); margin: 10px auto 0;
}
.highlight-text { color: var(--primary-color); }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-color); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 5px;
    font-weight: 600; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #b01c11; }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark-color); }
.btn-light { background: var(--white); color: var(--primary-color); }
.btn-light:hover { background: var(--dark-color); color: var(--white); }
.full-width { width: 100%; }

/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 50px; }

.nav-menu ul { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-weight: 600; font-size: 0.95rem; color: var(--dark-color); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }
.btn-contact {
    background: var(--secondary-color); color: var(--white) !important;
    padding: 8px 20px; border-radius: 4px;
}
.btn-contact:hover { opacity: 0.9; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background: var(--dark-color); margin: 5px 0; transition: var(--transition); }

/* --- Hero Section --- */
.hero {
    background: url('../images/banner1.jpg') no-repeat center center/cover;
    height: 90vh;
    position: relative;
    display: flex; align-items: center;
    color: var(--white);
    margin-top: -1px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--white); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 15px; }

/* --- Stats --- */
.stats { background: var(--primary-color); padding: 40px 0; color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 30px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 1rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: 10px; box-shadow: var(--shadow); }
.img-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--secondary-color); color: var(--white);
    padding: 20px; border-radius: 5px; font-weight: 700;
    box-shadow: var(--shadow);
}
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.check-list li::before {
    content: '✔'; position: absolute; left: 0; color: var(--primary-color);
}

/* --- CEO Section --- */
.ceo-grid {
    display: grid; 
    /* 'auto' for the image column, '1fr' for the text column to take remaining space */
    grid-template-columns: auto 1fr; 
    gap: 50px; 
    align-items: start; /* Aligns text to the top to match the image */
    margin-top: 20px;
}

.ceo-image-wrapper img {
    /* Passport aspect ratio (35mm x 45mm = 7:9 ratio) */
    width: 210px;   
    height: 270px;  
    
    /* Image behavior */
    object-fit: cover; 
    
    /* Red Border Effect */
    border: 5px solid var(--primary-color); 
    border-radius: 0; /* Sharp corners for passport style */
    
    /* Layout: Strictly left aligned with no margin */
    margin: 0; 
    box-shadow: var(--shadow);
}

.ceo-content {
    text-align: left; /* Ensures text is left-aligned, not centered */
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
    .ceo-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        text-align: center; /* Center text on mobile for better look */
    }
    .ceo-image-wrapper img {
        margin: 0 auto 30px; /* Center image on mobile only */
    }
    .ceo-content {
        text-align: center;
    }
}

/* --- Values Section (New) --- */
.values-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px;
}
.value-card {
    background: var(--white); padding: 40px 30px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center;
    border-top: 4px solid var(--secondary-color);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* --- Services --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px;
}
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    box-shadow: var(--shadow);
}
.icon-box { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; }

/* --- Training Table (New) --- */
.table-responsive {
    overflow-x: auto;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border-radius: 10px;
}
.data-table {
    width: 100%; border-collapse: collapse; min-width: 800px;
}
.data-table th, .data-table td {
    padding: 15px 20px; text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background-color: #006b54; /* Dark Green from image */
    color: var(--white); font-weight: 600;
}
.data-table tr:nth-child(even) { background-color: #e8f5e9; } /* Light Green tint */
.data-table tr:hover { background-color: #f1f1f1; }

/* --- Gallery --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 40px;
}
.gallery-item { overflow: hidden; border-radius: 8px; height: 250px; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

/* --- CTA --- */
.cta-section {
    background: linear-gradient(45deg, var(--secondary-color), #253b50);
    padding: 80px 0; color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 15px; }
.cta-section .btn { margin-top: 20px; }

/* --- Contact --- */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px;
    background: var(--white); border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow);
}
.contact-info {
    background: var(--dark-color); color: var(--white); padding: 50px;
}
.contact-info h3 { color: var(--white); margin-bottom: 20px; }
.info-item { display: flex; gap: 15px; margin-top: 30px; align-items: flex-start; }
.info-item .icon { font-size: 1.5rem; color: var(--primary-color); }
.contact-form { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd;
    border-radius: 5px; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color); outline: none;
}


/* --- Form Status Message Styles --- */
#my-form-status {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    transition: var(--transition);
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.footer { background: #111; color: #888; padding: 30px 0; font-size: 0.9rem; }

/* --- Animations --- */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0; transition: all 0.8s ease-out;
}
.fade-in { transform: scale(0.95); }
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.visible { opacity: 1; transform: none; }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper, .ceo-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 30px; }
    .img-badge { right: 0; }
    .ceo-grid { text-align: center; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .mobile-toggle { display: block; z-index: 1001; }
    .mobile-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: var(--white); flex-direction: column; padding: 100px 30px;
        transition: 0.4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; }
}