/* Color Variables */
:root {
    --color-bg: #1a1333;
    --color-bg-alt: #24124d;
    --color-surface: #2d185f;
    --color-surface-alt: #3d217a;
    --color-primary: #a259ff;
    --color-accent: #f5c16c;
    --color-text: #f5f5fa;
    --color-text-muted: #b8a9d1;
    --color-navbar: #24124d;
    --color-card: #2d185f;
    --color-border: #3d217a;
    --color-btn: #a259ff;
    --color-btn-hover: #c084fc;
    --color-link: #c084fc;
    --color-link-hover: #f5c16c;
    --color-footer: #24124d;
    --color-shadow: rgba(162, 89, 255, 0.15);
    --transition: background 0.3s, color 0.3s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transition);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2.5rem;
    background: rgba(36, 18, 77, 0.75);
    color: var(--color-text);
    z-index: 1000;
    border-radius: 999px;
    box-shadow: 0 8px 32px 0 rgba(162, 89, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(162, 89, 255, 0.18);
    height: auto;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.15);
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-link-hover);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100vh;
    padding: 0 5%;
    background: none;
    margin-top: 6.5rem;
    position: relative;
}

.hero-bg {
    flex: 1;
    background:  url('img/homeSBG.jpg') center center/cover no-repeat;
    border-radius: 1.5rem 0 0 1.5rem;
    min-width: 0;
    min-height: 100%;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.hero-content {
    flex: 2 1 0;
    max-width: 66%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 80vh;
    background: url('img/homeSBG.jpg') center center/cover no-repeat;
    border: 2px solid rgba(162, 89, 255, 0.28);
    border-radius: 10px;
    box-shadow: 0 12px 48px 0 rgba(162, 89, 255, 0.32), 0 2px 8px 0 rgba(162, 89, 255, 0.18);
    background-clip: padding-box;
    padding: 0;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    border-radius: 10px;
    pointer-events: none;
}

.hero-content > * {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    margin-top: 3.5rem;
    color: rgba(162,89,255,0.7);
    text-align: center;
}

.hero-content p {
    color: #fff;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.viewer-container {
    flex: 1 1 0;
    max-width: 34%;
    height: 80vh;
    margin-left: 2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(162, 89, 255, 0.28);
    box-shadow: 0 12px 48px 0 rgba(162, 89, 255, 0.32), 0 2px 8px 0 rgba(162, 89, 255, 0.18);
    background-clip: padding-box;
    background: var(--color-surface);
    transition: var(--transition);
    margin-top: 1.5rem;
}

/* Add the wave animation keyframes */
@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.cta-button {
    position: relative;
    background-color: var(--color-btn);
    color: var(--color-text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition), transform 0.3s, box-shadow 0.3s;
    overflow: visible;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 4rem;
}

.cta-button::before,
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid var(--color-btn);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(1);
    animation: wave 2s infinite;
    z-index: 1;
}

.cta-button::after {
    animation-delay: 0.5s;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background-color: var(--color-btn-hover);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-shadow);
}

.cta-button:hover::before,
.cta-button:hover::after {
    border-color: var(--color-btn-hover);
    animation-duration: 1.5s;
}

.hero-content h1, .hero-content p {
    text-align: center;
}

