/* ===================================
   3DNC - 3D Printing Services Website
   Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #4fc3f7;
    --primary-dark: #0d9dce;
    --secondary-color: #81c784;
    --text-dark: #e8eef3;
    --text-light: #b0bac4;
    --bg-light: #2b3e50;
    --bg-dark: #1e2a35;
    --bg-white: #212d3a;
    --border-color: rgba(79, 195, 247, 0.2);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #1e2a35;
    position: relative;
    min-height: 100vh;
}

/* Full-Page G-Code Background */
.gcode-background-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #1e2a35;
    overflow: hidden;
    opacity: 0.35;
    padding: 40px 20px;
    column-count: 6;
    column-gap: 30px;
    column-rule: 1px solid rgba(79, 195, 247, 0.08);
}

.gcode-background-global .gcode-line {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #4fc3f7;
    white-space: nowrap;
    padding: 2px 0;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.4);
    line-height: 1.7;
    display: inline-block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.gcode-background-global .gcode-line:nth-child(even) {
    color: #81c784;
    text-shadow: 0 0 8px rgba(129, 199, 132, 0.3);
}

.gcode-background-global .gcode-line:nth-child(3n) {
    color: #ff8a65;
    text-shadow: 0 0 8px rgba(255, 138, 101, 0.3);
}

.gcode-background-global .gcode-line:nth-child(5n) {
    color: #ba68c8;
    text-shadow: 0 0 8px rgba(186, 104, 200, 0.3);
}

@media (max-width: 1200px) {
    .gcode-background-global {
        column-count: 4;
    }
}

