/* ================================================== */
/* --- 1. CSS Variables & Base Styles --- */
/* ================================================== */

:root {
    /* Light Theme */
    --background: #ffffff;
    --background-gradient: linear-gradient(180deg, #ffffff, #ffffff 60%);
    --text-color: #333333;
    --heading-color: #222222;
    --border-color: #e0e0e0;
    --border-color-rgb: 224, 224, 224;
    --card-bg: #f9f9f9;
    --card-bg-rgb: 249, 249, 249;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --primary-engineer: #E84545;; /* Primary Accent (Used for Engineer, Buttons etc.) */
    --primary-engineer-rgb: 0, 90, 224; /* RGB for opacity */
    --primary-photo: #E84545;    /* Secondary Accent (Used for Photographer) */
    --card-bg-transparent: rgba(255, 255, 255, 0.7); /* Header Glass */
    --gradient-button: linear-gradient(90deg, #E84545, #E84545); /* Project Card Button */
    --gradient-text: linear-gradient(90deg, #ff8a63, #e040fb); /* About page Title Underline */
}

body[data-theme='dark'] {
    /* Dark Theme */
    --background: #1a1a1a;
    --background-gradient: linear-gradient(180deg, #000000, #131313 60%);
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #3a3a3a;
    --border-color-rgb: 58, 58, 58;
    --card-bg: #2a2a2a;
    --card-bg-rgb: 42, 42, 42;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --primary-engineer: #00ADB5;
    --primary-engineer-rgb: 100, 255, 218;
    --primary-photo: #00ADB5;
    --card-bg-transparent: rgba(42, 42, 42, 0.7);
    --gradient-button: linear-gradient(90deg, #00ADB5, #00ADB5);
    --gradient-text: linear-gradient(90deg, #64ffda, #00c6ff);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0; /* Remove default margin */
    color: var(--text-color);
    background-color: var(--background);
    background-image: var(--background-gradient);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#page-content {
    opacity: 1; /* No animations */
}

/* --- General Button Styles --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Base border */
    cursor: pointer;
}
.btn-primary { /* Standard primary button (like on About page) */
    background: var(--primary-engineer);
    color: #1a1a1a;
    border-color: var(--primary-engineer);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary-engineer);
}
.btn-secondary { /* Standard outline button (like on Engineer page) */
    background: transparent;
    color: var(--primary-engineer);
    border-color: var(--primary-engineer);
}
.btn-secondary:hover {
    background: var(--primary-engineer);
    color: #1a1a1a;
}


/* ================================================== */
/* --- 2. Header & Glass Navigation --- */
/* ================================================== */

#main-header {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
    position: sticky; /* Keep it sticky */
    top: 0;
    width: 100%;
    z-index: 1000;
}

#main-header nav {
    display: flex;
    justify-content: center; /* Center nav items */
    align-items: center; /* Vertically center items */
    padding: 0 6rem;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 2rem;
    gap: 1rem;
    position: relative; /* Needed for absolute children */
    height: auto; /* Explicit height based on logo/margins (adjust if logo size changes) */
}

/* --- Logo (Absolute Positioned) --- */
.logo {
    position: absolute;
    left: 1rem; /* Spacing from left edge */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    margin-top: 0;        /* Remove any conflicting margins */
    margin-bottom: 0;
}
.logo img {
    height: 26px; /* Logo size */

    transition: filter 0.3s ease;
    display: block;
}

/* --- Logo Theme Toggle (with 3 logos) --- */

/* 1. Default (Light Mode, All Pages) */
.logo .logo-light { display: block; } /* Show dark-text logo */
.logo .logo-dark { display: none; }  /* Hide light-text logo */
.logo .logo-homepage-light { display: none; } /* Hide special logo */

/* 2. Dark Mode Override (All Pages) */
body[data-theme='dark'] .logo .logo-light { display: none; }
body[data-theme='dark'] .logo .logo-dark { display: block; }
body[data-theme='dark'] .logo .logo-homepage-light { display: none; }

/* 3. Homepage Light Mode Override */
/* (Requires the body.homepage class we added) */
body.homepage:not([data-theme='dark']) .logo .logo-light {
    display: none; /* Hide the default dark-text logo */
}
body.homepage:not([data-theme='dark']) .logo .logo-homepage-light {
    display: block; /* Show the special homepage-light logo */
}

/* --- Nav Links (Centered Group) --- */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    margin-left: 3rem; /* Shift slightly right from true center */
    /* padding-top: 5px; */ /* Removed - Alignment handled by flexbox */
}
nav ul a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(var(--card-bg-rgb), 0.75); /* Glass Background */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--border-color-rgb), 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
nav ul a:hover {
    background: rgba(var(--card-bg-rgb), 0.9);
    color: var(--primary-engineer);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    /* text-shadow: 0 0 6px var(--primary-engineer); */ /* Optional glow */
}
body[data-theme='dark'] nav ul a {
    background: rgba(var(--card-bg-rgb), 0.75); /* Consistent glass */
}
body[data-theme='dark'] nav ul a:hover {
    background: rgba(var(--card-bg-rgb), 0.9);
}

