@media (max-width: 768px) {
    #about-section {
        margin-bottom: 48px;
    }
    .image-caption {
        margin-bottom: 32px !important;
        margin-top: 32px !important;
        position: static !important;
    }
}
@media (max-width: 768px) {
    .site-footer {
        padding-top: 32px;
    }
}
@media (min-width: 1024px) {
    .footer-content-vertical {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 18px !important;
    }
    .footer-phones-row,
    .footer-logo-row,
    .footer-email-row {
        margin: 0 8px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .footer-email-row {
        margin-right: 0;
    }
}
/* AB Slider - Corrected Styles for Masking and Handle */
.ab-slider-container, .ab-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 2rem auto 0 auto;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 2px 16px #0004;
}
.ab-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.ab-left-mask {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
    border-radius: 12px 0 0 12px;
}

.ab-left-mask .ab-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Will be overridden by JS to container width */
    max-width: 800px; /* Match container max-width */
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 0;
    z-index: 3;
    cursor: ew-resize;
}
.ab-slider-line {
    position: absolute;
    left: -2px; top: 0;
    width: 4px; height: 100%;
    background: #8d97bd;
    opacity: 0.8;
    border-radius: 2px;
}
.ab-slider-button {
    position: absolute;
    left: -20px; top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(141,151,189,0.7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px #0003;
}
.ab-labels {
    position: absolute;
    width: 100%;
    top: 8px; left: 0;
    display: flex; justify-content: space-between;
    z-index: 4;
}
.ab-label {
    background: rgba(141,151,189,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
}
@media (max-width: 700px) {
    .portfolio-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    .portfolio-card {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto 1rem auto !important;
        display: block !important;
    }
    .portfolio-grid > div,
    .portfolio-grid > a {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto 1rem auto !important;
        display: block !important;
    }
}
@media (max-width: 700px) {
    .portfolio-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-items: center;
    }
    .portfolio-card {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto !important;
    }
    .portfolio-grid > div,
    .portfolio-grid > a {
        grid-column: 1 !important;
    }
}
@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-items: center;
    }
    .portfolio-card {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}
/* A3E Web - Main Stylesheet */

/* Hero Video Section */
#hero-video-section {
    position: relative;
    width: 100%;
    height: 30vh;
    overflow: hidden;
    background: #000;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-video-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.5);
    color: black;
    border: 2px solid black;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: black;
    transform: translateY(-1px);
}

#hero-video-section.hidden {
    display: none;
}

#hero-video-section.video-hidden {
    height: auto;
    background: transparent;
}

#hero-video-section.video-hidden #hero-video,
#hero-video-section.video-hidden #sound-toggle {
    display: none;
}

#hero-video-section.video-hidden .hero-video-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 5px;
    z-index: 1000;
}

/* Adjust logo and tagline positioning when video is hidden */
#hero-video-section.video-hidden + #main-content #deliverables-section .deliverables-logo {
    margin-top: 2rem !important;
    transition: margin-top 0.3s ease;
}

#hero-video-section.video-hidden + #main-content #deliverables-section .tagline {
    margin-top: 0.5rem !important;
    transition: margin-top 0.3s ease;
}

/* Alternative approach - adjust the entire deliverables section when video is hidden */
#hero-video-section.video-hidden + #main-content #deliverables-section {
    padding-top: 3rem;
    transition: padding-top 0.3s ease;
}

/* Add smooth transitions for normal state too */
.deliverables-logo {
    transition: margin-top 0.3s ease;
}

.tagline {
    transition: margin-top 0.3s ease;
}

/* Responsive adjustments for hero video */
@media (max-width: 768px) {
    .hero-video-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .hero-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8d97bd;
    --secondary-color: #494e64;
    --text-dark: #000;
    --text-light: #444;
    --background-dark: #222;
    --white: #ffffff;
    --black: #000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--black);
    /* overflow: hidden; */
}

/* Responsive Footer for Small Screens */
@media (max-width: 480px) {
    .responsive-footer {
        padding: 10px 5px !important;
    }
    
    .footer-content-responsive {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .footer-icon-michigan,
    .footer-icon-drone {
        height: 40px !important;
    }
    
    .footer-icon-logo {
        height: 24px !important;
    }
    
    .footer-text-phone,
    .footer-text-email {
        font-size: 14px !important;
        line-height: 20px !important;
    }
}

/* Landing Page Styles */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    z-index: 1000;
}

