/*
 * DERMA TOUCH Ε.Π.Ε. - Shared Styles
 * Medical Aesthetics Website
 * https://dermatouch.gr
 */

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Prevent images from causing horizontal overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent videos, iframes, and other embedded content from causing overflow */
video, iframe, embed, object {
    max-width: 100%;
}

/* Prevent tables from causing horizontal overflow */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

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

/* ============ HEADER ============ */
header {
    background: transparent;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

header.scrolled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* ============ NAVIGATION ============ */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    position: relative;
    padding-bottom: 4px;
}

nav a:hover {
    opacity: 0.8;
}

nav a.active {
    color: white;
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* ============ DROPDOWN MENU ============ */
.dropdown {
    position: relative;
}

.dropdown > .dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.dropdown > .dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.7;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px 0;
    z-index: 1002;
    list-style: none;
    margin: 0;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block !important;
    }

    .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.dropdown:focus-within .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: white !important;
    text-decoration: none;
    transition: background 0.3s, padding-left 0.3s;
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 25px;
}

/* ============ MOBILE MENU ============ */
.menu-toggle {
    display: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    background: white;
    color: #4455bb;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ============ CARDS ============ */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 20px 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============ RELATED PRODUCTS ============ */
.related-products {
    padding: 100px 0;
    background: #f8f9fa;
}

.related-products .container {
    max-width: 1700px; /* Increased for wider cards */
}

.related-products h2 {
    text-align: center;
    color: #4455bb;
    font-size: 36px;
    margin-bottom: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px; /* Taller for more prominence */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 30px;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.45), rgba(118, 75, 162, 0.55));
    z-index: 1;
    transition: opacity 0.3s;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.related-card:hover::before {
    opacity: 0.8;
}

.related-card > * {
    position: relative;
    z-index: 2;
}