/* --- Theme Switcher (Absolute Positioned) --- */
.theme-switcher {
    position: absolute;
    right: 2rem; /* Spacing from right edge */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: rgba(var(--card-bg-rgb), 0.75); /* Glass Background */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--border-color-rgb), 0.3);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}
.theme-switcher:hover {
    background: rgba(var(--card-bg-rgb), 0.9);
    border-color: rgba(var(--border-color-rgb), 0.5);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: var(--primary-engineer);
    /* text-shadow: 0 0 8px var(--primary-engineer); */ /* Optional glow */
}
body[data-theme='dark'] .theme-switcher {
    background: rgba(var(--card-bg-rgb), 0.75); /* Consistent glass */
    border-color: rgba(var(--border-color-rgb), 0.3);
}
body[data-theme='dark'] .theme-switcher:hover {
    background: rgba(var(--card-bg-rgb), 0.9);
    border-color: rgba(var(--border-color-rgb), 0.5);
}

/* Remove margin from glass items if conflicting */
#main-header .logo,
#main-header nav ul,
#main-header .theme-switcher {
    margin-top: 0; /* Let flexbox handle vertical alignment */
    margin-bottom: 0;
}

/* ================================================== */
/* --- 4. Homepage Hero Section --- */
/* ================================================== */

.hero-background.static-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 0px); /* Adjust 86px based on actual header height */
    margin-top: -56px; /* No negative margin */
    padding-top: 90px; /* No top padding */
    background-image: url('../images/Homepage.png'); /* Your static background image */
    background-size: cover;
    background-position: center top; /* Align top */
    display: flex;
    align-items: center; /* Vertically center content block */
    justify-content: flex-start; /* Align content block left */
    box-sizing: border-box;
}

/* Gradient overlay */
.static-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

/* Left-aligned content block */
.centered-content { /* Renamed from hub-main-content */
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 5%;
    text-align: left;
}

.hub-text-content { /* Container for H1, P, Buttons */
    color: #ffffff;
}
.hub-text-content h1 {
    font-size: 4rem; 
    font-weight: 700; 
    color: #ffffff; /* Keep white */
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    /* opacity: 0; */ /* --- DELETE --- */
    /* animation: slideUpFadeInH1 1s ease-out 0.5s forwards; */ /* --- DELETE --- */
}

/* Keep this rule for color */
.hub-text-content .animated-name {
    color: var(--primary-photo); 
    display: inline; 
}

.highlight-title { /* For the "I'm a..." text */
    display: inline;
    font-weight: 700;
    color: #ffffff;
}

.hub-about-me { /* Paragraph on Homepage */
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Homepage Buttons Container */
.hub-actions.button-row {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Homepage Buttons Styling */
.btn.btn-hero {
    background: rgba(var(--card-bg-rgb), 0.75);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--border-color-rgb), 0.3);
    box-shadow: 0 5px 15px var(--shadow-color);
    color: var(--heading-color);
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}
.btn.btn-hero:hover {
    background: rgba(var(--card-bg-rgb), 0.9);
    box-shadow: 0 6px 20px var(--shadow-color);
    transform: translateY(-2px);
    border-color: rgba(var(--border-color-rgb), 0.5);
    color: var(--primary-engineer);
}
body[data-theme='dark'] .btn.btn-hero {
    color: var(--heading-color);
}
body[data-theme='dark'] .btn.btn-hero:hover {
    color: var(--primary-engineer);
}
/* ================================================== */
/* --- 6. Inner Page Common Styles --- */
/* ================================================== */

.page-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.about-page-new .page-container { /* Wider container for About */
    max-width: 1100px;
}

.page-hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.page-hero h1 {
    font-size: 3rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}