@media (max-width: 768px) {
    .gcode-background-global {
        column-count: 3;
        column-gap: 15px;
    }
    
    .gcode-background-global .gcode-line {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .gcode-background-global {
        column-count: 2;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Modal Light Backgrounds - For improved readability over gcode background */
.modal-light {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-light-wrapper {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.section-header-light {
    background-color: rgba(78, 86, 91, 0.88);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 195, 247, 0.2);
    display: inline-block;
}

.section-header-light h2 {
    margin: 0;
    color: var(--text-dark);
}

.section-header-light-blue {
    background-color: rgba(102, 119, 129, 0.88);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 0 auto 1rem;
    border: 1px solid rgba(79, 195, 247, 0.2);
    text-align: center;
    max-width: fit-content;
}

.section-header-light-blue h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.section-header-light-blue p {
    margin: 0;
    color: var(--text-light);
    font-size: 1.125rem;
}

.section-header-full-width {
    background-color: rgba(102, 119, 129, 0.88);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(79, 195, 247, 0.2);
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-header-full-width h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.section-header-full-width p {
    margin: 0;
    color: var(--text-light);
    font-size: 1.125rem;
}

.section-header-constrained {
    background: #708693 !important;
    background-color: #708693 !important;
    padding: 2rem;
    margin-bottom: 0;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-header-constrained h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.section-header-constrained p {
    margin: 0;
    color: var(--text-light);
    font-size: 1.125rem;
}

.modal-light-wrapper-blue {
    background-color: rgba(102, 119, 129, 0.92);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}


.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* Navigation */
.navbar {
    background-color: rgba(30, 42, 53, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.nav-brand a {
    display: block;
    line-height: 0;
}

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.7));
    transform-origin: center bottom;
    animation: logoGrow 35s ease-in-out infinite alternate;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

@keyframes logoGrow {
    0% {
        transform: scale(0.25);
    }
    100% {
        transform: scale(0.5);
    }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(79, 195, 247, 1), rgba(13, 157, 206, 1));
    backdrop-filter: blur(10px);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Services Overview */
.services-overview {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.services-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
    border-color: rgba(79, 195, 247, 0.5);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #4fc3f7;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

/* Service Detail Pages */
.service-detail {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.service-detail.alt-bg {
    position: relative;
    z-index: 1;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.process-list {
    counter-reset: process-counter;
    list-style: none;
    margin: 1rem 0;
}

.process-list li {
    counter-increment: process-counter;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.video-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-placeholder .small {
    font-size: 1rem;
    color: var(--text-light);
}

/* Combined Solutions */
.combined-solutions {
    padding: 5rem 0;
}

.combined-solutions h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.solution-card h3 {
    color: #4fc3f7;
    margin-bottom: 1rem;
}

/* Recent Work Highlight */
.recent-work-highlight {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.recent-work-highlight h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.project-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Gallery */
.recent-work {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.featured-gallery-item {
    margin-bottom: 4rem;
}

.gallery-item-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.gallery-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-specs {
    list-style: none;
    margin: 1rem 0;
}

.project-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-highlight {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

/* Time Lapse Gallery */
.timelapse-gallery {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.timelapse-gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h4,
.video-card p {
    padding: 0 1.5rem;
}

.video-card h4 {
    margin-top: 1rem;
}

.video-card p {
    color: var(--text-light);
    padding-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 1rem;
}

.contact-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(78, 86, 91, 0.92);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info-card {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.contact-info-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-info-card ul {
    list-style: none;
}

.contact-info-card li {
    padding: 0.25rem 0;
}

.info-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Thank You Section */
.thank-you-section {
    padding: 8rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.thank-you-details {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.faq-item h3 {
    color: #4fc3f7;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Portfolio Page */
.portfolio-content {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.content-notice {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: 4px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background-color: rgba(78, 86, 91, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-about {
    background-color: rgba(78, 86, 91, 0.92);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 1), rgba(13, 157, 206, 1));
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: rgba(78, 86, 91, 0.96);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(79, 195, 247, 0.2);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -200px;
        width: auto;
        min-width: 140px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        background-color: rgba(30, 42, 53, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
        border-radius: 8px 0 0 8px;
        border: 1px solid rgba(79, 195, 247, 0.3);
        border-right: none;
        padding: 0.5rem;
        transition: right 0.3s ease;
        z-index: 999;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 10px;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: none;
        font-size: 1rem;
        color: #ffffff;
        text-align: right;
        background-color: transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #4fc3f7;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .thank-you-content h1 {
        font-size: 2.5rem;
    }
    
    .thank-you-message {
        font-size: 1.25rem;
    }
    
    .service-detail-content,
    .featured-project,
    .gallery-item-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .service-detail-content.reverse {
        direction: ltr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .hero {
        height: 500px;
        min-height: 500px;
    }
    
    .hero-logo img {
        max-width: 250px;
    }
    
    @keyframes logoGrow {
        0% {
            transform: scale(0.3);
        }
        100% {
            transform: scale(0.4);
        }
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .gallery-image-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Portfolio Archive Styles
   =================================== */

.hero-small {
    background: linear-gradient(135deg, rgba(79, 195, 247, 1) 0%, rgba(13, 157, 206, 1) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-small h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-small p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Portfolio Navigation Menu */
.portfolio-nav {
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.portfolio-menu {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.portfolio-menu a:hover {
    background-color: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
}

.portfolio-menu a.active {
    background-color: #4fc3f7;
    color: white;
}

.portfolio-list {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-item:last-child {
    border-bottom: none;
}

.portfolio-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.portfolio-item h3 a {
    color: var(--text-dark);
    transition: var(--transition);
}

.portfolio-item h3 a:hover {
    color: var(--primary-color);
}

.portfolio-item .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Portfolio Content Pages */
.portfolio-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-dark);
}

.portfolio-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portfolio-header .date {
    color: var(--text-light);
    font-size: 1rem;
}

.portfolio-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.portfolio-body p {
    margin-bottom: 1.5rem;
}

.portfolio-body h2,
.portfolio-body h3,
.portfolio-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.portfolio-body img {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.portfolio-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.portfolio-body a:hover {
    color: var(--primary-dark);
}

/* WordPress Block Gallery Support */
.wp-block-jetpack-tiled-gallery {
    margin: 2rem 0;
}

.tiled-gallery__gallery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tiled-gallery__row {
    display: flex;
    gap: 0.5rem;
}

.tiled-gallery__col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tiled-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.tiled-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* WordPress Columns */
.wp-block-columns {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.wp-block-column {
    flex: 1;
}

/* Responsive Portfolio */
@media (max-width: 768px) {
    .hero-small h1 {
        font-size: 2rem;
    }
    
    .portfolio-header h1 {
        font-size: 2rem;
    }
    
    .portfolio-body {
        font-size: 1rem;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
}

/* ===================================
   Portfolio Projects Grid
   =================================== */

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 8px;
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
}

.project-modal.active {
    display: block;
}

.project-modal .modal-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
}

.project-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.project-modal .modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.project-modal-header {
    margin-bottom: 2rem;
}

.project-modal-header h2 {
    font-size: 2rem;
    margin: 0.5rem 0 1rem 0;
}

.project-modal-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-gallery {
    display: grid;
    gap: 1.5rem;
}

.project-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Responsive Projects */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .project-modal {
        padding: 1rem;
    }
    
    .project-modal .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .project-modal-header h2 {
        font-size: 1.5rem;
    }
}
