/* 
========================================
   PLIXARALOGIC LUXURY WATCH BRAND CSS
   FRENCH AESTHETIC | GLASSMORPHISM
========================================
*/

:root {
    /* Colors */
    --midnight-black: #0a0a0a;
    --deep-navy: #1a1a1a;
    --luxury-red: #cc0000;
    --bright-red: #ff3333;
    --ivory-white: #f8f5f2;
    --royal-burgundy: #4a0404;
    --text-muted: #a1a1aa;

    /* Glass Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);

    /* Gradients */
    --red-glow: linear-gradient(135deg, var(--luxury-red), var(--bright-red));
    --royal-depth: linear-gradient(135deg, #1a1a1a, #4a0404);
    --dark-grad: linear-gradient(180deg, var(--midnight-black) 0%, var(--deep-navy) 100%);

    /* Dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.4s;
}

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

body {
    background-color: var(--midnight-black);
    background-image: radial-gradient(circle at top right, rgba(26, 26, 26, 0.8), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(74, 4, 4, 0.15), transparent 40%);
    background-attachment: fixed;
    color: var(--ivory-white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.red-text {
    background: var(--red-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.text-lg { font-size: 1.125rem; }

/* Glassmorphism System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(204, 0, 0, 0.1);
    border-color: rgba(204, 0, 0, 0.3);
}

/* Typography Classes */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ivory-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.huge-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--red-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-red {
    display: inline-block;
    padding: 12px 32px;
    background: var(--red-glow);
    color: var(--midnight-black);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2);
}

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

.btn-glass {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--ivory-white);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--ivory-white);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: var(--ivory-white);
    color: var(--midnight-black);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.link-red {
    color: var(--luxury-red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-red:hover {
    color: var(--ivory-white);
    gap: 12px;
}

/* Sidebar Layout */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--ivory-white);
}

.mobile-toggle {
    background: none;
    border: none;
    color: var(--luxury-red);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Collapsed by default on desktop, expands on hover or click */
.sidebar {
    width: var(--sidebar-collapsed-width);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.sidebar:hover, .sidebar.expanded {
    width: var(--sidebar-width);
}

.sidebar-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
    font-size: 2rem;
    letter-spacing: 2px;
    background: var(--red-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.2s;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.sidebar:hover .brand-logo, .sidebar.expanded .brand-logo {
    opacity: 1;
    pointer-events: auto;
    width: auto;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    transform: rotate(180deg);
    margin: 0 auto;
}

.toggle-btn:hover { color: var(--luxury-red); }

.sidebar:hover .toggle-btn, .sidebar.expanded .toggle-btn {
    transform: rotate(0deg);
    margin: 0;
}

.nav-links {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 1rem 24px;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links li a i {
    font-size: 1.2rem;
    min-width: 30px;
    transition: color 0.3s;
}

.nav-links li a .link-text {
    margin-left: 1rem;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.sidebar:hover .nav-links li a .link-text, .sidebar.expanded .nav-links li a .link-text {
    opacity: 1;
    pointer-events: auto;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--ivory-white);
    background: var(--glass-hover);
}

.nav-links li a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--red-glow);
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

.nav-links li a.active i, .nav-links li a:hover i {
    color: var(--luxury-red);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--glass-border);
}

.btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--red-glow);
    color: var(--midnight-black);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0;
    padding: 12px 0;
}

.btn-sidebar::after {
    content: '\f290'; /* Shopping bag icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.2rem;
}

.sidebar:hover .btn-sidebar, .sidebar.expanded .btn-sidebar {
    font-size: 1rem;
}

.sidebar:hover .btn-sidebar::after, .sidebar.expanded .btn-sidebar::after {
    display: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed-width);
    transition: margin-left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

.sidebar:hover ~ .main-content, .sidebar.expanded ~ .main-content {
    margin-left: var(--sidebar-width);
}

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

.section {
    padding: 6rem 0;
}

/* Page Headers */
.page-header {
    padding: 8rem 0 4rem 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), var(--midnight-black)), url('images/photo-1548685913-fe6678babe8d.png') no-repeat center/cover;
    border-bottom: 1px solid var(--glass-border);
}
.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--red-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.7) 40%, rgba(10, 10, 10, 0.1) 100%);
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 1rem 0 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Collection Cards */
.collection-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.collection-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.collection-card .card-content {
    padding: 2rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content .card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
}

/* Split Layouts (Craftsmanship & Heritage) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse .split-content {
    order: 2;
}

.split-layout.reverse .split-image {
    order: 1;
}

.text-block {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.luxury-list {
    margin: 2rem 0;
}

.luxury-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radius-img {
    border-radius: 4px;
    padding: 10px;
    background: var(--glass-bg);
}

/* Detail Features */
.detail-box {
    padding: 3rem 2rem;
    text-align: center;
}
.detail-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--luxury-red);
}
.detail-box h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.detail-box p { color: var(--text-muted); }

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    color: var(--luxury-red);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    color: var(--ivory-white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--luxury-red);
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info-box {
    padding: 3rem;
    border-top: 3px solid var(--luxury-red);
}
.contact-info-box h3 { margin-bottom: 1.5rem; font-size: 1.8rem; }
.contact-info-box p { margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 15px;}
.contact-info-box i { color: var(--luxury-red); font-size: 1.5rem; width: 30px;}

/* Legal Docs */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}
.legal-content h2 { color: var(--ivory-white); margin: 2rem 0 1rem; font-size: 1.8rem;}
.legal-content p { margin-bottom: 1rem; }

/* Modal Detail Box */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #111;
    border: 1px solid rgba(204, 0, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(204, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid rgba(204, 0, 0, 0.2);
    color: var(--luxury-red);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--luxury-red);
    color: #fff;
    transform: rotate(90deg);
}
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}
.modal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}
.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--ivory-white);
    margin: 0;
}
.modal-category {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin: 0;
}
.modal-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--red-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-contact h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--ivory-white);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--luxury-red);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    gap: 10px;
}

.footer-contact p i {
    color: var(--luxury-red);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-2-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3.5rem; }
    .huge-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    }
    
    .sidebar.open .brand-logo { opacity: 1; pointer-events: auto; width: auto; }
    .sidebar.open .nav-links li a .link-text { opacity: 1; pointer-events: auto; }
    .sidebar.open .btn-sidebar { font-size: 1rem; }
    .sidebar.open .btn-sidebar::after { display: none; }

    .sidebar .toggle-btn { display: none; } /* Hide standard toggle on mobile */

    .main-content, .sidebar:hover ~ .main-content, .sidebar.expanded ~ .main-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .hero-section {
        padding-left: 2rem;
        padding-right: 2rem;
        justify-content: center;
        text-align: center;
    }
    
    .hero-overlay {
        background: rgba(10, 10, 10, 0.6);
    }
    
    .hero-actions {
        justify-content: center;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-layout.reverse .split-content,
    .split-layout.reverse .split-image {
        order: unset;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}