.page-hero p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.page-section {
    margin-bottom: 4rem;
}
.page-section h2 { /* Default section heading */
    font-size: 2.2rem;
    color: var(--heading-color);
    border-bottom: 2px solid var(--primary-engineer);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* ================================================== */
/* --- 7. Engineer Page Styles --- */
/* ================================================== */

.engineer-page .page-hero h1 { color: var(--primary-photo); }
.skills-circular-grid {
    display: grid;
    /* Adjust grid columns for responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 2rem 1.5rem; /* Row gap, Column gap */
    max-width: 800px; /* Limit width */
    margin: 3rem auto 0 auto; /* Center and add space above */
    padding: 1rem;
}

.skill-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.circular-chart {
    display: block;
    max-width: 120px; /* Adjust size of the circle */
    width: 100%;
    margin: 0 auto 0.8rem auto; /* Space below circle */
}

/* SVG Path Styling */
.circle-bg,
.circle-progress {
    fill: none; /* Don't fill the circle */
    stroke-width: 3; /* Thickness of the circle lines */
}

.circle-bg {
    stroke: var(--border-color); /* Color of the background track */
}

.circle-progress {
    stroke: var(--primary-engineer); /* Color of the progress arc */
    stroke-linecap: round; /* Make line ends round */
    /* Rotate slightly to start arc at the top */
    transform-origin: 50% 50%;
    transform: rotate(-90deg); 
    transition: stroke-dasharray 0.8s ease-out; /* Animation */
}

/* Percentage Text Styling */
.percentage {
    fill: var(--heading-color); /* Text color */
    font-family: 'Poppins', sans-serif;
    font-size: 0.5em; /* Relative to SVG size */
    font-weight: 700;
    text-anchor: middle; /* Center text horizontally */
}

.skill-label {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive adjustments for circles */
@media (max-width: 600px) {
    .skills-circular-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller min size */
        gap: 1.5rem 1rem;
    }
    .circular-chart {
        max-width: 100px; /* Slightly smaller circles */
    }
    .percentage {
        font-size: 0.6em; /* Adjust text size if needed */
    }
    .skill-label {
        font-size: 0.85rem;
    }
}


.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 0; left: 15px; width: 3px; height: 100%; background-color: var(--primary-engineer); }
.timeline-item { position: relative; padding-left: 50px; margin-bottom: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease;}
.timeline-item:hover { transform: translateX(5px); box-shadow: 0 6px 20px var(--shadow-color); }
.timeline-item::before { content: ''; position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%; background-color: var(--background); border: 3px solid var(--primary-engineer); z-index: 1; }
.timeline-content { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); }
.timeline-content h3 { color: var(--heading-color); margin: 0 0 0.5rem 0; }
.timeline-content .timeline-info { font-size: 0.9rem; color: var(--text-color); margin-bottom: 1rem; }
.timeline-content ul { padding-left: 20px; margin: 0; color: var(--text-color); }

.certifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
/* --- Certification Card Styling (Adjusting Padding) --- */
.certification-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0 0 1rem 0; /* <<< SET THIS TO 0 to remove padding around the image */
    border-radius: 8px; /* Apply border-radius to the card itself */
    text-align: center; /* Keep text centered */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Crucial: Hides parts of the image if it exceeds borders due to border-radius */
}

/* --- Style for Image inside Certification Card --- */
.certification-card .certification-badge-image {
    width: 100%; /* Make image fill card width */
    height: auto; /* Maintain aspect ratio */
    max-height: 180px; /* Adjust this max-height as needed for overall card height */
    object-fit: cover; /* <<< Use 'cover' to make it fill the space and crop if needed */
    /* If you want the ENTIRE certificate visible without cropping, use 'contain',
       but it might leave top/bottom space. 'cover' looks better for thumbnails. */
    display: block; /* Remove extra space below image */
    margin-bottom: 1rem; /* Space between image and text */
    border-radius: 0; /* <<< REMOVE border-radius from the image itself, let the card handle it */
}
.certification-card:hover { transform: scale(1.05); box-shadow: 0 8px 25px var(--shadow-color); }
certification-image {
    width: 40px; /* Adjust width as needed */
    height: 40px; /* Adjust height as needed */
    margin: 0 auto 1rem auto; /* Center the image and add space below */
    overflow: hidden; /* Optional: in case image aspect ratio is off */
}