/* Products Section */
.products {
    padding: 5rem 5%;
    background: linear-gradient(100deg, #2d185f 0%, #7c7291 100%);
    transition: var(--transition);
}

body.light-mode .products {
    background: linear-gradient(100deg, #ede9fe 0%, #7c7291 100%) !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.about-dev {
    margin-top: 2.2rem;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 1rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 12px 0 rgba(162, 89, 255, 0.08);
    color: var(--color-text);
    max-width: 600px;
}
.about-dev h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
}
.about-dev p {
    margin: 0;
    font-size: 1.08rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.about-email {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
.about-email:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    transition: var(--transition);
}

.contact-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
}

.contact-img {
    flex: 1;
    background: linear-gradient(120deg, rgba(26,19,51,0.7) 0%, rgba(162,89,255,0.2) 100%), url('img/contact.jpg') center center/cover no-repeat;
    border-radius: 1.5rem 0 0 1.5rem;
    min-width: 0;
    min-height: 350px;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.contact-form {
    flex: 1;
    background: rgba(45,24,95,0.85);
    border-radius: 0 1.5rem 1.5rem 0;
    box-shadow: 0 10px 30px var(--color-shadow);
    padding: 2.5rem 2rem;
    z-index: 1;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.6rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: 1.1rem;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.08);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
    box-shadow: 0 0 0 2px var(--color-primary), 0 2px 8px rgba(162, 89, 255, 0.12);
}
.form-group label {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    pointer-events: none;
    background: transparent;
    transition: 0.2s cubic-bezier(.4,0,.2,1);
    padding: 0 0.2rem;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown):not(:focus) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown):not(:focus) + label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.92rem;
    color: var(--color-primary);
    background: var(--color-surface-alt);
    padding: 0 0.4rem;
    border-radius: 4px;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-btn {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #a259ff 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 24px 0 rgba(162, 89, 255, 0.18);
    overflow: hidden;
    z-index: 1;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.contact-btn span {
    position: relative;
    z-index: 2;
}
.contact-btn::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 120%;
    background: linear-gradient(90deg, #a259ff 0%, #7c3aed 100%);
    opacity: 0.5;
    filter: blur(16px);
    border-radius: 2rem;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.contact-btn:hover,
.contact-btn:focus {
    background: linear-gradient(90deg, #7c3aed 0%, #a259ff 100%);
    box-shadow: 0 8px 32px 0 rgba(162, 89, 255, 0.28);
    transform: translateY(-2px) scale(1.04);
}
.contact-btn:hover::before,
.contact-btn:focus::before {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
}
.contact-btn:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background-color: var(--color-footer);
    color: var(--color-text);
    padding: 3rem 5% 1rem;
    transition: var(--transition);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-section:nth-child(2) {
    justify-content: center;
    margin-top: 2.5rem;
}

.footer-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.12);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--color-link-hover);
}

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

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

/* Light Mode */
body.light-mode {
    --color-bg: #fff;
    --color-bg-alt: #f5f7fa;
    --color-surface: #fff;
    --color-surface-alt: #f8f9fa;
    --color-primary: #7c3aed;
    --color-accent: #a259ff;
    --color-text: #22223b;
    --color-text-muted: #6c6a7a;
    --color-navbar: #ede9fe;
    --color-card: #fff;
    --color-border: #e0e0e0;
    --color-btn: #a259ff;
    --color-btn-hover: #7c3aed;
    --color-link: #7c3aed;
    --color-link-hover: #a259ff;
    --color-footer: #ede9fe;
    --color-shadow: rgba(162, 89, 255, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .viewer-container {
        width: 100%;
        margin-left: 0;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding: 0 1rem;
    }
    .hero-bg {
        min-height: 220px;
        border-radius: 1.5rem 1.5rem 0 0;
    }
    .hero-content {
        max-width: 100%;
        border-radius: 1.5rem 1.5rem 0 0;
        padding: 2rem 1rem;
        min-height: 220px;
    }
    .viewer-container {
        max-width: 100%;
        margin-left: 0;
        margin-top: 1.5rem;
        height: 60vw;
        min-height: 220px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-viewer {
        height: 320px;
        max-width: 100%;
    }

    .navbar {
        padding: 0.5rem 1rem;
        width: calc(100% - 1rem);
        max-width: 98vw;
    }

    .contact-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-img {
        border-radius: 1.5rem 1.5rem 0 0;
        min-height: 180px;
    }
    .contact-form {
        border-radius: 0 0 1.5rem 1.5rem;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        top: 0.5rem;
        padding: 0.25rem 0.5rem;
        border-radius: 1.5rem;
    }
}

/* Product Cards */
.product-card {
    background: var(--color-card);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--color-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--color-shadow);
}

.product-viewer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    justify-items: center;
    background: none;
}

