/* Responsive Typography System */
:root {
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
    --font-size-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --font-size-5xl: clamp(2.5rem, 2.1rem + 2vw, 3.5rem);
    --font-size-6xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
}

body {
    margin: 0;
    font-family: 'Instrument Sans', Arial, sans-serif;
    background: #181818;
    color: #fff;
    overflow-x: hidden;
    font-size: var(--font-size-base);
    line-height: 1.6;
}
.header {
    background: #181818;
    padding: 24px 0 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-title {
    color: #fff;
    font-size: var(--font-size-xl);
    letter-spacing: 0.2em;
    font-weight: 400;
}

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: clamp(420px, 50vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 50px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    padding-top: 60px;
    font-size: var(--font-size-5xl);
    font-weight: 440;
    margin-bottom: 31px;
    letter-spacing: 0.16em;
}

.subtitle {
    font-size: var(--font-size-lg);
    color: #e0e0e0;
    margin-bottom: 36px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}
.contact-btn {
    display: inline-block;
    background: #1d84c9;
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.25);
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em; /* Button letter spacing */
}

.contact-btn:hover {
    background: #156ca0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.accessory-section {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    color: #1d84c9;
    font-size: 30px;
    letter-spacing: 2px;
    margin-bottom: 18px;
    font-weight: 500;
    text-align: left;
    padding-left: 110px; /* Slightly more gap from the left */;
}

.section-desc {
    font-size: 17px;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: left;
    padding-left: 110px;
    padding-right: 110px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding-left: 110px; /* Add padding around the scroll area */
    margin-bottom: 32px;
    padding-bottom: 18px; /* Extra space below cards */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #1d84c9 #232323; /* Thumb and track color for Firefox */
    border-radius: 16px;
    background: rgba(40,40,40,0.12); /* Soft background for scroll area */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
    background: transparent;
    border-radius: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #1d84c9;
    border-radius: 8px;
    border: 2px solid #232323;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #232323;
    border-radius: 8px;
    margin: 8px 0;
}

/* Add a little space between the scroll area and the cards */
.product-card {
    margin-bottom: 8px;
    margin-top: 8px;

    position: relative;
    min-width: 200px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    flex-shrink: 0;
    transition: transform 0.18s, box-shadow 0.18s;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 45px rgba(0,0,0,0.22);
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,0.92) 60%,
        rgba(0,0,0,0.7) 75%,
        rgba(0,0,0,0.4) 88%,
        rgba(0,0,0,0.0) 100%
    );
    transition: height 0.5s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover .card-overlay {
    height: 100%;
}

.card-title {
    position: absolute;
    bottom: 12px;
    left: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
    z-index: 2;
    text-align: left;
}

.card-size {
    display: none;
    font-size: 13px;
    color: #1d84c9;
    margin-top: 10px;
}

.product-card:hover .card-size {
    display: block;
}


.contact-section {
    background: #111;
    padding: 56px 0 56px 0;
    text-align: center;
}

.contact-section h2 {
    color: #1d84c9;
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 48px;
    font-weight: 500;
}

.contact-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-card {
    background: #232323;
    border-radius: 16px;
    width: 230px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    padding: 32px 18px;
    color: #fff;
    font-size: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    transform: translateY(-6px) scale(1.03);
}

.contact-card i {
    font-size: 32px;
    color: #fff;
    margin-bottom: 50px;
}

.contact-info {
    color: #fff;
    font-family: 'Instrument Sans', Arial, sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    word-break: break-all;
}

@media (max-width: 900px) {
    .contact-row {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    .contact-card {
        width: 90vw;
        max-width: 340px;
    }
}


.popup {
    display: none;
    position: fixed; /* Ensure the popup is fixed in the center */
    z-index: 1000;
    left: 0; /* Start from the left edge */
    top: 0; /* Start from the top edge */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.8); /* Black overlay */
    overflow:visible; /* Prevent scrolling */
}