.certification-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fit the whole image without cropping */
    display: block;
}
.certification-card h3 { font-size: 1.2rem; color: var(--primary-photo); margin: 1rem 0 0.5rem 0; }
.certification-card p { color: var(--text-color); margin: 0 0 1.5rem 0; font-size: 0.9rem; }

/* Project Cards */
.projects-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.projects-grid-cards .project-card { background-color: var(--card-bg); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 5px 15px var(--shadow-color); transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; border: 1px solid var(--border-color); padding: 0; }
.projects-grid-cards .project-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px var(--shadow-color); }
.project-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-title { font-size: 1.4rem; margin: 0 0 10px 0;  color: var(--primary-photo); }
.project-description { color: var(--text-color); font-size: 0.95rem; line-height: 1.6; flex-grow: 1; margin-bottom: 1rem; }
.project-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem 0; font-size: 0.8rem; }
.project-tags li { background-color: rgba(var(--primary-engineer-rgb), 0.15); color: var(--heading-color); padding: 4px 10px; border-radius: 15px; }
.project-links { display: flex; gap: 0.8rem; margin-top: auto; }
.project-links .btn { flex-grow: 1; text-align: center; padding: 0.6rem 1rem; border-radius: 50px; font-weight: 500; font-size: 0.9rem; }
.project-links .btn-gradient { background: var(--gradient-button); color: #ffffff; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.project-links .btn-gradient:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.25); transform: translateY(-2px); }
.project-links .btn-outline { background: transparent;  color: var(--primary-photo); border: 2px solid var(--primary-engineer); }
.project-links .btn-outline:hover { background: var(--primary-engineer); color: #ffffff; body[data-theme='dark'] & { color: var(--background); } }

/* Models Section */
#engineer-models h2 { border-bottom: 2px solid var(--primary-engineer); display: inline-block; padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-color); max-width: 600px; margin: 0 auto 3rem auto; font-size: 1.1rem; }
.models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; } /* Added margin-top */
.model-card { background-color: var(--card-bg); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 25px var(--shadow-color); border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.model-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px var(--shadow-color); }
.model-header { padding: 1.5rem; color: #ffffff; }
.model-header h3 { margin: 0; font-size: 1.3rem; color: #ffffff; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.gradient-1 { background: linear-gradient(90deg, #ff4081, #ff8a63); }
.gradient-2 { background: linear-gradient(90deg, #7c4dff, #448aff); }
.gradient-3 { background: linear-gradient(90deg, #ff4081, #7c4dff); }
.model-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.model-description { color: var(--text-color); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.5rem 0; flex-grow: 1; }
.model-stats { display: flex; justify-content: space-around; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--heading-color); line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--text-color); text-transform: uppercase; }
.model-footer { background-color: var(--secondary-color, var(--card-bg)); padding: 1rem 1.5rem; text-align: center; border-top: 1px solid var(--border-color); }
.btn.model-link { background: transparent; border: none; color: var(--primary-engineer); padding: 0.5rem 1rem; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s ease, letter-spacing 0.3s ease; }
.btn.model-link:hover { color: var(--heading-color); letter-spacing: 0.5px; }


/* ================================================== */
/* --- 8. Photographer Page Styles --- */
/* ================================================== */

.photographer-page .page-hero h1 { color: var(--primary-photo); }
.photographer-page .page-section h2 { border-bottom-color: var(--primary-photo); }
.photographer-page .page-hero .btn-secondary { border-color: var(--primary-photo); color: var(--primary-photo); }
.photographer-page .page-hero .btn-secondary:hover { background: var(--primary-photo); color: #ffffff; }
body[data-theme='dark'] .photographer-page .page-hero .btn-secondary:hover { color: var(--background); }

/* Album Grid (on /photographer) */
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.album-card { display: block; text-decoration: none; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 5px 15px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.album-card:hover { transform: scale(1.03); box-shadow: 0 10px 25px var(--shadow-color); }
.album-card img { width: 100%; height: 350px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.album-card:hover img { transform: scale(1.1); }
.album-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem; box-sizing: border-box; color: #ffffff; background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); z-index: 2; }
.album-info h3 { font-size: 1.2rem; color: #ffffff; margin: 0 0 0.25rem 0; }
.album-info p { color: #f0f0f0; margin: 0; font-size: 0.9rem; }

/* Gallery Grid (on /album/...) */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item { margin-bottom: 1rem; display: inline-block; width: 100%; break-inside: avoid; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 5px 15px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item img:hover { transform: scale(1.03); box-shadow: 0 10px 25px var(--shadow-color); }


/* ================================================== */
/* --- 9. About Page Styles --- */
/* ================================================== */

.about-page-new .page-container { max-width: 1100px; }
.about-title-section { text-align: center; margin-bottom: 4rem; padding-top: 2rem; }
.about-title-section h1 { font-size: 2.8rem; color: var(--primary-photo); margin-bottom: 0.5rem; display: inline-block; position: relative; padding-bottom: 0.5rem; }
.about-subtitle { font-size: 1.1rem; color: var(--text-color); max-width: 600px; margin: 0 auto; }
.about-main-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; margin-bottom: 4rem; }
.about-image-column img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-color); margin-top: 0.5rem; }
.about-text-column { display: flex; flex-direction: column; }
.about-text-column h2 { font-size: 1.8rem; color: var(--heading-color); margin-bottom: 1.5rem; border-bottom: none; display: block; margin-top: 0; }
.about-text-column p { font-size: 1rem; line-height: 1.7; color: var(--text-color); margin-bottom: 1.5rem; }
.about-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: auto; padding-top: 2.5rem; }
.stat-card { background-color: var(--card-bg); border-radius: 10px; padding: 1.5rem 0.5rem; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 4px 15px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: scale(1.05); box-shadow: 0 8px 25px var(--shadow-color); }
.stat-card i { font-size: 2rem; color: var(--primary-engineer); margin-bottom: 0.8rem; }
.stat-number { display: block; font-size: 1.5rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.8rem; color: var(--text-color); }

/* ================================================== */
/* --- 10. Contact Page Styles --- */
/* ================================================== */

.contact-page .page-hero h1 { color: var(--primary-photo);; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-color); }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); background-color: var(--card-bg); border-radius: 5px; color: var(--text-color); font-family: 'Poppins', sans-serif; font-size: 1rem; box-sizing: border-box; }
.contact-info-container h2 { font-size: 1.5rem; color: var(--heading-color); margin-bottom: 1rem; }
.contact-info-container p { color: var(--text-color); margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.contact-item i { font-size: 1.5rem; color: var(--primary-engineer); margin-top: 5px; }
.contact-item h3 { margin: 0 0 0.25rem 0; color: var(--heading-color); font-size: 1.1rem; transition: color 0.3s ease;}
.contact-item h3:hover { color: var(--primary-engineer); }
.contact-item a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--primary-engineer); }
.contact-socials { display: flex; gap: 1.5rem; margin-top: 2rem; justify-content: flex-start; }
.contact-socials a { font-size: 1.8rem; color: var(--text-color); transition: color 0.3s ease, transform 0.3s ease; }
.contact-socials a:hover { color: var(--primary-engineer); transform: translateY(-3px); }


/* ================================================== */
/* --- 11. Lightbox Icon Overrides --- */
/* ================================================== */
/* ================================================== */
/* --- 12. Lightbox Icon Overrides (Using Unicode) --- */
/* ================================================== */

/* Hide default images, set base styles for buttons */
.lb-next, .lb-prev, .lb-close {
    background-image: none !important; /* MUST remove default image */
    opacity: 0.7 !important; /* Start semi-transparent */
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white !important; /* White icon */
    font-size: 2.5rem; /* Icon size */
    font-weight: bold;
    font-family: Arial, sans-serif; /* Basic font */
    transition: opacity 0.3s ease;
    width: auto; /* Reset width */
    height: auto; /* Reset height */
    -webkit-text-stroke: 1px rgba(0,0,0,0.3); /* Optional outline */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Optional shadow */
}

.lb-next:hover, .lb-prev:hover, .lb-close:hover {
    opacity: 1 !important; /* Fully visible on hover */
    color: white !important;
}

/* Add Unicode characters */
.lb-next::before {
    content: "\276F" !important; /* Right arrow ❯ */
}

.lb-prev::before {
    content: "\276E" !important; /* Left arrow ❮ */
}

.lb-close::before {
    content: "\00D7" !important; /* Close X × */
    font-size: 2rem; /* Make X smaller */
}

/* Set position and clickable area */
.lb-close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 10px;
}
.lb-nav a.lb-prev, .lb-nav a.lb-next {
    width: 40%; /* Clickable area */
    height: 100%;
    position: absolute;
    top: 0;
}
.lb-prev {
    left: 0;
    justify-content: flex-start; /* Align arrow left */
    padding-left: 10px;
}
.lb-next {
    right: 0;
    justify-content: flex-end; /* Align arrow right */
    padding-right: 10px;
}

/* Ensure caption/number are visible */
.lb-data .lb-number, .lb-data .lb-caption {
    color: #ccc !important;
}

/* --- Lightbox Background Fix --- */

.lightboxOverlay {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/* Ensure ALL container backgrounds are transparent */
.lightbox,
.lb-outerContainer, /* Add this target */
.lb-container {     /* Add this target */
    background: none !important;
}

.lightbox .lb-image {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
/* --- Blinking Cursor Animation --- */
@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-photo); }
}
/* ================================================== */
/* ================================================== */
/* --- 12. Responsive Styles (Consolidated) --- */
/* ================================================== */

/* --- Hamburger Menu Button (Hidden on Desktop) --- */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1002; }
.hamburger { display: block; position: relative; width: 25px; height: 3px; background-color: var(--text-color); border-radius: 3px; transition: transform 0.3s ease; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background-color: var(--text-color); border-radius: 3px; transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
/* Hamburger Active State (X) */
.nav-toggle.is-active .hamburger { background-color: transparent; }
.nav-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }


/* --- Medium Screens / Smaller Desktops --- */
/* --- Medium Screens / Smaller Desktops --- */
@media (max-width: 1100px) {
    .hub-text-content h1 {
        font-size: 3.5rem; /* Slightly smaller hero title */
    }

    /* --- Header Adjustments --- */
    #main-header nav { 
        padding: 0 1.5rem; /* Slightly less overall padding */
    }
    .logo { 
        left: 1rem; /* Keep logo pushed left */
    }
    .logo img {
        height: 18px; /* Adjust size for 1100px */
    } 
    .theme-switcher { 
        right: 1.5rem; /* Keep theme icon pushed right */
    }

    /* Reduce space between nav links */
    nav ul {
        gap: 0.4rem; /* Reduce gap from 2rem */
        margin-left: 2rem; /* Reduce the right shift slightly */
    }
    /* Reduce padding and font size inside links */
    nav ul a {
        padding: 0.4rem 0.8rem; /* Reduce padding */
        font-size: 0.8rem; /* Reduce font size */
    }
    /* --- End Header Adjustments --- */
}
/* --- Tablet Portrait / Large Phones --- */
@media (max-width: 900px) {
    /* --- Add Header Adjustments --- */
    #main-header nav {
        padding: 0 1rem; /* Even less overall padding */
    }
    .logo {
        left: 1rem; /* Bring logo closer to edge */
    }
    .logo img {
        height: 14px; /* Adjust size for 900px */
    }
    .theme-switcher {
        right: 1rem; /* Bring theme icon closer to edge */
    }
    nav ul {
        gap: 0.3rem; /* Further reduce gap */
        margin-left: 1.5rem; /* Further reduce right shift */
    }
    nav ul a {
        padding: 0.3rem 0.9rem; /* Further reduce padding */
        font-size: 0.75rem; /* Further reduce font size */
    }
    /* --- End Header Adjustments --- */

    /* Homepage */
    .hero-background.static-hero {
        align-items: center; /* Center content vertically too on mobile */
        justify-content: center; /* Center content horizontally */
        text-align: center;
    }
    .centered-content {
        max-width: 90%;
        padding: 0 1rem;
        margin-bottom: 3rem; /* Adjust spacing */
        text-align: center;
    }
    .hub-about-me { /* Applies to homepage paragraph */
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .hub-actions.button-row {
        justify-content: center;
    }

    /* About Page */
    .about-main-content {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2.5rem;
    }
    .about-image-column {
        max-width: 450px; /* Limit image size */
        margin: 0 auto; /* Center image */
    }
    .about-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Allow wrapping */
    }

    /* Other Pages */
    .gallery-grid { column-count: 2; }
    .contact-grid { grid-template-columns: 1fr; }
    .projects-grid-cards { grid-template-columns: repeat(2, 1fr); }
    .models-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* --- Mobile Navigation Breakpoint --- */
