/* assets/style.css - The Core Engine (v3.5 - Features Removed) */
:root {
    /* Color Palette - Light Mode (Default) */
    --primary: #9333ea;
    --bg-body: #ffffff;
    --bg-panel: #f5f5f7;
    --text-main: #0a0a0b;
    --text-muted: #888888;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.09);
    --shadow: rgba(0, 0, 0, 0.1);

    /* Animation & Layout */
    --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fluid Font Sizes */
    --fs-hero: clamp(3rem, 9vw, 7rem); 
    --fs-h2: clamp(2rem, 5vw, 3rem);
    --fs-body: 1rem;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-body: #0a0a0b;
    --bg-panel: #161618;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass: rgba(10, 10, 11, 0.85);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body { 
    font-family: 'Outfit', sans-serif; 
    overflow-x: hidden; 
    background: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6;
    cursor: none; /* Hidden for custom cursor */
    transition: background 0.3s ease, color 0.3s ease;
}

/* Fallback for devices without a mouse (Touch Screens) */
@media (hover: none) and (pointer: coarse) {
    body, a, button, input, textarea { cursor: auto !important; }
    #cursor { display: none; }
    
    /* Improve tap targets for mobile */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

a, button, input, textarea { cursor: none; }

/* 1. THE KINETIC GLOW CURSOR */
#cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; 
    height: 20px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    
    /* The "Expensive" Glass Look */
    background: rgba(255, 255, 255, 0.1); /* Subtle fill */
    backdrop-filter: blur(2px); /* Blur content behind it */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Sharp white rim */
    box-shadow: 0 0 15px var(--primary), /* Glow matching theme */
                0 0 5px rgba(255, 255, 255, 0.5) inset; 
    
    /* Smooth Physics Transition */
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                height 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                background 0.3s;
    
    /* Center alignment fix */
    transform: translate(-50%, -50%);
    
    /* Flex for text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. HOVER STATE (Links/Buttons) */
.theme-btn:hover ~ #cursor,
body.hovering-link #cursor {
    width: 50px; 
    height: 50px;
    background: rgba(147, 51, 234, 0.15);
    border-color: var(--primary);
    mix-blend-mode: normal; 
}

/* 3. SLIDER STATE (The "Pill" Morph) */
body.hovering-slider #cursor {
    width: 90px; /* Wide Pill */
    height: 90px; /* Round */
    background: var(--text-main); 
    border-color: transparent;
    mix-blend-mode: normal;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 4. TEXT INSIDE CURSOR (Only visible in slider) */
#cursor::after {
    content: '';
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--bg-body); 
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.3s;
}

/* "Drag" Text/Arrows inside Cursor */
body.hovering-slider #cursor::before {
    content: '← Drag →';
    color: var(--bg-body); /* Inverse text color */
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    white-space: nowrap;
}

body.hovering-slider #cursor::after {
    opacity: 1;
    transform: scale(1);
}

/* --- 2. Navigation --- */
.luxury-nav {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 20px 8%; 
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass); 
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid var(--border);
}

.logo { 
    display: flex; align-items: center; gap: 10px; 
    text-decoration: none; color: var(--text-main);
}
.logo img { height: 40px; }
.logo span { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text-main); 
    font-weight: 600; font-size: 0.85rem; 
    text-transform: uppercase; letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: ''; position: absolute; width: 0%; height: 1px;
    bottom: -5px; left: 0; background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

/* --- 3. Animation Engine --- */
.reveal { opacity: 1; transform: translateY(0); transition: var(--transition); }
body.js-loaded .reveal { opacity: 0; transform: translateY(40px); }
body.js-loaded .reveal.active { opacity: 1; transform: translateY(0); }

/* --- 4. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 8% 0; /* Adjusted padding to center text vertically */
    overflow: hidden;
    color: #ffffff; 
    margin-top: -80px; 
}

#heroImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: opacity 0.5s ease-in-out;
}

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

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    padding: 0 20px;
}

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-hero);
    line-height: 1.05;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Buttons --- */
.luxury-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--text-main);
    color: var(--bg-body);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--text-main);
    text-align: center;
}
.luxury-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

/* Button Variants */
.luxury-btn.disabled {
    background: #ccc; border-color: #ccc; color: #666; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
}
.luxury-btn.dark-btn { background: #333; border-color: #333; color: white; }
.luxury-btn.outline-btn { background: transparent; color: var(--text-main); border: 1px solid var(--border); }

/* New White Outline Button */
.luxury-btn.outline-btn-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.luxury-btn.outline-btn-white:hover {
    background: #ffffff;
    color: var(--text-main);
    border-color: #ffffff;
}

.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 60px; padding: 0 8%;
    margin-top: 100px;
}
.section-header h2 { font-family: 'Syne'; font-size: var(--fs-h2); line-height: 1; }
.section-header p { color: var(--text-muted); max-width: 300px; margin-top: 10px; }

