:root {
    --bg-color: #0b0d17;
    --bg-secondary: #15192b;
    --text-main: #ffffff;
    --text-muted: #a0a0c0;
    --accent-primary: #6C63FF;
    --accent-secondary: #FF6584;
    --gradient-main: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

.gradient-text {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(11, 13, 23, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-nav {
    background: var(--glass-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    color: white !important;
}

.btn-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1.5rem 0 2.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-asset {
    max-width: 80%;
    max-height: 80%;
    z-index: 2;
    filter: drop-shadow(0 20px 50px rgba(108, 99, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

.gradient-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-main);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 5s infinite alternate;
    z-index: 0;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 2rem;
}

.step-card {
    flex: 1;
    text-align: center;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-primary);
}

.step-card h3 {
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products */
.bg-darker {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.product-image-container {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: var(--bg-color);
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-weight: 700;
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

/* Quality Split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-list i {
    color: var(--accent-primary);
}

.quality-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--bg-secondary), #2a2d3e);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: #05060a;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-visual {
        width: 100%;
        margin-top: 4rem;
        height: 400px;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-line {
        width: 2px;
        height: 50px;
        background: var(--glass-border);
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Page Header (Common) */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(108, 99, 255, 0.1), transparent 70%);
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Page */
.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-details i {
    color: var(--accent-primary);
    width: 25px;
}

.social-links-large {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.social-links-large a {
    font-size: 1.8rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links-large a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Design Studio Layout */
body.design-mode {
    overflow: hidden;
    /* Prevent body scroll in app mode */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.design-studio {
    flex: 1;
    display: flex;
    margin-top: 80px;
    /* Offset fixed navbar */
    height: calc(100vh - 80px);
    overflow: hidden;
}

.design-sidebar {
    width: 350px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tool-group h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.product-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.tool-btn {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 1rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.tool-btn:hover,
.tool-btn.active {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--accent-primary);
    color: white;
}

.color-picker {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.block-btn {
    width: 100%;
    margin-bottom: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.block-btn:hover {
    border-color: var(--text-muted);
}

.summary-box {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.price-tag {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Canvas Area */
.canvas-area {
    flex: 1;
    background: #000;
    /* Darker backdrop for work area */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.canvas-container {
    position: relative;
    width: 500px;
    height: 600px;
    /* Simulate a workspace boundary */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.canvas-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.design-overlay {
    position: absolute;
    top: 20%;
    /* Approximate printable area start */
    left: 25%;
    width: 50%;
    height: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    /* Show print area */
    overflow: hidden;
}

.design-element {
    position: absolute;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
}

.canvas-controls {
    position: absolute;
    bottom: 2rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 30px;
    display: flex;
    gap: 1rem;
    border: 1px solid var(--glass-border);
}

.control-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.control-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .design-studio {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .design-sidebar {
        width: 100%;
        order: 2;
    }

    .canvas-area {
        height: 500px;
        order: 1;
    }

    body.design-mode {
        overflow: auto;
        height: auto;
    }
}

/* Catalog Styles */
.catalog-section {
    padding-top: 2rem;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Catalog Grid Adjustments */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 23, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-container:hover .card-overlay {
    opacity: 1;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}