/* ===================================================================
   PORTFOLIO WEBSITE - GLOBAL STYLES
   Strict Native Web Design: Vanilla CSS3 Only
   =================================================================== */

/* ===================================================================
   1. CSS CUSTOM PROPERTIES (Variables)
   =================================================================== */
:root {
    /* Color Palette - Airy Light Green & Petrol */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f5faf8;
    --color-bg-tertiary: #ecf7f2;
    
    /* Text Colors */
    --color-text-primary: #041c11;
    --color-text-secondary: #235143;
    --color-text-muted: #34413b;
    
    /* Accent Colors - Petrol */
    --color-accent: #0a737d;
    --color-accent-light: #00757e;
    --color-accent-dark: #01454d;
    
    /* Border & Divider Colors */
    --color-border: #d4e0da;
    --color-border-strong: #b8c5be;
    
    /* Gradients */
    --gradient-subtle: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    
    /* Section Background Shades - more visible contrast */
    --section-bg-light: #ffffff;
    --section-bg-shade: #d4e0da;
    
    /* Spacing Scale (rem-based for accessibility) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Font Sizes - Responsive using clamp() */
    --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 1.2vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 1.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 2vw, 4.5rem);
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows - Subtle & Elegant */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

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

html {
    /* Enable smooth scrolling globally */
    scroll-behavior: smooth;
    
    /* Scrollbar styling for WebKit */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg-secondary);
}

html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

html::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-full);
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

body {
    min-height: 100vh;
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 7rem;
}

section, article {
    scroll-margin-top: 7rem;
}

/* Section Background Shading - Alternating colors for visible transitions */

/* Hero Section */
.hero {
    background: var(--section-bg-light);
}

/* Services Section */
#services {
    background: var(--section-bg-shade);
}

/* About Section */
#about {
    background: var(--section-bg-light);
}

/* Blog Section */
#blog {
    background: var(--section-bg-shade);
}

/* Contact Section */
#contact {
    background: var(--section-bg-light);
}

/* Selection styling */
::selection {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
}

/* Focus styling for accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===================================================================
   3. TYPOGRAPHY
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-m); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

ul, ol {
    padding-left: 0;
}

li {
    margin-left: var(--space-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-dark);
}

/* Monospace text (for code, dates, etc.) */
code, .mono {
    font-family: var(--font-family-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ===================================================================
   4. LAYOUT UTILITIES
   =================================================================== */

/* Container - Centered content with max-width */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Base Styles */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Section Background Shading */


/* Spacing Utilities */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.py-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Screen Reader Only - Accessible but visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================================================================
   5. GLOBAL COMPONENTS
   =================================================================== */

/* ---------------------------------------------------------------
   5.1 NAVBAR / HEADER
   --------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg-primary);
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

/* Header spacer to prevent content from being hidden behind fixed navbar */
.header-spacer {
    width: 100%;
    /* Height will be set via JavaScript to match navbar */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}



.navbar-logo {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-wide);
}

.navbar-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.navbar-nav a {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.navbar-nav a:hover {
    color: var(--color-accent);
    background: rgba(100, 108, 255, 0.08);
    border-radius: var(--radius-sm);
}

.navbar-nav a:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: calc(var(--z-sticky) + 10);
    color: var(--color-text-primary);
}

/* Mobile Navigation */
#mobile-nav ul {
    list-style: none;
    padding: var(--space-md);
    margin: 0;
}

#mobile-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

#mobile-nav a:hover {
    color: var(--color-accent);
}

/* Services Dropdown Menu */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    padding: var(--space-sm) 0;
    list-style: none;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .dropdown-menu li {
    padding: 0;
}

.navbar-nav .dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
    text-transform: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.navbar-nav .dropdown-menu a:hover {
    color: var(--color-accent);
    background: rgba(0, 109, 119, 0.08);
    border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------
   5.2 FOOTER
   --------------------------------------------------------------- */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
    display: block;
}

.footer-section a:hover {
    color: var(--color-accent);
}

/* Partner Logos */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.partner-logos img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.partner-logos a:hover img,
.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   5.3 BUTTONS
   --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    transform: translateY(-2px);
    color: var(--color-accent-light);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-strong);
}

.btn-outline:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-accent);
}

/* ---------------------------------------------------------------
   5.4 CARDS (Portfolio Items, Service Cards)
   --------------------------------------------------------------- */