@media (max-width: 768px) {
    /* Header & Mobile Nav */
    .hero-background.static-hero {
        background-image: url('../images/Homepage-tablet.png');
    }
    .hero-background.static-hero {
        margin-top: -82px; /* Match calculated header height */
        padding-top: 54px; /* Match calculated header height */
        min-height: calc(100vh - 0px); /* Adjust min-height too */
    }
    #main-header nav ul {
        display: none !important; /* <<< Hide by default on mobile */
        position: absolute;
        top: 100%; /* Position below header area */
        left: 0;
        right: 0;
        flex-direction: column; /* Stack links vertically */
        background: rgba(var(--card-bg-rgb), 0.9); /* Glassy background */
        backdrop-filter: blur(8px);
        margin: 0.5rem; /* Space from edges */
        padding: 1rem 0; /* Vertical padding */
        border-radius: 10px;
        box-shadow: 0 10px 30px var(--shadow-color);
        border: 1px solid rgba(var(--border-color-rgb), 0.3);
        margin-left: 0; /* Reset margin */
        z-index: 999; /* Ensure it's below header but above content */
        gap: 0.5rem; /* Adjust gap for dropdown */
    }
    #main-header nav ul.nav-active {
        display: flex !important; /* <<< Show when active */
    }
    #main-header nav ul li {
        width: 100%;
        text-align: center;
    }
    #main-header nav ul a { /* Style links inside dropdown */
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0.6rem 1rem; /* Smaller padding */
        font-size: 0.9rem; /* Smaller font */
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0; /* Remove pill shape inside dropdown */
    }
    #main-header nav ul a:hover { /* Hover for dropdown links */
        background: rgba(var(--primary-engineer-rgb), 0.1);
        color: var(--primary-engineer);
    }

    .nav-toggle {
        display: block; /* <<< Make sure hamburger is visible */
        position: static; /* Let it flow */
        /* position: absolute; */ /* Removed */
        /* right: 5.5rem; */ /* Removed */
        /* top: 50%; */ /* Removed */
        /* transform: translateY(-50%); */ /* Removed */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        order: 2; /* Place hamburger after theme switcher visually */
    }
    /* Hamburger icon styles remain the same */
    .hamburger { display: block; position: relative; width: 25px; height: 3px; background-color: var(--text-color); border-radius: 3px; transition: transform 0.3s ease; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background-color: var(--text-color); border-radius: 3px; transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease; }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    .nav-toggle.is-active .hamburger { background-color: transparent; }
    .nav-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }
    body[data-theme='dark'] .hamburger,
    body[data-theme='dark'] .hamburger::before,
    body[data-theme='dark'] .hamburger::after {
        background-color: var(--primary-engineer); /* Or var(--heading-color) if you just want white */
    }
    body[data-theme='light'] .hamburger,
    body[data-theme='light'] .hamburger::before,
    body[data-theme='light'] .hamburger::after {
        background-color: var(--primary-engineer); /* Or var(--heading-color) if you just want white */
    }


    .theme-switcher {
        position: absolute; /* Position relative to nav */
        right: 1rem;      /* Distance from right edge */
        top: 50%;         /* Center vertically */
        transform: translateY(-50%); /* Precise vertical centering */
        z-index: 1001;     /* Ensure it's clickable */
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        margin: 0;        /* Remove auto margins */
        /* order: 1; */    /* Not needed with absolute */
    }
    .nav-toggle {
        display: block;
        position: absolute;  /* Position relative to nav */
        right: calc(1rem + 38px + 0.5rem); /* Position left of theme switcher (right edge + switcher width + gap) */
        top: 50%;          /* Center vertically */
        transform: translateY(-50%); /* Precise vertical centering */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        /* order: 2; */     /* Not needed with absolute */
        margin: 0;         /* Remove auto margins */
    }

    #main-header nav {
        justify-content: space-between;
        height: auto;
        padding: 0 1rem;
        align-items: center;
        gap: 0; /* <<< Keep this at 0 */
        position: relative; /* Container for absolute children */
        height: 50px; /* Give nav a fixed height for consistent centering */
    }
    .logo {
        position: static; /* Let logo flow */
        transform: none;
        order: 0; /* Ensure logo is first */
        height: 100%; /* Allow vertical centering */
        display: flex;
        align-items: center;
    }
     .logo img {
        height: 15px; /* Smaller logo */
    }


    /* Homepage */
    .hub-text-content h1 { font-size: 2.5rem; }
}