#logo-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* Enter Button Styles */
#enter-section {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 10;
}

#enter-section.show {
    opacity: 1;
}

#enter-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Main Content Styles */
#main-content {
    background-color: #111;
    min-height: 100vh;
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Deliverables Section */
#deliverables-section {
    padding: 4rem 0;
    border-bottom: 1px solid #333;
    transition: padding-top 0.3s ease;
}

#deliverables-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 600;
}

.deliverables-logo {
    display: block;
    margin: 0 auto;
    width: 280px;
    height: auto;
    margin-top: -140px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8));
    opacity: 1;
    transition: margin-top 0.3s ease;
}

.video-container {
    text-align: center;
    margin-bottom: 3rem;
}

.video-container iframe {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.deliverable-card {
    background: rgba(141, 151, 189, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Reduce texture background opacity to 50% */
.deliverable-card[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    opacity: 0.5;
    z-index: 1;
}

.deliverable-card[style*="background-image"] {
    background-image: none !important;
}

/* Sheen effect for deliverable cards */
.deliverable-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 3;
    filter: blur(1px);
}

.deliverable-card:hover::after {
    left: 100%;
}

.deliverable-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #3a3a3a, #2d2d2d);
}

.deliverable-card.active {
  background: #222 !important;
}

.deliverable-card.active::before {
    opacity: 0.7;
}

.deliverable-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.deliverable-card:hover::before {
    opacity: 0.3;
}

.deliverable-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(141, 151, 189, 0.1),
        0 0 60px rgba(141, 151, 189, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.deliverable-card:hover .card-icon img {
    filter: brightness(1.2) invert(1);
    transform: scale(1.1);
}

/* Deliverable Content Section */
.deliverable-content {
    max-height: none;
    overflow: visible;
    transition: none;
    margin-top: 2rem;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 15px;
    border: 2px solid transparent;
}

.deliverable-content.active {
    max-height: none;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(141, 151, 189, 0.3);
}

.content-section {
    display: none;
    padding: 2rem;
    color: var(--white);
}

.content-section.active {
    display: block;
    animation: fadeInContent 0.5s ease-out;
}

.content-section h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 1.1rem;
}

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

/* Portfolio Section */
#portfolio-section {
    padding: 4rem 0;
    border-bottom: 1px solid #333;
}

#portfolio-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-card {
    position: relative;
    height: 200px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Removed hover effects for portfolio cards */
/*
.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(141, 151, 189, 0.3),
        0 0 40px rgba(141, 151, 189, 0.2);
}
*/

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7),
        rgba(141, 151, 189, 0.3)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Removed hover effects for portfolio overlay */
/*
.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5),
        rgba(141, 151, 189, 0.5)
    );
}
*/

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    margin: 0;
}

/* Removed hover effects for portfolio titles */
/*
.portfolio-card:hover .portfolio-overlay h3 {
    color: var(--white);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(141, 151, 189, 0.7);
    transform: scale(1.05);
}
*/

/* About Section */
#about-section {
    padding: 4rem 0;
}

#about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 600;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    line-height: 1.8;
}

.about-text p {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text .note {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #8d97bd;
}

.about-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.image-caption {
  text-align: center;
  width: calc(100% + 100px); /* match skill column + photo width */
  margin-top: 1.5rem;
  margin-left: -50px; /* half skill column width to center under both */
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4.5rem;
}

.image-caption p {
    color: var(--white);
    margin: 0.25rem 0;
}

.image-caption p:first-child {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.image-caption p:last-child {
    font-size: 1.1rem;
    color: #ccc;
}

/* Sketchfab Embed Styles */
.sketchfab-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.sketchfab-instructions {
  color: #FFD34E;
  font-size: 1.1rem;
  margin: 1.5rem 0 0 0;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 0 2rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

/* SERVICES UI Styles */
.services-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0 0;
  flex-wrap: wrap;
}
.services-ui label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-right: 0.25rem;
  cursor: pointer;
}
.services-ui input[type="checkbox"] {
  margin-right: 0.25rem;
  accent-color: var(--primary-color);
  width: 1rem;
  height: 1rem;
}
#services-all-toggle {
  margin-left: 1.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#services-all-toggle:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .deliverables-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .deliverable-card {
        width: 100%;
    }
    .deliverable-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 1rem;
        position: static;
        left: 0;
        right: 0;
    }
    .portfolio-grid {
        gap: 1.5rem;
    }
    .portfolio-card {
        height: 150px;
    }
    .portfolio-overlay h3 {
        font-size: 1.1rem;
    }
    #portfolio-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    #about-section {
        padding: 2rem 0;
    }
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .deliverables-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .deliverable-card {
        padding: 1.5rem;
        aspect-ratio: 1;
        flex-direction: column;
        text-align: center;
    }
    /* Remove icon resizing for mobile */
    /* .card-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 0;
    } */
    #deliverables-section h2 {
        font-size: 1.8rem;
    }
    .video-container iframe {
        width: 100%;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .portfolio-card {
        height: 120px;
    }
    .portfolio-overlay {
        padding: 10px 15px;
    }
    .portfolio-overlay h3 {
        font-size: 1rem;
    }
    #portfolio-section h2 {
        font-size: 1.8rem;
    }
}

