/* ========================================
   TECon Solutions - Custom Styles
   ======================================== */

/* ========================================
   Custom Fonts
   ======================================== */

@font-face {
    font-family: 'Bank Gothic';
    src: url('../fonts/Bank Gothic Light Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bank Gothic';
    src: url('../fonts/BankGothicMediumBT.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bank Gothic';
    src: url('../fonts/bank gothic medium bt.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bank Gothic';
    src: url('../fonts/BankGothic Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   Variables & Reset
   ======================================== */

:root {
    --primary-red: #dc2626;
    --primary-red-light: #ef4444;
    --navy-blue: #10103c;
    --dark-teal: #002627;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #666;
    --text-dark: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--navy-blue);
    overflow-x: hidden;
}

.section-padding {
    padding: 5rem 0;
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.fixed-top {
    background: rgba(10, 10, 35, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

header.scrolled .navbar.fixed-top {
    background: rgba(8, 8, 28, 0.98) !important;
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.4);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 70px;
    width: 70px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.2));
    border-radius: 50%;
    object-fit: cover;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-short {
    font-family: 'Bank Gothic', 'Arial Narrow', 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-full {
    font-family: 'Bank Gothic', 'Arial Narrow', 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: var(--primary-red);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.nav-links .nav-link {
    color: var(--white);
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition);
}

.nav-links .nav-link:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
}

.nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links .nav-link:hover::after {
    width: 80%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy-blue) url('../images/sky.jpg') center center/cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(16, 16, 60, 0.75), rgba(0, 38, 39, 0.75));
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

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

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--white), var(--primary-red));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: slideInUp 1s ease-out;
    letter-spacing: 2px;
}

.hero-motto {
    font-family: 'Bank Gothic', 'Arial Narrow', 'Arial', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--primary-red);
    letter-spacing: 4px;
    margin: 1.5rem 0;
    padding: 1rem 2.5rem;
    border-top: 3px solid var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
    animation: slideInUp 1s ease-out 0.2s both;
    text-transform: uppercase;
    background: rgba(16, 16, 60, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
    background: rgba(16, 16, 60, 0.5);
    padding: 1rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-red-light));
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
    color: var(--white);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Section Titles
   ======================================== */

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--navy-blue);
    position: relative;
    letter-spacing: 1px;
}

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

/* ========================================
   Services Section
   ======================================== */

.services {
    background: var(--gray-light);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(16, 16, 60, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.1);
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-red-light));
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 16, 60, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--white);
    font-size: 1.5rem;
}

.service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy-blue);
    letter-spacing: 0.5px;
}

.service-card p {
    font-family: 'Raleway', sans-serif;
    color: var(--gray-dark);
    line-height: 1.8;
    font-weight: 400;
    text-align: justify;
}

/* ========================================
   About Section
   ======================================== */

.about {
    background: var(--navy-blue);
    color: var(--white);
}

.about-text h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    letter-spacing: 1px;
}

.about-text p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.feature::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
    object-fit: cover;
    max-height: 400px;
}

/* ========================================
   Director Section
   ======================================== */

.director-section {
    background: var(--gray-light);
}

.director-info h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-align: center;
}

.director-info h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.director-summary {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(16, 16, 60, 0.08);
}

.director-summary-photo {
    flex-shrink: 0;
    width: 240px;
}

.director-summary-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(16, 16, 60, 0.15);
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.director-summary-text {
    flex: 1;
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: justify;
    color: var(--gray-dark);
    font-style: italic;
}

.experience-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(16, 16, 60, 0.08);
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: var(--transition);
    height: 100%;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 16, 60, 0.12);
}

.exp-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.exp-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

.exp-icon i {
    color: var(--primary-red);
}

.exp-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy-blue);
    line-height: 1.4;
}

.qualifications {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(16, 16, 60, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.qualifications h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.qual-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qualification {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qual-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.qual-icon i {
    color: var(--primary-red);
}

.qual-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.5;
}

/* ========================================
   Director Photo
   ======================================== */

.director-photo-main {
    width: 100%;
}

.director-photo-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 16, 60, 0.2);
    transition: var(--transition);
    width: 100%;
    aspect-ratio: 4 / 5;
}

.director-photo-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 16, 60, 0.3);
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.director-photo-caption {
    background: var(--navy-blue);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 16, 60, 0.2);
}

/* ========================================
   Director Gallery
   ======================================== */

.director-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gallery-item-compact {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(16, 16, 60, 0.15);
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.gallery-item-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 16, 60, 0.2);
}

.gallery-img-compact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption-compact {
    background: var(--navy-blue);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.gallery-grid {
    display: grid;
    grid-template-rows: 2fr 1fr 1fr;
    gap: 1rem;
    height: 500px;
}

.gallery-grid-single {
    width: 100%;
    margin-bottom: 2rem;
}

.gallery-grid-single:last-child {
    margin-bottom: 0;
}

.gallery-caption-section {
    width: 100%;
    margin: 1rem 0;
}

.gallery-caption-section .gallery-caption-outside {
    margin-top: 0;
}

.gallery-no-bottom-margin {
    margin-bottom: 0 !important;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(16, 16, 60, 0.15);
    transition: var(--transition);
}

.gallery-item-single {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 16, 60, 0.2);
    transition: var(--transition);
    width: 100%;
    aspect-ratio: 4 / 3;
}