.card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.card-image {
    width: 100%;
    height: 200px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.card p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.card-meta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------
   5.4b SERVICE GRID LAYOUT
   --------------------------------------------------------------- */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.service-item {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: max(25px, 5%);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    min-height: 400px;
    align-items: center;
}

.service-item .service-image {
    grid-column: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    justify-self: start;
    align-self: center;
}

.service-item .service-content {
    grid-column: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
}

.service-item.reverse {
    grid-template-columns: 1fr 40%;
    gap: max(25px, 5%);
}

.service-item.reverse .service-image {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

.service-item.reverse .service-content {
    grid-column: 1; 
    grid-row: 1;
    align-self: center; 
    display: flex;
    flex-direction: column;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

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

.service-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* Responsive adjustments for service grid */
@media (max-width: 768px) {
    .service-item,
    .service-item.reverse {
        min-height: auto;
        grid-template-columns: 1fr !important;
        gap: max(25px, 5%);
    }
    
    .service-item .service-image,
    .service-item.reverse .service-image {
        grid-row: 1 !important;
        grid-column: 1 !important;
        width: 80%;
        aspect-ratio: 2 / 1;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-lg);
        order: -1;
        justify-self: center !important;
        align-self: start !important;
    }
    
    .service-item .service-content,
    .service-item.reverse .service-content {
        grid-row: 2 !important;
        grid-column: 1 !important;
        width: auto;
        justify-self: center !important;
    }
    
    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ---------------------------------------------------------------
   5.5 HERO SECTION
   --------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    background: var(--gradient-subtle);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/Hero_section_cropped.jpg') center/cover no-repeat;
    opacity: 0.5;
    filter: blur(1px);  
}

.hero-content {
    max-width: 800px;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-xl);
    font-weight: var(--font-weight-bold);
}

.hero p {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    font-weight: var(--font-weight-medium);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   5.6 PORTFOLIO GRID
   --------------------------------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.portfolio-item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-item-image img {
    transform: scale(1.1);
}

.portfolio-item-content {
    padding: var(--space-lg);
    background: var(--color-bg-primary);
}

.portfolio-item-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.portfolio-item-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------
   5.7 PROFILE & CONTACT SECTION
   --------------------------------------------------------------- */
.profile-section {
    padding: var(--space-4xl) 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3xl);
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content h2 {
    margin-bottom: var(--space-md);
}

.profile-content p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
}

.contact-info {
    margin-top: var(--space-xl);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ===================================================================
   6. SCROLL-DRIVEN ANIMATIONS
   =================================================================== */

/* Enable scroll-driven animations on supported browsers */
@media (prefers-reduced-motion: no-preference) {
    /* Fade in from bottom on scroll */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Fade in with scale on scroll */
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Slide in from left on scroll */
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Slide in from right on scroll */
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Apply scroll-driven animations */
    .animate-fade-in-up {
        animation: fadeInUp 0.8s ease-out forwards;
        animation-timeline: view();
        animation-range: entry 20% cover 40%;
    }

    .animate-fade-in-scale {
        animation: fadeInScale 0.8s ease-out forwards;
        animation-timeline: view();
        animation-range: entry 20% cover 40%;
    }

    .animate-slide-in-left {
        animation: slideInLeft 0.8s ease-out forwards;
        animation-timeline: view();
        animation-range: entry 20% cover 40%;
    }

    .animate-slide-in-right {
        animation: slideInRight 0.8s ease-out forwards;
        animation-timeline: view();
        animation-range: entry 20% cover 40%;
    }

    /* Stagger animations for grid items */
    .service-item:nth-child(1) { animation-delay: 0.1s; }
    .service-item:nth-child(2) { animation-delay: 0.2s; }
    .service-item:nth-child(3) { animation-delay: 0.3s; }
    .service-item:nth-child(4) { animation-delay: 0.4s; }
    .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
    .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
    .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
    .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
    .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
    .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
}

/* Fallback for browsers without scroll-driven animations support */
@supports not (animation-timeline: view()) {
    .animate-fade-in-up,
    .animate-fade-in-scale,
    .animate-slide-in-left,
    .animate-slide-in-right {
        opacity: 1;
        transform: none;
    }
}

/* Fallback for browsers with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .animate-fade-in-scale,
    .animate-slide-in-left,
    .animate-slide-in-right {
        opacity: 1;
        transform: none;
    }
}

/* ===================================================================
   7. CONTENT OVERFLOW PREVENTION
   =================================================================== */

/* Text Overflow Prevention */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-wrap {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

/* Image Overflow Prevention */
img, svg, video, iframe, picture {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Overflow Prevention */
.container-overflow {
    overflow: hidden;
    position: relative;
}

/* Horizontal Scrolling Prevention */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-width: 0;
}

/* Prevent content from expanding beyond viewport */
[class*="grid"], [class*="flex"], .grid, .flex {
    min-width: 0;
}

/* Text Content Overflow */
p, li, span, div, article, section, header, footer, main, aside, nav {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Long Words Prevention */
.long-word {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* Code Block Overflow (already exists but enhanced) */
.code-block {
    overflow-x: auto;
    max-width: 100%;
}

/* Card Content Overflow */
.card, .blog-banner-item, .blog-post-card, .portfolio-item {
    overflow: hidden;
    position: relative;
}

/* Hero Section Content Control */
.hero-content {
    overflow: hidden;
}

/* Service/Content Cards with long lists */
.card ul, .card ol {
    overflow: hidden;
}

/* Mobile Navigation Overflow */
#mobile-nav {
    overflow-y: auto;
    max-height: 70vh;
    -webkit-overflow-scrolling: touch;
}

/* Prevent flex items from overflowing container */
.flex {
    min-width: 0;
}

/* ===================================================================
   8. HANDHELD MOBILE LAYER - REDUCED CONTENT
   Enhanced mobile styles for handheld devices with content reduction
   =================================================================== */

/* Handheld Mobile - Very Small Screens (Phones in portrait) */
@media (max-width: 480px) {
    /* Reduce and simplify content for handheld devices */
    
    /* More aggressive font size reduction for readability */
    :root {
        --text-base: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
        --text-sm: clamp(0.75rem, 0.7rem + 0.15vw, 0.875rem);
        --text-xs: clamp(0.625rem, 0.6rem + 0.1vw, 0.75rem);
        --text-lg: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
        --text-xl: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
        --text-2xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
        --text-3xl: clamp(1.5rem, 1.2rem + 0.8vw, 1.75rem);
    }
    
    /* Hero section adjustments for handheld */
    .hero {
        min-height: auto;
        padding: var(--space-2xl) var(--space-md);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
        line-height: var(--leading-tight);
    }
    
    .hero p {
        font-size: var(--text-lg);
        max-width: 100%;
    }
    
    /* Show all hero action buttons on mobile for better CTA */
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Section spacing reduction for handheld */
    .section {
        padding: var(--space-xl) 0;
    }
    
    /* Services section - reduce content */
    .card {
        padding: var(--space-md);
    }
    
    .card h3 {
        font-size: var(--text-lg);
    }
    
    .card p {
        font-size: var(--text-sm);
        max-width: 100%;
    }
    
    /* Hide service feature lists on handheld to reduce clutter */
    .card ul {
        display: none;
    }
    
    /* Show service buttons on handheld - link to same items as desktop */
    .service-content .btn {
        display: inline-flex;
        margin-top: var(--space-md);
        width: 100%;
        justify-content: center;
        font-size: 0;
        position: relative;
    }
    
    /* Replace long button text with just "Mehr erfahren" on handheld */
    .service-content .btn::before {
        content: "Mehr erfahren";
        font-size: var(--text-sm);
        font-weight: var(--font-weight-semibold);
        text-transform: uppercase;
        letter-spacing: var(--tracking-wide);
    }
    
    /* Profile/About section - stack and simplify */
    .profile-section {
        padding: var(--space-xl) 0;
    }
    
    .profile-grid {
        gap: var(--space-lg);
    }
    
    .profile-image {
        max-width: 250px;
        aspect-ratio: 1/1;
    }
    
    .profile-content p {
        font-size: var(--text-base);
        line-height: var(--leading-normal);
    }
    
    /* Simplify contact info on handheld */
    .contact-info-item span {
        font-size: var(--text-sm);
    }
    
    /* Blog banner section - reduce to single column */
    .blog-banner-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .blog-banner-item {
        padding: var(--space-md);
        display: flex;
        flex-direction: column;
    }
    
    .blog-banner-title {
        font-size: var(--text-lg);
    }
    
    .blog-banner-excerpt {
        font-size: var(--text-sm);
        display: none; /* Hide excerpts on handheld */
    }

    .blog-banner-item .btn {
        margin-top: auto;
    }
    
    /* Contact section cards */
    .grid.grid-cols-1 {
        gap: var(--space-md);
    }
    
    .card svg {
        width: 32px;
        height: 32px;
    }
    
    /* Footer simplification for handheld */
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-section h4 {
        font-size: var(--text-xs);
        margin-bottom: var(--space-sm);
    }
    
    .footer-section a {
        font-size: var(--text-xs);
        padding: var(--space-xs) 0;
    }
    
    /* Navbar logo reduction - maintain aspect ratio */
    .navbar-logo img {
        height: auto;
        max-height: 40px;
        width: auto;
        max-width: 100%;
    }
    
    /* Ensure buttons don't overflow on small screens */
    .btn {
        font-size: var(--text-xs);
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Force single column for all grids on handheld */
    .portfolio-grid,
    .blog-posts-grid,
    .benefits-grid,
    .accessibility-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Prevent any horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Ensure touch targets are large enough */
    a, button, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Reduce line length for better readability on small screens */
    .container {
        max-width: 100%;
        padding: 0 var(--space-md);
    }
    
    /* Hide less important content elements on handheld */
    .hero p {
        display: none; /* Hide subtitle on very small screens */
    }
    
    /* Condense blog banner items */
    .blog-banner-category {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-xs);
    }
    
    .blog-banner-date {
        font-size: var(--text-xs);
        align-self: center;
    }
    
    /* Blog post mobile optimizations */
    .blog-post-single {
        padding: var(--space-md);
    }
    
    .blog-post-content h2 {
        font-size: var(--text-2xl);
        margin: var(--space-lg) 0 var(--space-md);
    }
    
    .blog-post-content h3 {
        font-size: var(--text-xl);
        margin: var(--space-lg) 0 var(--space-md);
    }
    
    .blog-post-content h4 {
        font-size: var(--text-lg);
        margin: var(--space-md) 0 var(--space-sm);
    }
    
    .blog-post-content p {
        font-size: var(--text-base);
        margin-bottom: var(--space-md);
    }
    
    .blog-post-content blockquote {
        font-size: var(--text-lg);
        padding-left: var(--space-md);
        border-left: 3px solid var(--color-accent);
        margin: var(--space-md) 0;
    }
    
    .blog-post-featured-image {
        margin: 0 0 var(--space-lg);
    }
    
    .blog-post-featured-image img {
        border-radius: var(--radius-md);
    }
    
    .blog-post-header-single {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--color-border);
    }
    
    .blog-post-header-single h2 {
        font-size: var(--text-2xl);
    }
    
    .blog-post-body {
        margin-top: var(--space-md);
    }
    
    .blog-post-meta-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    /* Hide reading time on very small screens */
    .blog-post-reading-time {
        display: none;
    }
    
    /* Code block mobile optimization */
    .code-block {
        font-size: var(--text-xs);
        padding: var(--space-sm);
        margin: var(--space-md) 0;
    }
    
    .benefits-grid,
    .accessibility-stats {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile - Very constrained screens */
@media (max-width: 360px) {
    /* Extreme content reduction */
    :root {
        --text-base: 0.875rem;
        --text-lg: 1rem;
        --text-xl: 1.125rem;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .profile-section {
        padding: var(--space-lg) 0;
    }
    
    .blog-banner-section {
        padding: var(--space-lg) 0;
        background-color: var(--section-bg-shade);
    }
    
    .blog-banner-grid {
        gap: var(--space-sm);
    }
    
    .blog-banner-item {
        padding: var(--space-sm);
        display: flex;
        flex-direction: column;
    }

    .blog-banner-item .btn {
        margin-top: auto;
    }
    
    /* Hide all but essential navigation */
    .navbar-nav {
        display: none !important;
    }
    
    /* Ensure mobile nav is accessible */
    .navbar-toggle {
        display: block !important;
        padding: var(--space-sm);
    }
    
    /* Reduce footer to essentials only */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-bottom {
        padding-top: var(--space-md);
    }
    
    /* Extra small mobile blog optimizations */
    .blog-post-single {
        padding: var(--space-sm);
    }
    
    .blog-post-content h2 {
        font-size: var(--text-xl);
    }
    
    .blog-post-content h3 {
        font-size: var(--text-lg);
    }
    
    .blog-post-content p {
        font-size: var(--text-sm);
    }
    
    .blog-post-header-single h2 {
        font-size: var(--text-xl);
    }
    
    .blog-post-meta-hero {
        display: none; /* Hide meta on very small screens */
    }
    
    /* Hide category badges on very small screens */
    .blog-post-category,
    .blog-banner-category {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --space-4xl: 6rem;
    }
    
    .hero {
        padding: var(--space-3xl) var(--space-lg);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    :root {
        --text-5xl: clamp(2rem, 4vw + 1rem, 3rem);
        --text-4xl: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    /* Mobile Services Dropdown */
    #mobile-nav .dropdown {
        position: relative;
    }
    
    #mobile-nav .dropdown-menu {
        display: none;
        background: var(--color-bg-secondary);
        border-left: 3px solid var(--color-accent);
        margin-left: var(--space-sm);
        padding-left: var(--space-sm);
        list-style: none;
    }
    
    #mobile-nav .dropdown:hover .dropdown-menu,
    #mobile-nav .dropdown.expanded .dropdown-menu {
        display: block;
    }
    
    #mobile-nav .dropdown-menu a {
        display: block;
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-sm);
        color: var(--color-text-secondary);
        transition: color var(--transition-fast);
        text-transform: none;
        letter-spacing: normal;
    }
    
    #mobile-nav .dropdown-menu a:hover {
        color: var(--color-accent);
    }
    
    .hero {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .hero h1 {
        font-size: var(--text-4xl);
    }
    
    .hero p {
        font-size: var(--text-lg);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-lg);
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .profile-image {
        margin-bottom: var(--space-xl);
    }
    
    .contact-info {
        justify-content: center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    :root {
        --text-5xl: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
        --text-4xl: clamp(1.5rem, 4vw + 0.5rem, 2rem);
        --text-3xl: clamp(1.25rem, 3vw + 0.5rem, 1.75rem);
        --space-4xl: 3rem;
        --space-3xl: 2.5rem;
        --space-2xl: 2rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .navbar-container {
        padding: 0 var(--space-md);
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-section h4 {
        font-size: var(--text-sm);
    }
}

/* ---------------------------------------------------------------
   5.8 BLOG STYLES
   --------------------------------------------------------------- */

/* Blog Banner Section (for homepage) */
.blog-banner-section {
    padding: var(--space-3xl) 0;
    background-color: var(--section-bg-shade);
}

.blog-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.blog-banner-item {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-banner-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.blog-banner-category {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-md);
}

.blog-banner-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    line-height: var(--leading-tight);
}

.blog-banner-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.blog-banner-title a:hover {
    color: var(--color-accent);
}

.blog-banner-excerpt {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.blog-banner-date {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    align-items: center;
}

.blog-banner-item .btn {
    margin-top: auto;
}

/* Blog Page Styles */
.blog-post-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.blog-post-header {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    align-items: center;
}

.blog-post-category {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.blog-post-date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.blog-post-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    line-height: var(--leading-tight);
}

.blog-post-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--color-accent);
}

.blog-post-excerpt {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.blog-post-reading-time {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* ===================================================================
   CAROUSEL STYLES
   =================================================================== */

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Carousel Track - horizontal scrolling */
.carousel-track {
    display: flex;
    gap: var(--space-xl);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-md) 48px;
    margin: 0;
    scrollbar-width: none;
}

/* Carousel Track - hide scrollbar for Firefox */
.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Carousel Item */
.carousel-item {
    flex: 0 0 calc(33.333% - var(--space-lg));
    scroll-snap-align: start;
    min-width: 300px;
}

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - var(--space-md));
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(100% - var(--space-sm));
    }
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-nav-button {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.carousel-nav-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.carousel-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-button svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text-primary);
}

/* Carousel Dots (optional) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.carousel-dot.active {
    background: var(--color-accent);
}

/* Small Button Variant */
.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-xs);
}