.popup-content {
    background-color: #333;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #3265b3; /* Stroke color */
    width: 80%;
    max-width: 600px;
    color: #fbfbfa;
    border-radius: 8px;
    text-align: left;
    font-size: 20px;
    position: relative; /* Add this to make the close button positioned relative to this container */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Add a subtle shadow */
    overflow: visible; /* Ensure the content is visible */
    
}

.popup-content img {
    display: block; /* Ensures the image is treated as a block element */
    margin: 0 auto; /* Centers the image horizontally */
    border-radius: 12px; /* Adds curved edges to the image */
    width: 100%; /* Adjust width as needed */
    max-width: 350px; /* Ensures the image doesn't exceed a certain width */
    max-height: 300px;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel img {
    width: 450px; /* Set the width to 450px */
    height: 355px; /* Set the height to 355px */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 8px;
}

.popup-content p:last-child {
    font-size: 24px; /* Increase font size for the Size text */
    color: #1d84c9;
    font-weight: bolder;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}


/*header*/
.beautiful-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    background: #181818;
    padding: 0 32px;
    height: 72px;
    position: fixed;      /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;          /* Ensure full width */
    z-index: 1000;
    
}
.header-left {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.header-title {
    margin: 0 auto;
    color: #fff;
    font-size: 1.7em;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-align: center;
    flex: none;
}

.header-feature-link:hover {
    color: #fff;
}
.quick-links,
.contact-letter {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 36px auto 24px auto;
    max-width: 1000px;
    padding-left: 70px;
    padding-right: 70px;
    padding-bottom: 20px;
    font-family: 'Instrument Sans', Arial, sans-serif;
    text-align: center;
    margin-top: 40px;
    
}

.contact-letter-inner {
    text-align: left;
}

.contact-letter-inner h2 {
    color: #fcf9f4;
    margin-bottom: 12px;
    font-size: 1.3em;
    letter-spacing: 1px;
}

.quick-links-group {
    margin: 10px 0;
    font-size: 0.9em;
    
}

.quick-links-group strong {
    color: #f9f8f7;
    margin-right: 8px;
    letter-spacing: 0.06em;
}

.quick-links-group a,
.contact-details a {
    color: #1d84c9;
    text-decoration: none;
    margin: 0 3px;
    transition: color 0.2s;
    font-weight: 500;
}

.quick-links-group a:hover,
.contact-details a:hover {
    color: #156ca0;
    text-decoration: underline;
}

.contact-letter-inner p {
    color: #f8f6f6;
    margin: 8px 0;
    font-size: 1.07em;
}

.contact-details {
    margin: 18px 0 12px 0;
    font-size: 0.9em;
}

.contact-details div {
    margin-bottom: 6px;
}

.contact-details a {
    color: #1d84c9;
    text-decoration: none;
    margin: 0 3px;
    transition: color 0.2s;
    font-weight: 500;
}

.contact-details a:hover {
    color: #156ca0;
    text-decoration: underline;
}

.contact-letter-inner p:last-child {
    margin-top: 18px;
}

.contact-letter-inner span {
    color: #1d84c9;
    font-weight: bold;
}
.home-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    margin-left: 8px;
    height: 45px;
    width: 45px;
    text-decoration: none;
}
.home-icon-link i {
    color: #fff;
    font-size: 1.3em;
    transition: color 0.2s;
}
.home-icon-link:hover i {
    color: #1d84c9;
}

/* Enhanced Responsive Design for Services Pages */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: var(--font-size-6xl);
    }
    
    .subtitle {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-5xl);
    }
    
    .contact-section h2 {
        font-size: var(--font-size-4xl);
    }
}