/* --- 5. GLOBAL CARD & GRID STYLES --- */
.art-masonry { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); 
    gap: 40px; 
    padding: 0 8% 120px; 
    justify-content: center;
}

.card-img-wrap { 
    width: 100%; height: 450px; overflow: hidden; border-radius: 12px; margin-bottom: 20px; 
    background: var(--bg-panel); 
}
.card-img-wrap img { 
    width: 100%; height: 100%; object-fit: cover; transition: 0.8s; 
}
.art-card:hover img { transform: scale(1.1); }

.art-info h3 { 
    font-size: 1.5rem; margin-bottom: 5px; color: var(--text-main); font-family: 'Syne'; 
}
.art-info p { color: var(--text-muted); font-size: 0.9rem; }

.art-status {
    font-size: 0.75rem; 
    font-weight: 700; 
    letter-spacing: 1px;
    margin-bottom: 5px; 
    text-transform: uppercase;
}
.art-status.sold { color: #ff4444; }
.art-status.hold { color: #f59e0b; }

/* Card Price - Removed stats, focused on price */
.card-price {
    font-weight: 700; 
    color: var(--primary); 
    margin-top: 10px; 
    font-size: 1.1rem;
}

/* Horizontal Scroll (Desktop) */
@media (min-width: 900px) {
    .horizontal-scroll-wrap {
        overflow-x: auto;
        display: flex;
        gap: 40px;
        padding: 20px 8% 60px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .horizontal-scroll-wrap::-webkit-scrollbar { display: none; }
    
    .horizontal-scroll-wrap .art-card {
        min-width: 400px;
        scroll-snap-align: center;
    }
}

/* Quote Section */
.quote-section {
    background: var(--text-main); color: var(--bg-body);
    padding: 150px 8%; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.quote-text {
    font-family: 'Syne'; font-size: clamp(1.5rem, 5vw, 4rem);
    line-height: 1.2; margin-bottom: 30px; max-width: 1000px;
}

/* View All Wrapper (Mobile Fix) */
.view-all-wrapper {
    text-align: center; 
    margin-bottom: 100px;
    padding: 0 8%; /* Consistent with page padding */
}

/* --- 6. Modal Engine --- */
.art-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--glass); backdrop-filter: blur(10px);
    z-index: 2000; opacity: 0; pointer-events: none;
    transition: 0.4s ease; display: flex; align-items: center; justify-content: center;
    overflow-y: auto; /* Enable scrolling for the whole overlay */
    padding: 20px 0;
}
.art-modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-content {
    width: 90%; max-width: 1200px;
    height: auto; /* Allow height to grow with content */
    max-height: none; 
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    background: transparent; 
    align-items: start; /* Align to top for better scrolling */
}

.modal-image-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.modal-image-col img { max-height: 85vh; max-width: 100%; box-shadow: 20px 20px 60px var(--shadow); border-radius: 4px; object-fit: contain; }

.modal-text-col { padding-right: 50px; }
.back-btn { position: absolute; top: 40px; left: 5%; font-size: 0.9rem; cursor: pointer; color: var(--text-muted); z-index: 2001; }
.back-btn:hover { color: var(--text-main); }
.modal-title { font-family: 'Syne'; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; margin-bottom: 20px; }
.modal-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.modal-desc { font-size: 1.1rem; color: var(--text-main); margin-bottom: 60px; line-height: 1.8; opacity: 0.8; }
.modal-price-label { font-family: 'Syne'; font-size: 1.2rem; margin-bottom: 15px; display: block; }
.modal-actions { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }

/* ZOOM & INTERACTION Styles */
.zoom-container {
    width: 100%; height: 100%; overflow: hidden; cursor: crosshair;
    border-radius: 4px; position: relative; background: var(--bg-panel);
}
#zoomTarget {
    width: 100%; height: 100%; object-fit: contain; transition: transform 0.1s ease-out;
}
.zoom-hint {
    text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 10px;
}

/* --- 7. AR & IMAGE ROOM VIEWER --- */
/* Overlay Container */
.room-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 3000; display: flex; flex-direction: column;
}

/* Header Buttons (Close & Toggle AR) */
.room-header-controls {
    position: absolute; top: 20px; right: 20px; z-index: 3010;
    display: flex; gap: 10px;
}