/* --- Mobile Portrait --- */
@media (max-width: 600px) {
    /* Homepage */
    .hero-background.static-hero {
    background-image: url('../images/Homepage-phone.png');
    }
    .hero-background.static-hero {
        margin-top: -78px; /* Match calculated header height */
        padding-top: 51px; /* Match calculated header height */
        min-height: calc(100vh - 0px); /* Adjust min-height too */
    }
    .hub-actions.button-row { flex-direction: column; align-items: center; } /* Stack buttons */

     /* Header */
     .logo img {
        height: 15px; /* Even smaller logo */
    }
    #main-header nav ul a { /* Dropdown links */
         padding: 0.5rem 0.8rem;
         font-size: 0.85rem;
    }
     .theme-switcher {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        right: 0.8rem; /* Closer to edge */
    }
    .nav-toggle {
        right: calc(0.8rem + 35px + 0.3rem); /* Adjust position based on smaller theme switcher */
    }
     #main-header nav {
         padding: 0 0.8rem; /* Less padding */
         height: 45px; /* Slightly shorter */
     }
    /* Adjust hamburger position if needed relative to theme switcher */
    /* .nav-toggle { right: 4.5rem; } */


    /* Other Pages */
    .gallery-grid { column-count: 1; }
    .projects-grid-cards { grid-template-columns: 1fr; }
    .models-grid { grid-template-columns: 1fr; }
    .about-stats-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } /* Allow more wrapping */
}