.gallery-item:hover,
.gallery-item-single:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(16, 16, 60, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 16, 60, 0.95), rgba(16, 16, 60, 0.7));
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.gallery-caption-outside {
    background: var(--navy-blue);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 16, 60, 0.2);
    line-height: 1.4;
}

.main-image {
    grid-row: 1 / 2;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    background: var(--navy-blue);
}

.contact-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
}

.contact-header p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(16, 16, 60, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 0.95rem;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group .form-control.invalid {
    border-color: var(--primary-red);
    background: #fef2f2;
}

.error-message {
    color: var(--primary-red);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    background: #10b981;
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-red-light));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   Contact Info Section
   ======================================== */

.info-card,
.service-highlights,
.emergency-notice {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(16, 16, 60, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.info-card h3,
.service-highlights h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.3rem;
    width: 40px;
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content strong {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.25rem;
}

.info-content span {
    font-family: 'Raleway', sans-serif;
    color: var(--gray-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 50%;
    color: var(--navy-blue);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    border-color: var(--primary-red);
}

.social-link i {
    transition: var(--transition);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-item {
    font-family: 'Raleway', sans-serif;
    color: var(--gray-dark);
}

.emergency-notice {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
}

.emergency-notice h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.emergency-notice p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.emergency-notice strong {
    font-weight: 600;
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: var(--navy-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--primary-red);
}

footer p {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    margin: 0;
}

/* ========================================
   Scroll Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Utility Classes
   ======================================== */

.brand-accent {
    color: var(--primary-red);
}

.navy-text {
    color: var(--navy-blue);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero {
        min-height: 80vh;
        padding-top: 140px;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .director-summary {
        flex-direction: column;
        padding: 1.5rem;
    }

    .director-summary-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1.5rem auto;
    }

    .director-photo-main {
        margin-top: 2rem;
    }

    .director-photo-wrapper {
        aspect-ratio: 4 / 5;
        max-width: 400px;
        margin: 0 auto;
    }

    .director-gallery {
        margin-top: 2rem;
    }

    .gallery-grid {
        grid-template-rows: 200px 150px 150px;
        height: auto;
    }

    .gallery-item-single {
        aspect-ratio: 4 / 3;
    }

    .gallery-grid-single {
        margin-bottom: 1.5rem;
    }

    .gallery-caption-section {
        margin: 1rem 0;
    }

    .gallery-item-compact {
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 70vh;
        padding-top: 180px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-motto {
        font-size: 0.9rem;
        letter-spacing: 2px;
        padding: 0.75rem 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text h2,
    .director-info h2,
    .contact-header h2 {
        font-size: 1.8rem;
    }

    .director-info h3 {
        font-size: 1.3rem;
    }

    .director-summary {
        padding: 1.25rem;
    }

    .director-summary-photo {
        max-width: 250px;
    }

    .director-summary-text {
        font-size: 1rem;
    }

    .director-photo-caption {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }

    .director-photo-wrapper {
        max-width: 350px;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-image {
        height: 55px;
        width: 55px;
    }

    .logo-short {
        font-size: 1.2rem;
    }

    .logo-full {
        font-size: 0.55rem;
    }

    .gallery-item-single {
        aspect-ratio: 4 / 3;
    }

    .gallery-grid-single {
        margin-bottom: 1.5rem;
    }

    .gallery-caption-section {
        margin: 1rem 0;
    }
}

@media (max-width: 575px) {
    .contact-form {
        padding: 1.5rem;
    }

    .service-card,
    .experience-item,
    .qualifications,
    .info-card,
    .service-highlights {
        padding: 1.5rem;
    }

    .director-summary {
        padding: 1rem;
    }

    .director-summary-photo {
        max-width: 200px;
    }

    .director-summary-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .director-photo-caption {
        font-size: 0.8rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .director-photo-wrapper {
        max-width: 300px;
        aspect-ratio: 3 / 4;
    }

    .logo {
        gap: 0.4rem;
    }

    .logo-image {
        height: 50px;
        width: 50px;
    }

    .logo-short {
        font-size: 1rem;
    }

    .logo-full {
        display: none;
    }

    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .gallery-item-single {
        aspect-ratio: 4 / 3;
    }

    .gallery-grid-single {
        margin-bottom: 1rem;
    }

    .gallery-caption-section {
        margin: 1rem 0;
    }

    .gallery-caption-outside {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Nest Hub specific adjustments */
@media (max-width: 1024px) and (max-height: 600px) {
    .hero {
        padding-top: 150px;
    }
}