/* Medium screens (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-content h1 {
        font-size: var(--font-size-4xl);
    }
    
    .subtitle {
        font-size: var(--font-size-lg);
    }
    
    .horizontal-scroll {
        gap: 20px;
    }
    
    .product-card {
        min-width: 250px;
        height: 320px;
    }
}

/* Small screens (480px - 767px) */
@media (max-width: 767px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
        padding-top: 40px;
    }
    
    .subtitle {
        font-size: var(--font-size-base);
        margin-bottom: 24px;
    }
    
    .contact-btn {
        font-size: var(--font-size-sm);
        padding: 12px 24px;
    }
    
    .beautiful-header {
        padding: 0 16px;
        height: 60px;
    }
    
    .header-left {
        left: 16px;
    }
    
    .header-title {
        font-size: var(--font-size-lg);
        letter-spacing: 0.2em;
    }
    
    .home-icon-link {
        height: 40px;
        width: 40px;
        margin-left: 4px;
    }
    
    .home-icon-link i {
        font-size: 1.2em;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
    }
    
    .section-desc {
        font-size: var(--font-size-base);
        padding: 0 20px;
    }
    
    .horizontal-scroll {
        gap: 15px;
        padding: 0 10px;
    }
    
    .product-card {
        min-width: 200px;
        height: 280px;
    }
    
    .card-title {
        font-size: var(--font-size-base);
        bottom: 8px;
        left: 12px;
    }
    
    .contact-row {
        gap: 20px;
    }
    
    .contact-card {
        width: 90vw;
        max-width: 280px;
        min-height: 150px;
        padding: 24px 15px;
    }
    
    .contact-info {
        font-size: var(--font-size-base);
    }
    
    .popup-content {
        width: 90%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .popup-content img {
        max-width: 280px;
    }
    
    .carousel img {
        width: 90vw;
        max-width: 350px;
        height: auto;
    }
}

/* Extra small screens (below 480px) */
@media (max-width: 479px) {
    .hero-content h1 {
        font-size: var(--font-size-2xl);
        padding-top: 30px;
    }
    
    .subtitle {
        font-size: var(--font-size-sm);
        line-height: 1.6;
    }
    
    .beautiful-header {
        padding: 0 12px;
        height: 56px;
    }
    
    .header-left {
        left: 12px;
    }
    
    .header-title {
        font-size: var(--font-size-base);
        letter-spacing: 0.1em;
    }
    
    .home-icon-link {
        height: 36px;
        width: 36px;
    }
    
    .home-icon-link i {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        padding-left: 16px;
        padding-right: 16px;
        text-align: left;
    }
    
    .horizontal-scroll {
        gap: 10px;
        padding: 0 5px;
    }
    
    .product-card {
        min-width: 160px;
        height: 240px;
    }
    
    .card-title {
        font-size: var(--font-size-sm);
        bottom: 6px;
        left: 10px;
    }
    
    .contact-card {
        width: 95vw;
        min-height: 130px;
        padding: 20px 12px;
    }
    
    .quick-links,
    .contact-letter {
        width: 95%;
        padding: 0 10px;
    }
}

/* Ultra-wide screens (1920px and up) */
@media (min-width: 1920px) {
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-6xl);
    }
    
    .subtitle {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-5xl);
    }
    
    .product-card {
        min-width: 320px;
        height: 380px;
    }
    
    .card-title {
        font-size: var(--font-size-lg);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .home-icon-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Smooth transitions for responsive changes */
body, h1, h2, h3, h4, h5, h6, p, span, div, a, li {
    transition: font-size 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.contact-form {
    background: linear-gradient(135deg, #19191a 0%, #19191a 50%, #19191a 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(41, 34, 25, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(29, 132, 201, 0.4);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 16px;
    font-family: 'Instrument Sans', Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d84c9;
    box-shadow: 0 0 0 2px rgba(29, 132, 201, 0.3);
}

.submit-btn {
    background: linear-gradient(45deg, #1d84c9, #2b93cf);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(29, 132, 201, 0.5);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #156ca0, #1d84c9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 132, 201, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Floating Quote Button */
.floating-quote-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #1d84c9, #2b93cf);
    color: #000;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(27, 20, 10, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(29, 132, 201, 0.3);
}

.floating-quote-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    background: linear-gradient(45deg, #156ca0, #1d84c9);
}

.floating-quote-btn i {
    font-size: 36px;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .floating-quote-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-quote-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .floating-quote-btn span {
        display: none;
    }
    
    .floating-quote-btn i {
        font-size: 40px;
    }
}