.product-viewer {
    width: 95%;
    height: 440px;
    max-width: 600px;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border: 2px solid rgba(162, 89, 255, 0.28);
    box-shadow: 0 12px 48px 0 rgba(162, 89, 255, 0.32), 0 2px 8px 0 rgba(162, 89, 255, 0.18);
    background-clip: padding-box;
    transition: var(--transition);
}

.product-canvas {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(36, 18, 77, 0.85);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    position: relative;
    z-index: 2;
    min-height: unset;
}

.product-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.1rem;
    font-weight: 700;
    text-align: left;
}

.product-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: left;
}

.product-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.product-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

.price {
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.view-button {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.view-button:hover {
    background-color: var(--color-btn-hover);
    color: var(--color-bg);
}

@media (max-width: 900px) {
    .product-viewer-grid {
        grid-template-columns: 1fr;
    }
    .product-viewer {
        height: 320px;
        max-width: 100%;
    }
}

.like-btn, .save-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
}

.like-btn:focus, .save-btn:focus {
    box-shadow: 0 0 0 2px #a259ff44;
}

.like-btn svg, .save-btn svg {
    width: 28px;
    height: 28px;
    stroke: #b8a9d1;
    fill: none;
    transition: fill 0.2s, stroke 0.2s;
}

.like-btn.active svg {
    fill: #ff3c3c;
    stroke: #ff3c3c;
}

.save-btn.active svg {
    fill: #fff;
    stroke: #2d185f;
}

.like-btn:hover, .save-btn:hover {
    background: rgba(162, 89, 255, 0.08);
    transform: scale(1.08);
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 2rem;
}
.products-header h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
}
.product-filters {
    float: none;
    margin-top: 0;
    margin-bottom: 0;
}
.filter-btn {
    background: transparent;
    color: #b8a9d1;
    border: 2px solid #b8a9d1;
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
}
.filter-btn.active#filter-all {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.filter-btn.active#filter-liked {
    background: #ff3c3c;
    color: #fff;
    border-color: #ff3c3c;
}
.filter-btn.active#filter-bookmarked {
    background: #fff;
    color: #2d185f;
    border-color: #fff;
}
.filter-btn:focus {
    box-shadow: 0 0 0 2px #a259ff44;
}
@media (max-width: 900px) {
    .filter-btn {
        margin: 0 0.3rem;
    }
}

.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 32px;
    background: rgba(162, 89, 255, 0.12);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.10);
    transition: background 0.3s, box-shadow 0.3s;
    outline: none;
    padding: 0;
    margin-left: 1.2rem;
}
.theme-toggle:focus {
    box-shadow: 0 0 0 2px #a259ff66, 0 2px 8px rgba(162, 89, 255, 0.10);
}
.toggle-slider {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.10);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), background 0.3s;
    z-index: 1;
}
body.light-mode .theme-toggle .toggle-slider {
    transform: translateX(24px);
    background: #f5c16c;
}
.theme-toggle .toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s, filter 0.3s;
    z-index: 2;
}
.theme-toggle .toggle-sun {
    left: 8px;
    opacity: 0.7;
    filter: blur(0.5px);
}
.theme-toggle .toggle-moon {
    right: 8px;
    opacity: 0.7;
    filter: blur(0.5px);
}
body.light-mode .theme-toggle .toggle-sun {
    opacity: 1;
    filter: none;
}
body.light-mode .theme-toggle .toggle-moon {
    opacity: 0.3;
    filter: blur(1.5px);
}
body:not(.light-mode) .theme-toggle .toggle-moon {
    opacity: 1;
    filter: none;
}
body:not(.light-mode) .theme-toggle .toggle-sun {
    opacity: 0.3;
    filter: blur(1.5px);
} 