/* A/B Slider Styles */
.ab-slider-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.ab-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ab-left-images,
.ab-right-images {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ab-left-images {
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    width: 50%; /* This will be set dynamically by JS */
}

.ab-right-images {
    right: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    width: 50%; /* This will be set dynamically by JS */
}

.ab-image {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(-12%);
    transition: opacity 0.3s ease;
}

.ab-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    cursor: ew-resize;
    transform: translateX(-2px);
    z-index: 10;
}

.ab-slider-line {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(141, 151, 189, 0.5);
}

.ab-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transform: translateY(-30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ab-slider-arrow {
    position: absolute;
    font-size: 9px;
    font-weight: bold;
}

.ab-arrow-left {
    left: 3px;
}

.ab-arrow-right {
    right: 3px;
}

.ab-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.ab-label {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.ab-label-left {
    background: rgba(141, 151, 189, 0.9);
}

.ab-label-right {
    background: rgba(73, 78, 100, 0.9);
}

/* Portfolio Card Subtle Hover Effects */
.portfolio-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 3;
}

.portfolio-card:hover::after {
    left: 100%;
}

.portfolio-card:hover {
    box-shadow: 
        0 8px 25px rgba(141, 151, 189, 0.3),
        0 0 20px rgba(141, 151, 189, 0.2);
    transform: translateY(-3px);
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
    border: 2px solid white;
}

/* A/B Slider Description Text */
.content-section .ab-slider-description {
    color: #FFD34E !important;
  font-size: 1.1rem;
  margin: 1.5rem 0 0 0;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 0 2rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.deliverable-card.active .card-icon img {
    filter: none;
    background: none !important;
    border-radius: 0;
    padding: 0;
    /* Use a color overlay for the icon itself */
    /* If SVG, use fill; if PNG, use filter: drop-shadow for tint */
    /* Example for SVG icons: */
    /* fill: rgba(141, 151, 189, 0.5); */
    /* For PNG, use a drop-shadow tint: */
    filter: drop-shadow(0 0 0 rgba(141, 151, 189, 0.5));
}

/* Footer Styles */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    border-top: 1px solid #333;
}

/* Deliverable Card Subtle Hover Effects */
.portfolio-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .sketchfab-embed {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        margin: 1rem auto 0 auto;
    }
    #api-frame {
        width: 100vw !important;
        max-width: 100% !important;
        height: 220px !important;
        min-height: 160px;
        border-radius: 10px;
        box-shadow: 0 2px 12px #0003;
        display: block;
        margin: 0 auto;
    }
    #services-ui {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 100vw;
    }
}

