/*
Theme Name: DaniPak Theme
Description: A simple and clean WordPress theme for DaniPak website
Author: DaniPak Team
Version: 1.0
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000000;
}

/* Ensure Open Sans for all headings and important elements */
h1, h2, h3, h4, h5, h6,
.site-title,
.hero-title,
.page-title,
.entry-title,
.post-title,
.widget-title,
.section-title,
button,
input,
select,
textarea,
.btn {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Header Styles */
.site-header {
    background-color: #000000b5;
    color: white;
    padding: 0;
    height: 80px;
    position:fixed; width: 100%; top: 0;
   /*  background-image: url('./img/colors.png');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 13px; */
    box-shadow: 0px -5px 11px 9px #00000085;
    z-index: 999;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
    line-height: 1;
}

.site-logo {
    height: 45px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    margin: 0;
}

.site-title:hover {
    color: #f39c12;
    text-decoration: none;
}

.site-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 80px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #f39c12;
}

.main-navigation li:after {
    content: "•";
    color: #F89F7C;
    margin: 0 10px;
    font-size: 24px;
    display: flex;
    align-items: center;
    height: 80px;
    line-height: 1;
}

.main-navigation li:last-child:after {
    display: none;
}

/* Main Content Area */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.wp-block-image img{border-radius: 15px;    border: 4px solid #fff;}


/* Main content margin - different for homepage vs other pages */
body.home #primary,
body.front-page #primary {
    margin-top: 0; /* No margin on homepage since it's fullscreen slides */
}

body:not(.home):not(.front-page) #primary {
    margin-top: 80px; /* Standard margin for other pages */
}

/* Post Styles */
.post {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.post-content {
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 20px; color: #fff;
}

h1.page-title{
    margin: 1rem 0 1rem 0;    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 300;
}
.page-content h2 {
    margin: 0 0 1rem 0;
    color: #e6a57a; 
    padding-right: 25px;
}
.page-content h3 {
    margin: 0 0 1rem 0;
    color: #F89F7C;
}

/* Sidebar Styles */
.sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    margin-top: 1px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0rem;
}

.footer-section {
    color: #e0e0e0;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.contact-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f39c12;
    display: inline-block;
}

