@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== COLORS ===== */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3f73;
    --primary-light: #4a7bc8;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* Homepage-compatible variables */
    --primary: #073172;
    --dark: #2d3748;
    --accent: #f4a261;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff; /* solid white to match homepage */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.2rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Logo image in navbar */
.nav-logo img {
    height: auto; /* responsive height */
    max-height: clamp(32px, 8vw, 58px); /* scale with viewport, cap between 32px and 58px */
    width: auto;
    display: block;
    transform: none;
    transform-origin: left center;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

/* Underline accent like homepage */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #2d3748; /* keep same text color as homepage */
    background-color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #073172; /* match homepage burger color */
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.headshot {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: 8px solid white;
    box-shadow: var(--shadow-hover);
    display: block;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-quote {
    margin-bottom: 4rem;
}

.about-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding: 0 0.5rem;
}

.about-quote blockquote::before,
.about-quote blockquote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    top: -4px;
}

.about-quote blockquote::before {
    left: 0.1rem;
}

.about-quote blockquote::after {
    right: 0.1rem;
}

.about-quote cite {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== SERVICES SECTION (Redesigned) ===== */
.services-preview {
    width: 100%;
    padding: 100px 0;
    background: #e2e2e2;
}

.services-preview h2 {
    text-align: center;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

/* Responsive grid: mobile 1, tablet 2, desktop 3; gaps 60px vertical, 40px horizontal */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile default */
    column-gap: 40px;
    row-gap: 60px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card layout & styling */
.service-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden; /* ensure image and content respect rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0; /* no padding around image area */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

/* Image as full-width banner at top of the card */
.service-card img {
    width: 100%;
    height: 220px; /* desktop default */
    object-fit: cover;
    display: block;
    margin: 0; /* no margin around image */
    border-radius: 16px 16px 0 0; /* align with card top corners */
}

/* Card body content under the image */
.service-card-body {
    padding: 20px 30px; /* equal left/right padding ~30px */
    text-align: left;   /* left-align text */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* keep button centered via align-self */
}

/* Typography inside card */
.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px; /* ~15px gap to description */
}

.service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0; /* ensure p-to-button gap is from button margin */
}

/* Button inside card (if present) */
.service-card .btn {
    margin-top: 20px; /* ~20–25px gap from description */
    height: 45px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center; /* keep button centered horizontally */
}

/* Slightly reduced scale on smaller screens */
@media (max-width: 1199px) {
    .services-preview { padding: 90px 0; }
    .service-card h3 { font-size: 20px; }
    .service-card p { font-size: 15px; }
    .service-card img { height: 200px; }
}