.room-btn {
    padding: 10px 20px;
    color: white; 
    background: rgba(255,255,255,0.15); 
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.room-btn:hover { background: rgba(255,255,255,0.3); }
.room-btn.active { background: var(--primary); border-color: var(--primary); }

/* Scene Container */
.room-scene {
    flex: 1; position: relative; overflow: hidden;
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    background: #111;
}

/* 1. STATIC MODE: Background Image */
.room-bg-img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.2s ease-in-out; 
}

/* 2. AR MODE: Video Feed */
#arVideo {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2;
    background: #000;
}

/* Art Wrapper (Draggable) */
.art-container {
    z-index: 10; 
    position: absolute; 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    cursor: grab;
    touch-action: none; 
}
.art-container:active { cursor: grabbing; }

.art-frame {
    display: block;
    border: 12px solid #111;
    outline: 2px solid #333;
    background: #fff;
    width: 280px; 
    pointer-events: none; 
}

/* Size Slider */
.room-controls {
    position: absolute; bottom: 40px; z-index: 100; 
    background: rgba(0,0,0,0.7); padding: 15px 30px; 
    border-radius: 50px; color: white; display: flex; 
    align-items: center; gap: 15px; backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 400px;
    justify-content: center;
}

/* --- 8. Footer --- */
.luxury-footer { background: var(--bg-body); padding: 100px 8% 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; max-width: 300px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 25px; font-family: 'Syne'; }
.footer-links a { display: block; text-decoration: none; color: var(--text-muted); margin-bottom: 12px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact p { color: var(--text-muted); margin-bottom: 12px; }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding-top: 40px; border-top: 1px solid var(--border); }

/* Skeleton Loading */
.skeleton-card { height: 450px; background: var(--bg-panel); border-radius: 12px; position: relative; overflow: hidden; }
.skeleton-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--glass), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* --- 9. Responsive Breakpoints --- */
@media (max-width: 900px) {
    .hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .luxury-btn { width: 100%; }

    .modal-content { 
        display: flex;
        flex-direction: column;
        width: 95%;
        gap: 20px;
        padding-top: 60px;
    }
    .modal-image-col { height: auto; margin-bottom: 30px; }
    .modal-text-col { padding: 0 20px 50px; }
    .modal-image-col img { max-height: 60vh; width: auto; }
}

@media (max-width: 768px) {
    /* Nav & Hero */
    .luxury-nav { padding: 15px 5%; }
    .hamburger-btn { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--glass); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 2rem; margin: 20px 0; }

    /* Grid & Layout */
    .art-masonry { grid-template-columns: 1fr; padding: 0 20px 60px; gap: 20px; }
    .card-img-wrap { height: 350px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    .footer-brand p { margin: 20px auto 0; }
    .luxury-footer { padding: 60px 8% 30px; }
    .section-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-top: 80px;}
    .modal-actions { flex-direction: column; gap: 10px; }
    
    /* View All Wrapper Mobile Fix */
    .view-all-wrapper {
        padding: 0 20px; /* Reduces side padding on mobile */
        margin-bottom: 60px;
    }

    /* --- ROOM VIEWER MOBILE FIXES --- */
    .room-header-controls { 
        top: 15px; right: 15px; 
        flex-direction: column; 
        align-items: flex-end; 
    }
    
    .room-btn { 
        padding: 8px 15px; 
        font-size: 0.8rem; 
    }
    
    .room-controls { 
        bottom: 20px; 
        width: 95%; 
        padding: 10px 20px; 
    }
}

/* --- 10. CUSTOM SLIDER STYLING (The Fix) --- */

/* 1. Main Container */
.slider-container {
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none;
    cursor: none; /* Already present */
    
    /* ADD THESE TO HIDE THE HAND CURSOR */
    user-select: none;         /* Prevents text highlighting */
    -webkit-user-select: none;
    -webkit-user-drag: none;   /* Prevents browser ghost-image drag */
}

.slider-container::-webkit-scrollbar { display: none; }
.slider-container:active { cursor: none; display: contents; }

.image-slider {
    display: flex; /* Forces items into a horizontal row */
    gap: 30px;     /* Space between cards */
    padding: 40px 8% 80px; /* Padding inside the scroll track */
    width: max-content;    /* Critical: Forces track to be wide enough for all items */
}