.footer-main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-main-navigation a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-main-navigation a:hover {
    color: #f39c12;
    text-decoration: none;
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-info-list li {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-info-list li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-info-list li a:hover {
    color: #f39c12;
    text-decoration: none;
}

.footer-bottom {
    background-color: #0f0f0f;
    padding: 1.5rem 2rem;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.footer-bottom-navigation a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-navigation a:hover {
    color: #f39c12;
    text-decoration: none;
}

.page-id-13{    background: #2a2a2a;
    background-image: url('./img/Lines3.png');
    background-position: right -130px;
    background-repeat: no-repeat;
    background-size: 55%;}
.page-id-17{   background: #2a2a2a;
        background-image: url('./img/Lines3.png');
        background-position: right -198px;
        background-repeat: repeat-y;
        background-size: 41%;}
        .page-id-21{    background: #2a2a2a;
            background-image: url('./img/Lines3.png');
            background-position: right -130px;
            background-repeat: no-repeat;
            background-size: 55%;}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }
    
    .footer-info-section {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .footer-logo-img {
        max-width: 150px;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    .footer-bottom-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-main {
        grid-template-columns: 1fr;
        margin: 0 auto; padding: 0 15px;
    }
    body .is-layout-flex{flex-direction: column;}
    .post {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .homepage-title {
        font-size: 2rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    height: 80px;
    align-items: center;
}

.menu-toggle:hover {
    color: #f39c12;
}

@media (max-width: 1024px) {
    .header-content {
        padding: 0 20px;
    }
    
    .main-navigation a {
        padding: 28px 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 80px;
        flex-wrap: nowrap;
    }
    
    .site-branding {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    
    .site-logo {
        height: 35px;
        width: auto;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        flex: 0 0 auto;
        margin-left: auto;
        position: relative;
        z-index: 1001;
    }
    
    .main-navigation ul {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100vw;
        background: rgb(26 26 26 / 56%);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        display: none;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation li:after {
        display: none;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
        height: auto;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        border-left-color: #f39c12;
        border-bottom: none;
        background-color: rgba(243, 156, 18, 0.1);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }
    
    .site-logo {
        height: 30px;
    }
    
    .menu-toggle {
        font-size: 1.3rem;
        padding: 0.3rem;
    }
}

/* Removed back-to-top button styles - no longer needed */

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-meta {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Homepage Intro Styles */
.homepage-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.homepage-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.homepage-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Comments Styles */
.comments-area {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comments-title {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-meta {
    margin-bottom: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-reply-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Author Bio Styles */
.author-info {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.author-avatar img {
    border-radius: 50%;
}

.author-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.author-name {
    color: #3498db;
}

.author-bio {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-link-button {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.author-link-button:hover {
    text-decoration: underline;
}

/* Archive and Search Styles */
.archive-header, .search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}


.archive-description {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 3rem 2rem;
}

.error-404 .page-title {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Search Form Styles */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #2980b9;
}

/* Accessibility Improvements */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.skip-link {
    background: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 100000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 7px;
}

/* Video Hero Section */
.video-hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

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

.vimeo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
    z-index: 1;
}

@media (max-aspect-ratio: 16/9) {
    .vimeo-background {
        height: 100vh;
        width: 177.77vh;
    }
}

@media (min-aspect-ratio: 16/9) {
    .vimeo-background {
        width: 100vw;
        height: 56.25vw;
    }
}

/* Transparent overlay to capture scroll events over the video */
.video-overlay-events {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
}

.innovation-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 0 0 160px;
}

.hero-text-container {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(0);
    transition: opacity 3.2s ease-out, transform 3.2s ease-out;
}

.hero-text-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-container.fade-out {
    opacity: 0;
    transform: translateX(100px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.transform-text, .into-text {
    color: #fff;
    font-weight: 300;
}

.ordinary-text,

.extraordinary-text {
    color: #f39c12;
    font-weight: 300;
}

/* Homepage Content Sections */
.homepage-content {
    margin-top: 0;
}

.homepage-posts-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.posts-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.homepage-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.homepage-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.homepage-post .entry-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.homepage-post .entry-title a {
    color: #2c3e50;
    text-decoration: none;
}

.homepage-post .entry-title a:hover {
    color: #f39c12;
}

.view-all-posts {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.no-posts-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design for Video Hero */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        padding: 0 20px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-text-container {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .hero-content-wrapper {
        padding: 0 15px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .video-hero-section {
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-text-container {
        padding: 25px 30px;
        border-radius: 15px;
    }
    
    .homepage-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .homepage-posts-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 0 10px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-text-container {
        padding: 20px 25px;
        margin: 0;
    }
}

/* 4-Section Layout */
.section-1, .section-3, .section-4 {

    position: relative;

}
.section-2 {
    position: relative;
   
}

/* Section 2: Black Lines Section with Mask Reveal */
.section-2 {
    background: #080808;
    background-image: url('./img/Lines2.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: auto;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    transition: none;
}

.mask-overlay {
    display: none;
}

.black-content-wrapper {
    position: relative;
    z-index: 7;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.black-content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 180px;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}

.sketch-left {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(-80px) translateY(0px);
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.sketch-left.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.sketch-image {
    width: 100%;
    height: auto; max-width: 575px;
}

.text-right {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(80px) translateY(0px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
}

.text-right.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.text-content {
    color: white;
}

.intro-question {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-weight: 300;
}

.main-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    color: white;
    font-weight: 400;
}

.main-description strong {
    color: #f39c12;
    font-weight: 700;
}

/* Section 3: Innovation Section */
.section-3 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px; 
}

.innovation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/Lines.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.innovation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    z-index: 2;
}

.innovation-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px;
    width: 100%;
}

.innovation-container {
    padding: 0 20px;
}

.innovation-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.innovation-description {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.innovation-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    background: rgb(166 166 166 / 22%);
    padding: 10px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Section 4: Content Section */
.section-4 {
    background: #ffffff;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-4-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/zoomBG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.section-4-overlay {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%) translateX(-100%);
    z-index: 10;
    opacity: 0;
    transition: all 0.8s ease-out;
    max-width: 600px;
}

.section-4-overlay.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.section-4-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.section-4-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.section-4-title {
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.section-4-arrow {
    width: 50px;
    height: 50px;
    background-color: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.section-4-link:hover .section-4-arrow {
    background-color: #e67e22;
    transform: scale(1.1);
}

.section-4-arrow svg {
    width: 24px;
    height: 24px;
}

/* Remove old section 4 styles */
.content-container {
    display: none;
}

.content-grid {
    display: none;
}

.content-item {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .black-content-container {
        gap: 60px;
    }
    
    .innovation-title {
        font-size: 2.5rem;
    }
    
    .innovation-features {
        gap: 30px;
    }
    
    .intro-question {
        font-size: 1.2rem;
    }
    
    .main-description {
        font-size: 1rem;
    }
    
    .video-end-overlay {
        left: 30px;
        max-width: 450px;
    }
    
    .video-end-content {
        padding: 25px;
    }
    
    .video-end-title {
        font-size: 24px;
    }
    
    .video-end-features .feature-item {
        font-size: 15px;
    }
    
    .section-4-overlay {
        left: 30px;
        max-width: 500px;
    }
    
    .section-4-content {
        padding: 35px;
    }
    
    .section-4-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .black-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .black-content-wrapper {
        padding: 0;
        width: 72%;
        margin: 0 0 0 15%;
    }
    
    .sketch-image {
        max-width: 300px;
    }
    .section-2{         background-position: top left;
        background-size: contain;}
    .innovation-title {
        font-size: 2rem;
    }
    
    .innovation-description {
        font-size: 1.1rem;
    }
    
    .innovation-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-item {
        padding: 30px 25px;
    }
    
    .intro-question {
        font-size: 0.8rem;
    }
    
    .main-description {
        font-size: 0.95rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-item {
        padding: 30px;
    }
    
    .video-end-overlay {
        left: 20px;
        right: 20px;
        max-width: none;
        transform: translateY(-50%) translateX(-50%);
        left: 50%;
    }
    
    .video-end-overlay.show {
        transform: translateY(-50%) translateX(-50%);
    }
    
    .video-end-content {
        padding: 20px;
    }
    
    .video-end-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .video-end-features {
        gap: 12px;
    }
    
    .video-end-features .feature-item {
        font-size: 14px;
        padding-left: 12px;
    }
    
    .section-4-overlay {
        left: 50%;
        right: 20px;
        max-width: none;
        transform: translateY(-50%) translateX(-50%);
        left: 50%;
    }
    
    .section-4-content {
        padding: 25px;
    }
    
    .section-4-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
}

/* Hero Animation Keyframes */
@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GSAP ScrollSmoother Setup - Homepage Only */
body.home html,
body.front-page html {
    height: 100%;
    overflow: hidden; /* Prevent page scrolling only on homepage */
}

body.home,
body.front-page {
    height: 100%;
    overflow: hidden; /* Prevent page scrolling only on homepage */
}

/* Normal scrolling for all other pages */
body:not(.home):not(.front-page) html,
body:not(.home):not(.front-page) {
    height: auto;
    overflow: auto;
}

/* Slide Deck System - Homepage Only */
body.home #smooth-wrapper,
body.front-page #smooth-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

body.home #smooth-content,
body.front-page #smooth-content {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Normal content wrapper for other pages */
body:not(.home):not(.front-page) #smooth-wrapper,
body:not(.home):not(.front-page) #smooth-content {
    position: relative;
    height: auto;
    width: 100%;
    overflow: visible;
}

/* Full-Screen Slide System - Homepage Only */
body.home .slide,
body.front-page .slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

body.home .slide.active,
body.front-page .slide.active {
    z-index: 10;
    transform: translateY(0);
}

body.home .slide.next,
body.front-page .slide.next {
    transform: translateY(100vh);
    z-index: 2;
}

body.home .slide.prev,
body.front-page .slide.prev {
    transform: translateY(-100vh);
    z-index: 2;
}

body.home .slide.hidden,
body.front-page .slide.hidden {
    transform: translateY(200vh);
    z-index: 1;
}

/* Normal positioning for sections on other pages */
body:not(.home):not(.front-page) .slide {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none !important;
    z-index: auto;
    transition: none;
}

/* Vertical Navigation Dots - Homepage Only */
.section-nav {
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.8);
    padding: 16px 12px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide section nav on non-homepage pages */
body:not(.home):not(.front-page) .section-nav {
    display: none !important;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.nav-dot.active {
    background: #f39c12;
    border-color: #f39c12;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-dot.active::after {
    opacity: 1;
}

/* Footer navigation dot styling */
.footer-dot {
    border-color: rgba(243, 156, 18, 0.6) !important;
    background: rgba(243, 156, 18, 0.3) !important;
}

.footer-dot.active {
    background: #f39c12 !important;
    border-color: #f39c12 !important;
}

/* Mobile adjustments for navigation */
@media (max-width: 768px) {
    .section-nav {
        right: 15px;
        gap: 10px;
        padding: 12px 8px;
        border-radius: 20px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* Model Selector Styles with Images */
.model-3d-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.model-selector-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 85px;
    user-select: none;
}

.model-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.model-selector-btn.active {
    background: rgb(0 0 0 / 21%);
    border-color: #f39c12;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
}

.model-preview-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.model-name {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
}

.model-selector-btn.active .model-name {
    color: #f39c12;
    font-weight: 600;
    opacity: 1;
}

/* Mobile Model Selector Styles */
.mobile-3d-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.mobile-model-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    user-select: none;
}

.mobile-model-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-model-btn.active {
    background: rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.mobile-model-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
}

.mobile-model-name {
    font-size: 11px;
    color: white;
    font-weight: 500;
    text-align: center;
}

.mobile-model-btn.active .mobile-model-name {
    color: white;
    font-weight: 600;
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-text {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-text svg {
    color: white;
    animation: arrowBounce 1.5s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Hide scroll indicator on last slide */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hide scroll indicator on non-homepage pages */
body:not(.home):not(.front-page) .scroll-indicator {
    display: none !important;
}

/* Responsive styles for scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-text {
        font-size: 12px;
        padding: 10px 20px;
        gap: 6px;
    }
    
    .scroll-text svg {
        width: 16px;
        height: 16px;
    }
}

/* Video End Overlay Styles */
.video-end-overlay {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%) translateX(-100%);
    z-index: 10;
    opacity: 0;
    max-width: 340px;
    backdrop-filter: blur(3px);
}

/* Auto fade-in from left animation */
.video-end-overlay.auto-fade-left {
    animation: fadeInFromLeft 1s ease-out forwards;
}

/* Second overlay positioned on the right */
#video-end-overlay-2 {
    left: auto;
    right: 50px;
    transform: translateY(-50%) translateX(100%);
}

/* Auto fade-in from right animation */
#video-end-overlay-2.auto-fade-right {
    animation: fadeInFromRight 1s ease-out forwards;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.video-end-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-end-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f39c12;
    text-align: center;
}

.video-end-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-end-features .feature-item {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 15px;
    position: relative;
}


.video-end-features .feature-item strong {
    color: #f39c12;
}

/* Responsive styles for video end overlay */
@media (max-width: 1024px) {
    .video-end-overlay {
        left: 30px;
        max-width: 450px;
    }
    
    .video-end-content {
        padding: 25px;
    }
    
    .video-end-title {
        font-size: 24px;
    }
    
    .video-end-features .feature-item {
        font-size: 15px;
    }
    
    .section-4-overlay {
        left: 30px;
        max-width: 500px;
    }
    
    .section-4-content {
        padding: 35px;
    }
    
    .section-4-title {
        font-size: 28px;
    }
}

/* Removed scroll prevention - no longer needed */

/* Mobile Accordion for Section 3 Content */
@media (max-width: 768px) {
    /* Hide the original overlays on mobile */
    .video-end-overlay,
    #video-end-overlay-2,
    .model-3d-overlay {
        display: none !important;
    }
    
    /* Ensure mobile doesn't get collapsible behavior */
    .model-3d-header {
        pointer-events: none;
    }
    
    .model-3d-collapsible {
        max-height: none !important;
        opacity: 1 !important;
    }
    
    /* Mobile accordion container */
    .mobile-section3-accordion {
        position: absolute;
        top: 90px;
        left: 20px;
        right: 20px;
        z-index: 20;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }
    
    .accordion-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .accordion-item:last-child {
        border-bottom: none;
    }
    
    .accordion-header {
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.05);
        color: #f39c12;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background 0.3s ease;
        user-select: none;
    }
    
    .accordion-header:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .accordion-header.active {
        background: rgba(243, 156, 18, 0.2);
    }
    
    .accordion-icon {
        transition: transform 0.3s ease;
        font-size: 12px; color: #fff;
    }
    
    .accordion-header.active .accordion-icon {
        transform: rotate(180deg);
    }
    
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.3);
    }
    
    .accordion-content.active {
        max-height: 400px;
    }
    
    .accordion-content-inner {
        padding: 20px;
        color: white;
    }
    
    .mobile-features {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-feature-item {
        font-size: 14px;
        line-height: 1.5;
        padding-left: 15px;
        position: relative;
    }
    
    .mobile-feature-item strong {
        color: #f39c12;
    }
    
    .mobile-3d-viewer {
        width: 100%;
        height: 250px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.6);
        margin-bottom: 15px;
    }
    
    .mobile-3d-title {
        text-align: center;
        font-size: 16px;
        font-weight: 500;
        color: white;
        margin-bottom: 15px;
    }
    
    .mobile-3d-colors {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .mobile-3d-colors .color-picker-btn {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
    }
    
    .mobile-3d-colors .color-picker-btn:hover,
    .mobile-3d-colors .color-picker-btn.active {
        border-color: #f39c12;
        transform: scale(1.1);
    }
    
    .section-4-overlay {
        left: 50%;
        right: 20px;
        max-width: none;
        transform: translateY(-50%) translateX(-50%);
        left: 50%;
    }
    
    .section-4-overlay.show {
        transform: translateY(-50%) translateX(-50%);width: 80%;
    }
    
    .section-4-content {
        padding: 25px;
    }
    
    .section-4-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
    
    .section-4-link {
        gap: 15px;
    }
    
    .section-4-arrow {
        width: 45px;
        height: 45px;
    }
    
    .section-4-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* 3D Model Overlay Styles */
.model-3d-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 15;
    opacity: 0;
    width: 43%;
    height: auto;
    min-height: 70px;
    max-height: 70vh;
    transition: all 1s ease-out;
    backdrop-filter: blur(4px);
}

.model-3d-overlay.show {
    opacity: 1;
}

.model-3d-content {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Clickable Header */
.model-3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
    user-select: none;
}

.model-3d-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
}

.model-3d-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.model-3d-arrow {
    color: #ffffff;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.model-3d-header:hover .model-3d-arrow {
    background: rgba(255, 255, 255, 0.2);
}

/* Arrow rotation when expanded */
.model-3d-content.expanded .model-3d-arrow {
    transform: rotate(180deg);
}

/* Collapsible Content */
.model-3d-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 0;
}

.model-3d-content.expanded .model-3d-collapsible {
    max-height: 800px;
    opacity: 1;
    margin-top: 15px;
}

.model-3d-viewer {
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff78;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark GUI Panel - Compact */
.model-3d-gui {
   /*  background: rgb(0 0 0 / 62%);
    border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 15px;
    padding: 12px;
}

.gui-section {
    margin-bottom: 15px;
}

.gui-section:last-child {
    margin-bottom: 0;
}

.gui-section-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    opacity: 0.9;
}

/* Color Picker Styling */
.model-3d-colors {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.color-picker-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.color-picker-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.color-picker-btn.active {
    border-color: #f39c12;
    border-width: 3px;
    box-shadow: 0 3px 12px rgba(243, 156, 18, 0.4);
    transform: scale(1.05);
}

/* Auto fade-in animation for 3D model */
.model-3d-overlay.auto-fade-3d {
    animation: fadeIn3D 1.5s ease-out 2s forwards;
}

@keyframes fadeIn3D {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(-50%) scale(1);
    }
}

/* Pulse animation for collapsed header to indicate it's clickable */
.model-3d-overlay.auto-fade-3d .model-3d-header {
    animation: pulseHeader 2s ease-in-out 3s infinite;
}

.model-3d-content.expanded .model-3d-header {
    animation: none;
}

@keyframes pulseHeader {
    0%, 100% {
        background: rgba(255, 255, 255, 0);
    }
    50% {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 10px 15px;
    }
}

/* Responsive styles for 3D model */
@media (max-width: 1024px) {
    .model-3d-overlay {
        width: 500px;
        min-height: 60px;
        max-height: 420px;
    }
    
    .model-3d-title {
        font-size: 22px;
    }
    
    .model-3d-arrow {
        width: 25px;
        height: 25px;
    }
    
    .model-3d-content.expanded .model-3d-collapsible {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .model-3d-overlay {
        width: calc(100% - 40px);
        height: 350px;
        max-width: 450px;
    }
    
    .model-3d-content {
        padding: 15px;
    }
    
    .model-3d-title {
        font-size: 20px;
        margin-top: 10px;
    }
    
    .color-picker-btn {
        width: 35px;
        height: 35px;
    }
    
    .model-3d-colors {
        gap: 10px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .model-3d-overlay {
        width: calc(100% - 20px);
        height: 300px;
    }
    
    .model-3d-content {
        padding: 12px;
    }
    
    .model-3d-title {
        font-size: 18px;
    }
}

/* Vimeo Video Section Styles */
.vimeo-video-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.video-container-featured {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-section-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-frame-container {
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto;
}

.video-responsive-wrapper {
    padding: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: auto;
    height: 440px;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-description {
    color: #666;
    margin-top: 20px;
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles for video section */
@media (max-width: 768px) {
    .video-container-featured {
        padding: 0 20px;
    }
    
    .video-section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .video-responsive-wrapper{height: 165px;}
    
    .video-frame-container {
        max-width: 90%;
        padding: 15px;
    }
    
    .video-description {
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .vimeo-video-section {
        padding: 30px 0;
    }
    
    .video-section-title {
        font-size: 1.6rem;
    }
    
    .video-frame-container {
        padding: 12px;
    }
 
}

/* Products Page Styles */
.products-page {
    background: #ffffff;
}

.products-hero {
    width: 100%;
    height: 417px;
    margin-top: 80px;
    background-color: #262424;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./img/topProduct02.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

.products-hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.hero-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 500px;
}

.products-hero-title {
    color: #262424;
    font-size: 3.5rem;
    font-weight: 300;
    margin: 0 0 0 0;
    text-align: left;
}

.hero-sketch-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}



.hero-right-section {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


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

.products-intro {
    text-align: left;
    margin-bottom: 30px;
}

.products-main-title {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.2;
}

.products-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    max-width: 800px;
    margin: 0;
}

.products-categories {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.product-category {
    width: 100%;
}

.product-header {
    margin-bottom: 15px;
}

.product-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-logo {
    height: 45px;
    width: auto;
}

.product-name {
    font-size: 2.2rem;
    color: #e6a57a;
    margin: 0;
    font-weight: 400;
}

.product-line {
    height: 3px;
    width: 100%;
    border-radius: 2px;
    margin-bottom: 20px;
}

.big-round-line {
    background: linear-gradient(90deg, #e6a57a 0%, #d49464 100%);
}

.small-round-line {
    background: linear-gradient(90deg, #87ceeb 0%, #5fb3d1 100%);
}

.small-rec-line {
    background: linear-gradient(90deg, #dda0dd 0%, #c797c7 100%);
}

.extra-small-line {
    background: linear-gradient(90deg, #98fb98 0%, #7de67d 100%);
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.product-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.product-image {
    width: auto;
    height: 246px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    object-fit: contain;
}

.product-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.product-image-placeholder::before {
    content: "Image Coming Soon";
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

.no-products-message p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Masonry Gallery Styles */
.product-masonry-gallery {
    margin-top: 50px;
    width: 100%;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 180px;
    gap: 15px;
    padding: 20px 0;
}

.masonry-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
    transform: translateY(0);
}

.masonry-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.masonry-item:nth-child(3n) {
    grid-row: span 2;
}

.masonry-item:nth-child(5n) {
    grid-row: span 2;
}

.masonry-item:nth-child(7n) {
    grid-row: span 1;
}

.masonry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.masonry-item:hover .masonry-image {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    color: white;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.masonry-item:hover .zoom-icon {
    transform: scale(1);
}

/* Add some fun animations */
.masonry-item:nth-child(even) {
    animation: floatUp 6s ease-in-out infinite;
}

.masonry-item:nth-child(odd) {
    animation: floatDown 8s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(5px); }
}

/* Pause animations on hover */
.masonry-item:hover {
    animation-play-state: paused;
}

/* Lightbox Modal Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    color: #f39c12;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    margin: 0 20px;
}

.lightbox-btn:hover {
    background: rgba(243, 156, 18, 0.8);
    transform: scale(1.1);
}

.lightbox-btn:active {
    transform: scale(0.95);
}

/* Mobile Lightbox Styles */
@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 30px;
    }
    
    .lightbox-btn {
        font-size: 24px;
        padding: 12px 16px;
        margin: 0 10px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Custom DaniPak Page Styles */
.custom-danipak-page {
    background: #ffffff;
}

/* Custom Hero Section */
.custom-hero-section {
    position: relative;
    width: 100%;
    height: 416px;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 67.5vw; /* 16:9 aspect ratio scaled up */
    min-height: 120%;
    min-width: 213.33vh; /* 16:9 aspect ratio scaled up */
    transform: translate(-50%, -50%);
    border: none;
    object-fit: cover;
}

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

/* Main Title Section Below Video */
.main-title-section {
    background: #ffffff;
    padding: 16px 0 0;
    text-align: center;
}

.title-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.main-title .create-text {
    color: #2c3e50;
    font-weight: 300;
    display: block;
}

.main-title .custom-text {
    color: #f39c12;
    font-weight: 400;
    display: block;
}

/* Old hero content styles removed - title now below video */

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

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: #f39c12;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: #f39c12;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInStep 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

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

.step-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.step-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.3;
}

.step-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Form Styling */
.details-form, .order-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
}

.form-note {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Form Validation Styles */
.form-validation-message {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 20px;
}

.form-validation-message.error {
    color: #e74c3c;
}

.form-validation-message.success {
    color: #27ae60;
}

.form-group input.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.form-group input.valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.form-group input:focus.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.form-group input:focus.valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Configuration Layout */
.config-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
    background: linear-gradient(135deg, #f0f2f5 0%, #dae0e6 100%);
    padding: 10px;
    border-radius: 24px;
}

.config-selections {
    display: flex;
    flex-direction: column;
    gap: 0px;
    position: relative;
    padding: 0px;
    border-radius: 20px;
}


.config-viewer-section {
    position: sticky;
    top: 20px;
    padding: 30px;
    background:#fff;
    border-radius: 20px;
}

.config-viewer-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 15px;
}

.config-viewer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

.config-3d-viewer {
    background: #ffffff;
    border-radius: 16px;
    height: 575px;
    width: 100%;
    aspect-ratio: 1 / 1; /* Ensures square shape */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}



.config-section {
    margin-bottom: 15px;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.config-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}


.config-section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 15px;
}

.config-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.model-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}


.model-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 0px 17px rgba(0, 0, 0, 0.15);
}

.model-option:hover::before {
    opacity: 1;
}

.model-option.active {
    box-shadow: 0 0px 17px rgba(0, 0, 0, 0.15);
}

.model-option.active::before {
    opacity: 1;
}

.model-icon {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.model-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Material Selector */
.material-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.material-option {
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333333;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.material-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.1), transparent);
    transition: left 0.3s ease;
}

.material-option:hover {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.15);
}

.material-option:hover::before {
    left: 100%;
}

.material-option.active {
    border-color: #f39c12;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.material-label {
    font-weight: 600;
    font-size: 14px;
}

.material-description {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.2;
}

.material-option.active .material-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Color Picker Styles */
.color-picker-container {
    display: flex;
    flex-direction: column; 
    gap: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.color-input {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 50%;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.color-input:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.color-help-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.help-instruction {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2; text-align: left;
}

.help-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    font-style: italic;text-align: left;
}

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preset-colors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preset-label {
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px; text-align: left;
}

.preset-color-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.preset-color::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.preset-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.preset-color:hover::before {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Legacy color selector fallback - keeping for potential revert */
.color-selector {
    display: none; /* Hidden by default, replaced by color picker */
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: #f39c12;
    transform: scale(1.1);
}

/* Special styling for light colors */
.color-option[data-color="#d4b896"],
.color-option[data-color="#d4d48b"] {
    border: 3px solid #ddd;
}

.color-option.active[data-color="#d4b896"],
.color-option.active[data-color="#d4d48b"] {
    border-color: #f39c12;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.order-summary h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-label {
    font-weight: 600;
    color: #333;
}

.summary-value {
    color: #f39c12;
    font-weight: 600;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-continue, .btn-submit {
    background: #f39c12;
    color: white;
}

.btn-continue:hover, .btn-submit:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Video aspect ratio adjustments for different screen sizes */
@media (max-aspect-ratio: 16/9) {
    .hero-video-iframe {
        height: 120vh;
        width: 213.33vh;
    }
}

@media (min-aspect-ratio: 16/9) {
    .hero-video-iframe {
        width: 120vw;
        height: 67.5vw;
    }
}

/* Special handling for common resolutions like 1440x900 */
@media (min-aspect-ratio: 1.5/1) and (max-aspect-ratio: 1.7/1) {
    .hero-video-iframe {
        width: 130vw;
        height: 73.125vw;
        min-height: 130%;
        min-width: 231.11vh;
    }
}

/* Responsive Design for Custom DaniPak Page */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3rem;
    }
    
    .main-title-section {
        padding: 50px 0;
    }
    
    .config-layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .config-selections {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .config-selections::after {
        display: none;
    }
    
    .config-viewer-section {
        position: static;
        order: -1; /* Show 3D viewer first on mobile */
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .config-3d-viewer {
        height: auto; /* Let aspect-ratio control height */
        max-height: 400px;
    }
    
    .config-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .step-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .custom-hero-section {
        height: 300px;
        margin-top: 0;
    }
    .config-layout-container {
        display: flex;
        flex-direction: column;
        gap: 0px;
        padding: 8px;
    }
    .config-selections {
        padding: 0;
        order: 1;
    }
    .config-viewer-section {
        order: 2; width: 100%;
    }

    h1.page-title{    font-size: 2.5rem;    margin: 52px 0 25px;line-height: 46px;}
    body:not(.home):not(.front-page) #primary {
        margin-top: 40px;
    }
    
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-title-section {
        padding: 16px 0 0;
    }
    
    /* Ensure video still fills space on mobile */
    .hero-video-iframe {
        width: 150vw;
        height: 84.375vw; /* 16:9 ratio scaled up */
        min-height: 150%;
        min-width: 266.67vh;
    }
    
    .custom-form-container {
        padding: 0;
    }
    
    .step-progress {
        margin-bottom: 40px;
    }
    
    .step-progress::before {
        left: 20%;
        right: 20%;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .config-3d-viewer {
        height: auto; /* Let aspect-ratio control height */
        max-height: 300px;
    }
    
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .model-option {
        padding: 12px 8px;
    }
  
    
    .material-selector, .color-picker-container {
        justify-content: center;
    }
    
    .color-picker-wrapper {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .color-help-text {
        align-items: center;
    }
    
    .help-instruction {
        font-size: 13px;
    }
    
    .help-description {
        font-size: 11px;
    }
    
    .color-input {
        width: 50px;
        height: 50px;
    }
    
    .color-preview {
        width: 40px;
        height: 40px;
    }
    
    .preset-color-grid {
        gap: 8px;
        justify-content: center;
    }
    
    .preset-color {
        width: 32px;
        height: 32px;
    }
    
    .step-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .main-title-section {
        padding: 30px 0;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
    }
    
    .config-3d-viewer {
        height: 250px;
    }
}

/* Responsive Design for Products Page */
@media (max-width: 1024px) {
    .products-container {
        padding: 40px 30px;
    }
    
    .products-main-title {
        font-size: 3rem;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .product-images {
        gap: 20px;
    }
    
    .products-categories {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: 216px;
        margin-top: 0px;background-size: cover;
    }
   
    .products-hero-content {
        padding: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .hero-left-section {
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .products-hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-sketch-container {
        display: none;
    }
    
    .hero-sketch-image {
        display: none;
    }
    
    .hero-right-section {
        display: none;
    }
    
    .products-container {
        padding: 30px 0px;
    }
    
    .products-intro {
        padding: 0;
    }
    
    .products-main-title {
        font-size: 2.5rem;
    }
    
    .products-description {
        font-size: 1rem;
    }
    
    .product-category {
        padding: 0;
    }
    
    .product-title-wrapper {
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .product-logo {
        height: 35px;
    }
    
    .product-name {
        font-size: 1.8rem;
    }
    
    .product-images {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 0 20px;
    }
    
    .products-categories {
        gap: 50px;
    }
    
    .product-image {
        width: 100%;
        height: 200px;
    }
    
    .product-image-placeholder {
        height: 180px;
    }
    
    /* Mobile Masonry Gallery */
    .product-masonry-gallery {
        margin-top: 30px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 0 15px;
    }
    
    .gallery-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 10px;
        padding: 15px 0;
    }
    
    .masonry-item:nth-child(3n),
    .masonry-item:nth-child(5n) {
        grid-row: span 1;
    }
    
    .masonry-item:nth-child(4n) {
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .products-container {
        padding: 0;
    }
    
    .products-main-title {
        font-size: 2rem;
    }
    
    .product-title-wrapper {
        gap: 12px;
    }
    
    .product-logo {
        height: 30px;
    }
    
    .product-name {
        font-size: 1.3rem;
    }
    
    .product-images {
        max-width: 300px;
    }
    
    .product-image {
        padding: 12px;
    }
    
    .product-image-placeholder {
        height: 150px;
        font-size: 12px;
    }
    
    /* Masonry Gallery for Small Mobile */
    .masonry-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 120px;
        gap: 8px;
    }
    
    .gallery-title {
        font-size: 1.3rem;
    }
}

/* Read More Links */
.read-more-link {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s ease;
    font-size: 12px;
}

.read-more-link:hover {
    color: #e67e22;
    text-decoration: underline;
}

.material-option.active .read-more-link {
    color: rgba(255, 255, 255, 0.9);
}

.material-option.active .read-more-link:hover {
    color: white;
}

/* Material Information Modal */
.material-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.material-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.material-modal-header {
    padding: 25px 30px 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 15px 15px 0 0;
}

.material-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.material-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    border: none;
    background: none;
}

.material-modal-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.material-modal-body {
    padding: 30px;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.material-modal-body strong {
    color: #f39c12;
    font-weight: 600;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .material-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .material-modal-header {
        padding: 20px 20px 12px;
    }
    
    .material-modal-header h3 {
        font-size: 18px;
    }
    
    .material-modal-body {
        padding: 20px;
        font-size: 14px;
    }
    
    .material-modal-close {
        font-size: 24px;
    }
} 