/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-top: env(safe-area-inset-top);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 180px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 160px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0392b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.9) 0%, rgba(212, 175, 55, 0.8) 100%);
    color: white;
    padding: 200px 0 80px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #d4af37;
    color: #c0392b;
    font-weight: 600;
    border: 2px solid #d4af37;
}

.btn-primary:hover {
    background: transparent;
    color: #d4af37;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #c0392b;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    opacity: 0.3;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: transparent;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('world-map-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.28;
    z-index: 0;
    pointer-events: none;
}

.about > .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 15px;
    margin: 0 1rem;
}

.about-text h3 {
    font-size: 2rem;
    color: #c0392b;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat p {
    color: #7f8c8d;
    font-weight: 500;
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: #d4af37;
    opacity: 0.4;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c0392b, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.service-card-media {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #eee;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-media img {
    transform: scale(1.05);
}

.applications-grid .service-card {
    padding: 1.25rem 1.25rem 2rem;
    text-align: left;
    cursor: zoom-in;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #c0392b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.95);
    position: relative;
}


.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c0392b, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
}

.contact-details h4 {
    color: #c0392b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: #7f8c8d;
    line-height: 1.6;
}

.contact-details a {
    color: #c0392b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 160px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom a {
    color: #d4af37;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.legal-content {
    max-width: 860px;
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content .legal-updated {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.legal-content h2 {
    color: #c0392b;
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
    color: #555;
    line-height: 1.7;
}

.legal-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.legal-content .product-cta {
    margin-top: 2.5rem;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-container {
        height: 88px;
    }

    .logo {
        height: 64px;
        width: auto;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: calc(88px + env(safe-area-inset-top));
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1.25rem 0 calc(2rem + env(safe-area-inset-bottom));
        z-index: 1000;
        max-height: calc(100vh - 88px - env(safe-area-inset-top));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #d4af37;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .hero-graphic {
        font-size: 4rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat h4 {
        font-size: 2rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
        margin: 0 10px;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
        margin: 0 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h4 {
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
        height: 88px;
    }

    .logo {
        height: 64px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .nav-menu {
        top: calc(88px + env(safe-area-inset-top));
        max-height: calc(100vh - 88px - env(safe-area-inset-top));
        max-height: calc(100dvh - 88px - env(safe-area-inset-top));
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 5px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat h4 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-icon {
        align-self: center;
    }

    .footer-logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-logo-img {
        height: 56px;
    }

    .form-status {
        margin-top: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Touch feedback for mobile */
.touch-active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease;
}

/* Loading states */
body.loading {
    overflow: hidden;
}

body.loaded .fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve text readability */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Better focus states for accessibility */
    .btn:focus,
    .nav-link:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid #c0392b;
        outline-offset: 2px;
    }

    /* Improve button spacing */
    .hero-buttons {
        gap: 1.5rem;
    }

    /* Better service card spacing */
    .services-grid {
        padding: 0 10px;
    }

    /* Improve contact form layout */
    .contact-content {
        padding: 0 10px;
    }

    /* Better footer layout */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        padding: 0 15px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .service-card {
        touch-action: manipulation;
    }

    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent text selection on UI elements */
    .btn, .nav-link, .hamburger {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Improve form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .form-group select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 40px;
    }

    /* Smooth scrolling for mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Improve button hover states for touch */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link i {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i,
.nav-dropdown.open .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background: #fdf6e3;
    color: #c0392b;
}

.dropdown-label {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d4af37;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

/* Main Products Grid */
.main-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.main-product-card {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: zoom-in;
}

.main-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}

.main-product-card.featured {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
}

.main-product-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #1a1a1a;
}

.main-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.main-product-card:hover .main-product-media img {
    transform: scale(1.04);
}

.main-product-body {
    padding: 2rem 2.5rem 2.5rem;
}

.main-product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c0392b, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.main-product-card h3 {
    font-size: 1.75rem;
    color: #c0392b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.main-product-card p {
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-link {
    color: #d4af37;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.product-link:hover {
    color: #c0392b;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.applications-header {
    margin-bottom: 2rem;
}

.applications-title {
    font-size: 1.75rem;
    color: #c0392b;
    margin-bottom: 0.5rem;
}

.applications-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Product Page Styles */
.product-page {
    padding-top: 180px;
}

.product-hero {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.92) 0%, rgba(212, 175, 55, 0.85) 100%);
    color: white;
    padding: 4rem 0;
}

.product-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.7;
}

.product-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.7;
}

.product-hero-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-top: 2rem;
}

.product-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.product-hero-media {
    margin-top: 0;
}

.product-hero-media img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.product-showcase {
    margin-bottom: 3rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-showcase img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fa;
}

.product-showcase-caption {
    margin-top: 1rem;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.product-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.product-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-card i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #c0392b;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.scenario-card-image {
    height: 180px;
    background: linear-gradient(135deg, #c0392b, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.scenario-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.scenario-card:hover .scenario-card-image img {
    transform: scale(1.05);
}

.scenario-card-body {
    padding: 1.5rem;
}

.scenario-card-body h3 {
    color: #c0392b;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.scenario-card-body p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-cta {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-cta h3 {
    color: #c0392b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-cta p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .main-products-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin: 0.5rem 1rem 0;
        display: none;
        min-width: auto;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .product-page {
        padding-top: 100px;
    }

    .product-hero h1 {
        font-size: 2rem;
    }

    .product-hero p {
        font-size: 1rem;
    }

    .product-hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-width: 100%;
    }

    .main-product-media,
    .service-card-media,
    .scenario-card-image {
        height: 160px;
    }
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.88);
    cursor: pointer;
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1400px, 96vw);
    max-height: calc(100vh - 1.5rem);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox-dialog {
    transform: translateY(0) scale(1);
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #c0392b;
}

.lightbox-image-wrap {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 9rem);
    overflow: auto;
}

.lightbox-image-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 9rem);
    object-fit: contain;
}

.lightbox-caption {
    padding: 1.1rem 1.75rem 1.35rem;
    flex-shrink: 0;
}

.lightbox-caption h3 {
    color: #c0392b;
    font-size: 1.5rem;
    margin-bottom: 0.45rem;
}

.lightbox-caption p {
    color: #555;
    line-height: 1.65;
    font-size: 1.05rem;
}

[data-lightbox],
[data-lightbox-img] {
    cursor: zoom-in;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 0.5rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .lightbox-caption {
        padding: 1rem 1.1rem 1.25rem;
    }

    .lightbox-caption h3 {
        font-size: 1.15rem;
    }

    .hero {
        padding: 120px 0 48px;
        min-height: auto;
    }

    .product-page {
        padding-top: calc(88px + env(safe-area-inset-top));
    }

    .btn,
    .product-link,
    .footer-section ul li a,
    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link {
        width: calc(100% - 2rem);
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .contact-form,
    .legal-content {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 76px;
    }

    .logo {
        height: 52px;
    }

    .logo-text {
        font-size: 1rem;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-menu {
        top: calc(76px + env(safe-area-inset-top));
        max-height: calc(100vh - 76px - env(safe-area-inset-top));
    }

    .hero {
        padding: 100px 0 40px;
    }

    .product-page {
        padding-top: calc(76px + env(safe-area-inset-top));
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Prefer reduced motion for accessibility / in-app browsers */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.hero-photo,
.main-product-media img,
.service-card-media img,
.scenario-card-image img,
.product-hero-media img,
.product-showcase img {
    -webkit-user-drag: none;
}