@media (max-width: 768px) {
    .services-preview { padding: 80px 0; }
    .services-preview h2 { margin-bottom: 32px; }
    .service-card h3 { font-size: 18px; }
    .service-card p { font-size: 14px; }
    .service-card img { height: 180px; }
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: calc(var(--nav-h, 80px) + 40px) 0 60px 0; /* align below navbar like homepage */
    background: #002791;
    background: radial-gradient(circle, rgba(0, 39, 145, 1) 0%, rgba(27, 97, 188, 1) 28%, rgba(0, 107, 168, 1) 54%, rgba(27, 97, 188, 1) 81%, rgba(0, 49, 79, 1) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== QUALIFICATIONS SECTION ===== */
.qualifications-section {
    padding: 80px 0;
    background: white;
}

.qualification-category h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.qualification-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.qualification-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 5px;
    display: block;
    border: none;
}

/* Ensure qualification images are not affected by placeholder styles */
.qualification-icon img[src*="qual"],
.qualification-icon img[src*="qualifikation"] {
    border: none !important;
    background: white !important;
    min-height: auto !important;
}

.qualification-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.qualification-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.experience-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    top: 2.5rem;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
    margin: 0;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: 80px 0;
    background: rgb(240, 240, 240);
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: var(--secondary-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== CLIENT LOGOS SECTION ===== */
.client-logos-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.client-logos-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
}

.logos-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Tile wraps card (logo) and caption below it */
.client-logos-section .logo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

/* White card only for the logo */
.client-logos-section .logo-item {
    background: white;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    transition: transform 0.3s ease;
}

.client-logos-section .logo-item:hover {
    transform: translateY(-3px);
}

/* Fixed frame to make all logos visually the same size */
.client-logos-section .logo-frame {
    width: 180px;
    height: 100px;
    display: grid;
    place-items: center;
}

.client-logos-section .logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.client-logos-section .logo-item:hover .logo-frame img {
    filter: none;
    opacity: 1;
}

/* Caption under the logo card */
.client-logos-section .logo-caption {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.2;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
    padding: 80px 0;
    background: white;
}

.case-studies-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-study-image {
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.case-study-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-study-content p:last-child {
    margin-bottom: 0;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.statistics-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== LOGO BELT SECTION ===== */
.logo-belt {
    padding: 60px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.logo-belt .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 600;
}

.logo-belt-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask: linear-gradient(90deg, transparent 0%, white 10%, white 90%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, white 10%, white 90%, transparent 100%);
}

.logo-belt-track {
    display: flex;
    width: calc(400% + 12rem);
    animation: scroll 45s linear infinite;
    gap: 3rem;
    align-items: center;
}

.logo-belt-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.logo-item img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0 40px 0;
    background: url('../images/footer/footer.jpg') center/cover no-repeat var(--text-dark);
    color: var(--primary-color);
}

.contact-content {
    text-align: left;
    margin-bottom: 3rem;
}

.contact-content h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--primary-light);
    font-size: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-light);
}

.contact-item span {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Footer brand image */
.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: left;
}

.footer-bottom p {
    color: var(--primary-light);
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.3rem;
    }
    
    .skills-section h2 {
        margin-bottom: 4.5rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0%;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-h, 70px);
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Smaller visual logo on mobile */
    .nav-logo img {
        height: auto;
        max-height: clamp(28px, 7vw, 44px);
        transform: none;
        transform-origin: left center;
        object-fit: contain;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .headshot {
        width: 100%;
        height: auto;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .qualification-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .skills-section h2 {
        margin-bottom: 3.5rem;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
    
    .logos-carousel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.client-logos-section .logo-frame {
        width: 160px;
        height: 90px;
    }

    .client-logos-section .logo-caption {
        font-size: 0.9rem;
    }
    
    .logo-belt .section-title {
        font-size: 2rem;
    }
    
    .logo-belt-track {
        gap: 3rem;
    }
    
    .logo-item img {
        max-height: 90px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 100px 0 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .headshot {
        width: 100%;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logos-carousel {
        grid-template-columns: 1fr;
    }

.client-logos-section .logo-frame {
        width: 140px;
        height: 80px;
    }

    .client-logos-section .logo-caption {
        font-size: 0.85rem;
    }
    
    .logo-belt .section-title {
        font-size: 1.8rem;
    }
    
    .logo-belt-track {
        gap: 2rem;
    }
    
    .logo-item img {
        max-height: 70px;
    }
    
    .qualification-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .skills-section h2 {
        margin-bottom: 3rem;
    }
    
    .skill-category {
        padding: 1.5rem 1.2rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        line-height: 1.1;
        margin-bottom: 1.2rem;
    }
    
    .skills-grid {
        gap: 1.5rem;
    }
}

/* ===== PLACEHOLDER STYLES FOR MISSING IMAGES ===== */
img[src*="certificate-icon"],
img[src*="placeholder"],
img[src*="missing"] {
    background: var(--secondary-color);
    border: 2px dashed var(--border-color);
    position: relative;
    min-height: 100px;
}

img[src*="headshot"]::after {
    content: "Professional Headshot";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== SMOOTH ANIMATIONS ===== */
.qualification-item,
.service-card,
.testimonial-card,
.case-study-card,
.skill-category,
.highlight-item,
.stat-item,
.logo-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DYNAMIC QUOTE TYPING EFFECT ===== */
.typing::after {
    content: '|';
    margin-left: 2px;
    color: var(--primary-color);
    animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
    50% { opacity: 0; }
}