/* ---------------------------------------------------------------
   5.9 BLOG POST PAGE STYLES (Single Post View)
   --------------------------------------------------------------- */

/* Blog Post Single Container */
.blog-post-single {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

/* Single Post Header */
.blog-post-header-single {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.blog-post-header-single h2 {
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
}

/* Blog Post Body */
.blog-post-body {
    margin-top: var(--space-lg);
}

/* Featured Image in Single Post */
.blog-post-featured-image {
    margin: 0 0 var(--space-2xl);
    text-align: center;
}

.blog-post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.blog-post-featured-image figcaption {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Blog Post Content */
.blog-post-content {
    line-height: var(--leading-relaxed);
    text-align: justify;
}

.blog-post-content h2 {
    font-size: var(--text-3xl);
    margin: var(--space-xl) 0 var(--space-lg);
    color: var(--color-text-primary);
    text-align: left;
}

.blog-post-content h3 {
    font-size: var(--text-2xl);
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--color-text-primary);
}

.blog-post-content h4 {
    font-size: var(--text-xl);
    margin: var(--space-lg) 0 var(--space-md);
    color: var(--color-text-primary);
}

.blog-post-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.blog-post-content > p:first-child {
    margin-top: 0;
}

/* Lead paragraph */
.blog-post-content .lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-normal);
    line-height: var(--leading-relaxed);
    text-align: justify;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
    color: var(--color-text-secondary);
}