@media (min-width: 769px) {
  .deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
    align-items: stretch;
    position: relative;
  }
  .deliverable-card {
    width: 100%;
    margin: 0;
    padding: 2rem;
    min-height: 260px;
    box-sizing: border-box;
    grid-row: 1;
  }
  .deliverable-content {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
    margin-bottom: 0;
    position: static;
    left: 0;
    right: 0;
    display: none;
    grid-row: 2;
  }
  .deliverable-card.active + .deliverable-content {
    display: block;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
    .deliverables-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
        align-items: stretch;
    }
    .deliverable-card {
        min-width: 0;
        min-height: 140px;
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .deliverable-card[data-card="3d-models"] { grid-column: 1; grid-row: 1; }
    .deliverable-card[data-card="ab-sliders"] { grid-column: 2; grid-row: 1; }
    .deliverable-card[data-card="videos"] { grid-column: 1; grid-row: 3; }
    .deliverable-card[data-card="photos"] { grid-column: 2; grid-row: 3; }
    
    /* Full-width content display for tablet screens - keeps page flow */
    div.deliverable-content[id="content-3d-models"].active,
    div.deliverable-content[id="content-ab-sliders"].active,
    div.deliverable-content[id="content-videos"].active,
    div.deliverable-content[id="content-photos"].active,
    #content-3d-models.deliverable-content.active,
    #content-ab-sliders.deliverable-content.active,
    #content-videos.deliverable-content.active,
    #content-photos.deliverable-content.active {
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding: 2rem !important;
        background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        overflow-y: visible !important;
        transform: none !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    /* Ensure 3D model elements work properly */
    #content-3d-models.active #api-frame,
    #content-3d-models.active .sketchfab-embed,
    #content-3d-models.active .services-ui {
        position: relative !important;
        z-index: 2 !important;
        width: auto !important;
        max-width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }
    
    #content-3d-models.active #api-frame {
        width: 640px !important;
        height: 400px !important;
        max-width: 100% !important;
    }
    #content-3d-models,
    #content-ab-sliders,
    #content-videos,
    #content-photos {
        display: none;
    }


/* Footer Styles */
.footer {
  background-color: #3c4156;
  padding: 15px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.footer-icon {
  height: 28px !important;
  width: auto !important;
  max-height: 28px !important;
  filter: brightness(0) invert(1) !important;
  vertical-align: middle;
}

.footer-text {
  color: white !important;
  font-size: 16px;
  text-decoration: none;
  vertical-align: middle;
  line-height: 28px;
}

.footer-text:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
    .sketchfab-embed {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        margin: 1rem auto 0 auto;
    }
    #api-frame {
        width: 100vw !important;
        max-width: 100% !important;
        height: 220px !important;
        min-height: 160px;
        border-radius: 10px;
        box-shadow: 0 2px 12px #0003;
        display: block;
        margin: 0 auto;
    }
    #services-ui {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 100vw;
    }
}

@media (min-width: 769px) {
  .deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
    align-items: stretch;
    position: relative;
  }
  .deliverable-card {
    width: 100%;
    margin: 0;
    padding: 2rem;
    min-height: 260px;
    box-sizing: border-box;
    grid-row: 1;
  }
  .deliverable-content {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
    margin-bottom: 0;
    position: static;
    left: 0;
    right: 0;
    display: none;
    grid-row: 2;
  }
  .deliverable-card.active + .deliverable-content {
    display: block;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
        .container {
            max-width: 100% !important;
            padding: 0 1rem !important;
        }
        .deliverables-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto auto auto;
            gap: 1rem;
            padding-left: 2rem;
            padding-right: 2rem;
            align-items: stretch;
            width: 100% !important;
            max-width: 100% !important;
        }
  .deliverable-card {
    min-width: 0;
    min-height: 140px;
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .deliverable-card[data-card="3d-models"] { grid-column: 1; grid-row: 1; }
  .deliverable-card[data-card="ab-sliders"] { grid-column: 2; grid-row: 1; }
  #content-3d-models.active,
  #content-ab-sliders.active {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    position: static;
    left: 0;
    right: 0;
    display: block;
  }
    /* Full-width content display for tablet screens - keeps page flow */
    div.deliverable-content[id="content-3d-models"].active,
    div.deliverable-content[id="content-ab-sliders"].active,
    div.deliverable-content[id="content-videos"].active,
    div.deliverable-content[id="content-photos"].active,
    #content-3d-models.deliverable-content.active,
    #content-ab-sliders.deliverable-content.active,
    #content-videos.deliverable-content.active,
    #content-photos.deliverable-content.active {
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding: 2rem !important;
        background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        overflow-y: visible !important;
        transform: none !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    /* Ensure 3D model elements work properly */
    #content-3d-models.active #api-frame,
    #content-3d-models.active .sketchfab-embed,
    #content-3d-models.active .services-ui {
        position: relative !important;
        z-index: 2 !important;
        width: auto !important;
        max-width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }
    
    #content-3d-models.active #api-frame {
        width: 640px !important;
        height: 400px !important;
        max-width: 100% !important;
    }
  }
}

.deliverables-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 300;
    margin-top: -2.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
    transition: margin-top 0.3s ease;
}