.related-card h4 {
    color: white !important;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.related-card a {
    display: inline-block;
    padding: 10px 30px;
    background: white;
    color: #667eea !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.related-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .related-card {
        min-height: 350px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: #4455bb;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section p strong {
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-links li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4455bb;
    transition: transform 0.3s;
}

.footer-links li:hover::before {
    transform: translateX(5px);
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #4455bb;
}

/* Footer logo */
.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4455bb;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #4455bb;
    background: rgba(255,255,255,0.1);
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding: 30px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom .tagline {
    color: #4455bb;
    font-style: italic;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-bottom .copyright {
    font-size: 13px;
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: toastSlideIn 0.3s ease-out;
}

.toast--success {
    border-left: 4px solid #16a34a;
}

.toast--error {
    border-left: 4px solid #dc2626;
}

.toast--info {
    border-left: 4px solid #667eea;
}

.toast__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast__content {
    flex: 1;
}

.toast__message {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.toast__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.2s;
}

.toast__close:hover {
    color: #333;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.toast--hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4)),
                url('images/index-hero.webp') center/cover no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Products Hero (for inline products section) */
.products-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    width: 100%;
}

.products-hero .hero-content {
    max-width: 100%;
}

.products-hero .hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.products-hero .hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ============ SECTION HEADINGS ============ */
.section-title {
    text-align: center;
    font-size: 36px;
    color: #4455bb;
    margin-bottom: 60px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
        right: 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .logo img {
        height: 35px;
    }

    /* Ensure header is visible on mobile */
    header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }

    .mobile-menu-close {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .toast-container {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .section-title {
        font-size: 28px;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 10px;
        margin-top: 10px;
        margin-left: 0;
        padding: 10px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
        padding: 10px 0;
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }

    .dropdown.active > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Prevent hover on mobile from opening dropdown */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active:hover .dropdown-menu {
        display: block;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}




/* Product Page Hero Slider */
.product-slider {
    width: 100%;
    height: 100vh;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.product-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.product-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.product-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slider Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dots .dot.active {
    background: white;
    border-color: #4455bb;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .product-slider {
        height: 400px;
        min-height: 400px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* ============ PRODUCT DETAIL PAGE ============ */
.product-section {
    padding: 80px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumbnail {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #4455bb;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info h2 {
    color: #4455bb;
    font-size: 36px;
    margin-bottom: 20px;
}

.product-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

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

.product-description h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.product-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    margin: 30px 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.features-list li:before {
    content: "✓";
    color: #4455bb;
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
}

.specs-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.specs-table td:last-child {
    color: #666;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Products Hero Overlay (Index page) */
.products-hero {
    position: relative;
}

.products-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
}

/* ============ HOME PAGE SPECIFIC ============ */
.about-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.about-section h2 {
    text-align: center;
    font-size: 36px;
    color: #4455bb;
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.products-section {
    padding: 0;
}

.products-section h2 {
    text-align: center;
    font-size: 36px;
    color: #4455bb;
    margin-bottom: 60px;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.product-card {
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.6));
    z-index: 0;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card h3 {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.product-card ul {
    list-style: none;
    text-align: left;
}

.product-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.product-card li:last-child {
    border-bottom: none;
}

.product-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: white;
    color: #4455bb;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
    color: #764ba2;
}

.product-card.card-face {
    background-image: url('images/Opera-I-Soft.jpg');
}

.product-card.card-body {
    background-image: url('images/Opera-V-Body.jpg');
}

.product-card.card-skin {
    background-image: url('images/Opera-REV-L.a.jpg');
}

.product-card.card-meso {
    background-image: url('images/Opera-REV-DIVA.jpg');
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.4));
}

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* ============ CONTACT PAGE ============ */
.contact-section {
    padding: 80px 20px;
}

.contact-section h2 {
    text-align: center;
    font-size: 36px;
    color: #4455bb;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
}

.contact-info h3 {
    color: #4455bb;
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-details p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4455bb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.map-section {
    padding: 0 20px 60px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* ============ ABOUT PAGE ============ */
.content-section {
    padding: 80px 20px;
}

.content-section h2 {
    color: #4455bb;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: left;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

/* Custom 2-column values grid for Vision & Ethics sections */
.values-grid--custom {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    margin-top: 0;
}

.value-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-card h3 {
    color: #4455bb;
    font-size: 22px;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

.timeline-section {
    margin-top: 80px;
    background: #f8f9fa;
    padding: 60px 20px;
}

.timeline-section h2 {
    text-align: center;
    color: #4455bb;
    font-size: 32px;
    margin-bottom: 50px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #667eea;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 300px;
}

.timeline-content h4 {
    color: #4455bb;
    margin-bottom: 10px;
}

.timeline-year {
    position: absolute;
    right: -60px;
    top: 0;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-year {
    right: auto;
    left: -60px;
}

.timeline-dot {
    position: absolute;
    right: -8px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #764ba2;
    border-radius: 50%;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -8px;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero {
        min-height: 60vh;
        padding: 80px 20px 60px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Products hero mobile adjustments */
    .products-hero {
        min-height: 60vh;
        padding: 80px 20px 60px;
    }

    .products-hero .hero-content h1 {
        font-size: 32px;
    }

    .products-hero .hero-content p {
        font-size: 16px;
    }

    .contact-grid, .about-grid, .values-grid, .values-grid--custom {
        grid-template-columns: 1fr;
    }

    /* Ensure value cards are readable on mobile */
    .values-grid--custom {
        gap: 20px;
    }

    .value-card {
        text-align: left;
        padding: 25px 20px;
    }

    .value-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .value-card p {
        font-size: 14px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
    }
    
    .timeline-year {
        left: 60px;
        top: -30px;
        right: auto;
    }
    
    .timeline-dot {
        left: 23px;
        right: auto;
    }
}


/* Eyecandy Products UI */
.products-section {
    position: relative;
    background: #ffffff;
    color: #333;
    overflow: hidden;
}

.products-video-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.products-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2;
}

.products-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.glow-text {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(45deg, #fff, #b8a3ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(184, 163, 255, 0.4);
    margin-bottom: 20px;
}

.eyecandy-container {
    padding: 60px 20px;
    position: relative;
    z-index: 5;
    background: #ffffff;
}

.category-section {
    margin-bottom: 80px;
}

.cat-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    font-weight: 300;
}

.cat-label {
    font-weight: 700;
    color: #764ba2;
}

.ec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ec-card {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ec-card:hover {
    transform: translateY(-10px);
    border-color: rgba(118, 75, 162, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 20px rgba(118, 75, 162, 0.1);
}

.ec-img-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 20px;
}

.ec-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ec-card:hover .ec-img-box img {
    transform: scale(1.1);
}

.ec-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.ec-btn {
    padding: 12px 25px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ec-card:hover .ec-btn {
    transform: translateY(0);
}

.ec-btn:hover {
    background: #764ba2;
    color: #fff;
    box-shadow: 0 5px 15px rgba(118,75,162,0.4);
}

.ec-info h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .glow-text {
        font-size: 2.5rem;
    }
    .products-video-wrap {
        height: 100vh;
    }
}