/* ================================================== */

/* ================================================== */
/* --- 13. About Page Services Section --- */ /* <<< RENAMED COMMENT */
/* ================================================== */

#about-services h2 { /* <<< CHANGED SELECTOR */
    /* text-align: center; */ /* Keep centered if you prefer */
    margin-bottom: 3rem; 
    /* Add underline styles back if you want it centered AND underlined */
    display: inline-block; 
    border-bottom: 2px solid var(--primary-engineer); 
    padding-bottom: 0.5rem; 
}

.services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 3rem; /* Space between columns */
    align-items: start;
}

.service-column {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Keep hover effect */
}

.service-column:hover { /* Keep hover effect */
    transform: scale(1.03); 
    box-shadow: 0 8px 25px var(--shadow-color); 
}

.service-column h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 0 0 1.5rem 0;
    display: flex; /* Align icon and text */
    align-items: center;
    gap: 0.8rem; /* Space between icon and text */
}

.service-column h3 i {
    font-size: 1.8rem;
    color: var(--primary-engineer); /* Default to engineer color */
    width: 25px; /* Fixed width for alignment */
    text-align: center;
}

/* Specific color for photography icon */
.service-column:last-child h3 i { /* Target second column's icon */
     color: var(--primary-photo);
}

.service-column ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
    color: var(--text-color);
}

.service-column li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem; /* Indent text */
    position: relative;
}

/* Custom bullet point */
.service-column li::before {
    content: "\2713"; /* Checkmark symbol */
    position: absolute;
    left: 0;
    color: var(--primary-engineer); /* Default bullet color */
    font-weight: bold;
}

/* Specific bullet color for photography */
.service-column:last-child li::before {
    color: var(--primary-photo);
}

/* Responsive adjustments for service columns (keep these) */
@media (max-width: 768px) {
    .services-columns {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2rem;
    }
}

/* --- Hire Me Button in Service Column --- */
.service-column .btn-hire {
    display: table; /* Treat button like a table for centering */
    margin: 1.5rem auto 0 auto; /* Top margin | auto horizontal margins | 0 bottom margin */
    /* Keep existing styles */
    padding: 0.6rem 1.5rem; 
    background-color: var(--primary-photo); 
    color: #ffffff; 
    border: none;
    border-radius: 5px; 
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-column .btn-hire:hover {
    background-color: var(--primary-engineer); /* Optional: Switch color on hover */
    color: #1a1a1a; /* Adjust text color for hover background */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Ensure dark theme hover text is readable */
body[data-theme='dark'] .service-column .btn-hire:hover {
     color: #1a1a1a; /* Keep dark text on light hover color */
}

/* ================================================== */
/* --- 14. Video Player Page --- */
/* ================================================== */

.video-player-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Limit player width */
    margin: 0 auto;
    background: #000; /* Black background for player */
    border-radius: 8px; /* Match card style */
    overflow: hidden; /* Keep video corners rounded */
    box-shadow: 0 10px 30px var(--shadow-color);
}

.video-player-container video {
    width: 100%; /* Make video fill container */
    height: auto;
    display: block;
}