.blog-post-content li {
    margin-bottom: var(--space-sm);
}

.blog-post-content li p {
    margin-bottom: var(--space-xs);
}

.blog-post-content strong {
    color: var(--color-text-primary);
}

/* Code Block Styling */
.code-block {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    overflow-x: auto;
    font-family: var(--font-family-mono);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block code {
    background: transparent;
    padding: 0;
    color: var(--color-text-primary);
    font-family: var(--font-family-mono);
}

/* Benefits Grid (used in some posts) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.benefit-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.benefit-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.benefit-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Accessibility Stats (used in accessibility post) */
.accessibility-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

/* Blog Post Footer */
.blog-post-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

/* Blog Post Tags */
.blog-post-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.blog-post-tags span {
    display: inline-block;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
}

/* Blog Post Actions */
.blog-post-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Blog Post Meta Hero (for single post hero) */
.blog-post-meta-hero {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Blog Post Content Overflow Protection */
.blog-post-single {
    overflow: hidden;
    position: relative;
}

.blog-post-content {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.blog-post-content p {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.blog-post-content blockquote {
    overflow: hidden;
    overflow-wrap: break-word;
}

.blog-post-content ul,
.blog-post-content ol {
    overflow: hidden;
    max-width: 100%;
}

.blog-post-content pre {
    overflow-x: auto;
    max-width: 100%;
}

.blog-post-content table {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    table-layout: fixed;
}

.blog-post-content table th,
.blog-post-content table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Featured image overflow protection */
.blog-post-featured-image {
    overflow: hidden;
    max-width: 100%;
}

.blog-post-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Blog Post Hero Section (25% height) */
.blog-post-hero {
    min-height: 25vh;
    max-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-subtle);
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/Hero_section_cropped.jpg') center/cover no-repeat;
    opacity: 0.5;
    filter: blur(1px);
    z-index: 0;
}

.blog-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.blog-hero-content .blog-post-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.blog-hero-content .blog-post-title {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-align: justify;
}

.blog-hero-content .blog-post-meta-hero {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* Blog Table Styling */
.blog-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
}

.blog-table th,
.blog-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.blog-table th {
    background: var(--color-bg-secondary);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.blog-table tr:hover {
    background: var(--color-bg-secondary);
}

/* Blog CTA Section */
.blog-post-cta {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--color-border);
}

.blog-post-cta h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.blog-post-cta p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.cta-box {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    text-align: center;
}

.cta-box h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.cta-box p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Blog Related Posts */
.blog-related {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.blog-related-posts {
    margin-top: var(--space-lg);
    background: var(--color-bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.blog-related-posts p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    text-align: left;
}

.blog-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-related-posts li {
    margin-bottom: var(--space-xs);
}

.blog-related-posts li a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: var(--space-xs) 0;
    display: block;
}

.blog-related-posts p a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-related-posts a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* Responsive Blog Post Hero */
@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 20vh;
        max-height: 25vh;
    }
    
    .blog-hero-content {
        padding: var(--space-lg) var(--space-md);
        margin: var(--space-md);
    }
    
    .blog-hero-content .blog-post-title {
        font-size: var(--text-2xl);
    }
    
    .blog-hero-content .blog-post-meta-hero {
        flex-direction: column;
        gap: var(--space-xs);
        font-size: var(--text-xs);
    }
    
    .cta-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .cta-box {
        padding: var(--space-lg);
        margin: var(--space-lg) 0;
    }
    
    .blog-table {
        font-size: var(--text-xs);
    }
    
    .blog-table th,
    .blog-table td {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* ===================================================================
   BLOG ARTICLE IMPROVED STYLES
   Consistent article layout with alternating images and full-width background
   =================================================================== */

/* Article Container - Consistent styling for all blog articles */
.article-container {
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Article Content Grid - for alternating image/text layout */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

/* Article Section with Image - alternating layout */
.article-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.article-section.image-left {
    grid-template-columns: 40% 1fr;
    gap: var(--space-xl);
}

.article-section.image-right {
    grid-template-columns: 1fr 40%;
    gap: var(--space-xl);
}



.article-section .article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.article-section .article-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Image Caption */
.article-caption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    margin-top: var(--space-sm);
}



/* Article Content Layout - Main container for article with full width background */
.article-layout {
    width: 100%;
    background: var(--color-bg-tertiary);
    min-height: 100vh;
    padding: var(--space-xl) 0;
}

/* Article Main Content Box - bright colored box with full width background */
.article-main {
    background: var(--color-bg-primary); /* Bright white */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

/* Article Content - ensure proper spacing and consistent text color */
.article-content {
    width: 100%;
    max-width: 100%;
    text-align: justify;
    color: var(--color-text-secondary);
}

/* Article lead paragraph */
.article-content .lead {
    font-size: var(--text-m);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-normal);
    line-height: var(--leading-relaxed);
    text-align: justify;
}

/* Centered Article Images */
.article-image-centered {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: var(--space-xl) auto;
}

.article-image-centered .article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.article-image-centered .article-caption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    margin-top: var(--space-sm);
}

@media (min-width: 1000px) {
    .article-layout {
        padding: var(--space-xl) 0;
    }
    
    .article-layout .article-main {
        margin: 0 auto;
        max-width: 1000px;
    }
}


/* Responsive Article Layout */
@media (max-width: 1200px) {
    .article-section.image-left,
    .article-section.image-right {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .article-section.image-left .article-image,
    .article-section.image-right .article-image {
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .article-layout {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .article-main {
        margin: 0 auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-layout {
        padding: var(--space-lg) var(--space-md);
    }
    
    .article-main {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }
    
    .article-section.image-left,
    .article-section.image-right {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .article-section .article-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .cta-section {
        padding: var(--space-lg);
        margin: var(--space-xl) 0;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .article-content p {
        text-indent: 0;
    }
}

@media (max-width: 480px) {
    .article-section .article-image {
        aspect-ratio: 4 / 3;
    }
    
    .blog-related-posts {
        padding: var(--space-md);
    }
    
    .article-content h2,
    .article-content h3 {
        font-size: var(--text-xl);
    }
    
    .article-main {
        padding: var(--space-md);
    }
    
    .article-layout {
        padding: var(--space-md);
    }
}

/* Hero Section Spacing - fits content with margin */
.blog-hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25vh;
    padding: 5vh var(--space-lg);
    text-align: center;
}

/* Blog CTA Section */
.blog-cta-section {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    text-align: center;
}

.blog-cta-section h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    font-size: var(--text-xl);
}

.blog-cta-text {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    /* margin-left: auto;
    margin-right: auto; */
}

.blog-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Improved CTA Section */
.cta-section {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border-strong);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section h3,
.cta-section p {
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 109, 119, 0.05) 0%, rgba(0, 109, 119, 0.02) 100%);
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2,
.cta-section h3 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.cta-section p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-actions .btn {
    min-width: 200px;
}

/* Visible Indentations - Removed to align first line with following lines */
.article-content p {
    margin-bottom: var(--space-md);
    text-align: justify;
    text-indent: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child {
    margin-top: 0;
}

/* Blog headings should not be justified */
.article-content h1,
.article-content h2 {
    text-align: left;
}

/* Improved spacing between hero and article */
.blog-article {
    margin-top: var(--space-2xl);
}

/* Consistent footer styling */
.article-footer {
    margin-top: var(--space-4xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-actions,
    .btn,
    .contact-info {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