/* 2. Card Styling - ADAPTIVE */
.slider-item {
    position: relative;
    width: 350px;
    height: 500px;
    background: var(--bg-panel); 
    border-radius: 16px;
    overflow: hidden;
    
    /* Flex Behavior */
    flex-shrink: 0; /* Prevents cards from squashing */
    scroll-snap-align: center; /* Snap to center */
    
    /* Visuals */
    box-shadow: 0 20px 40px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary); /* Highlight border on hover */
}

/* 3. Image Clarity */
.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image visibility */
    display: block;
    transition: transform 0.5s ease;
}

.slider-item:hover img {
    transform: scale(1.02);
}

/* 4. Hover Details - ADAPTIVE GLASS */
.hover-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-top: 1px solid var(--border);
    
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

/* Trigger Hover on Desktop */
.slider-item:hover .hover-details {
    opacity: 1;
    transform: translateY(0);
}

/* Adaptive Text Colors */
.hover-details .title {
    color: var(--text-main); /* Black (Light) / White (Dark) */
    font-size: 1.2rem;
    font-family: 'Syne', sans-serif;
    margin-bottom: 5px;
}

.hover-details .location {
    color: var(--text-muted); /* Grey text adapts */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 5. Mobile Adaptation */
@media (max-width: 768px) {
    .slider-container {
        gap: 15px;
        padding: 20px 20px 60px;
    }
    
    .slider-item {
        width: 85vw;
        height: 450px;
    }
    
    /* Always show details on mobile */
    .hover-details {
        opacity: 1;
        transform: translateY(0);
        background: var(--glass); 
    }
}

.theme-btn {
    cursor: none !important; /* Forces the browser arrow to hide */
    outline: none;
}

a, button, input, textarea, .slider-item, .tool-btn, .back-btn, .room-btn, .luxury-btn {
    cursor: none !important;
}

/* Hide cursor specifically for the Room Viewer and its components */
.room-overlay, .room-scene, .art-container, .art-frame, .back-btn {
    cursor: none !important;
}

/* Prevent the hand cursor when hovering over the zoom container */
.zoom-container {
    cursor: none !important;
}

body.hovering-zoom #cursor {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

body.hovering-zoom #cursor::before {
    content: 'ZOOM';
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    letter-spacing: 2px;
}

/* --- LUXURY SOCIAL ICONS --- */
.social-links, .company-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-panel); /* Adapts to light/dark mode */
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: none !important; /* Hide browser mouse */
}

/* Hover State: Glow and Lift */
.social-icon:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3); /* Purple glow */
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5px;
}

/* Aligning specifically for the Contact Page info items */
.info-item .company-socials {
    margin-top: 10px;
}

/* Aligning specifically for the About Page bio */
.about-content .social-links {
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
}

/* Ensure Custom Cursor reacts to Social Icons */
body.hovering-link #cursor {
    background: rgba(147, 51, 234, 0.2);
}

/* --- NEW GLASS TOGGLE CSS --- */
.glass-toggle {
    position: relative;
    width: 90px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    border: 1px solid var(--border);
    padding: 4px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

[data-theme="dark"] .glass-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.1);
}

/* The Sliding Knob */
.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.1),
        inset 0 -2px 5px rgba(0,0,0,0.05),
        inset 0 2px 5px rgba(255,255,255,0.8);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
    /* Ensure knob itself is a centered container for its innards */
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .toggle-knob {
    left: calc(100% - 36px);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.3),
        inset 0 2px 5px rgba(255,255,255,0.1);
}

/* Container for icons to ensure they stack */
.knob-inner {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icons inside the knob */
.knob-inner svg {
    position: absolute;
    /* Center the absolutely positioned icons perfectly */
    top: 50%;
    left: 50%;
    transition: all 0.4s ease;
}

/* CRITICAL FIX: Added translate(-50%, -50%) to all transforms below.
   This ensures the rotation and scaling happen from the exact center.
*/
.icon-sun { 
    color: #f59e0b; 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1) rotate(0deg); 
}

.icon-moon { 
    color: #fff; 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.5) rotate(-90deg); 
}

/* Icon Animation Logic - Dark Mode State */
[data-theme="dark"] .icon-sun { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.5) rotate(90deg); 
}

[data-theme="dark"] .icon-moon { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1) rotate(0deg); 
}

/* Text Labels */
.toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.5px;
    z-index: 1;
    pointer-events: none;
}

.track-text {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.4s ease;
}

.text-dark { color: var(--text-main); margin-left: auto; }
.text-light { color: #fff; margin-right: auto; }

[data-theme="light"] .text-dark { opacity: 1; transform: translateY(0); }
[data-theme="dark"] .text-light { opacity: 1; transform: translateY(0); }