:root {
    --bg-color: #050505;
    --card-bg: #121216;
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --nav-height: 80px;
    --card-border-radius: 20px;
    --transition-speed: 0.5s;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--primary-color);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.cta-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn.primary {
    background: white;
    color: black;
}

.btn.primary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn.secondary {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn.secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    perspective: 1000px;
}

.circle-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.3;
    animation: pulse 4s infinite alternate;
}

.float-card {
    position: absolute;
    width: 250px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
}

.c1 {
    top: 0;
    left: 50px;
    transform: rotateY(-20deg) translateZ(0);
    z-index: 1;
    background-image: url('./gallery_assets/floating-cards-1.png');
}

.c2 {
    top: 40px;
    left: 120px;
    transform: rotateY(0deg) translateZ(50px);
    z-index: 2;
    background-image: url('./gallery_assets/floating-cards-2.png');
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.c3 {
    top: 80px;
    left: 190px;
    transform: rotateY(20deg) translateZ(0);
    z-index: 1;
    background-image: url('./gallery_assets/floating-cards-3.png');
}

@keyframes pulse {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, #0f0f15 0%, #050505 100%);
    overflow: hidden;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.gallery-3d-container {
    perspective: 1500px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    height: 450px;
    /* Reduced for buttons placement */
}

.gallery-track {
    position: relative;
    width: 300px;
    height: 450px;
    transform-style: preserve-3d;
    transition: transform var(--transition-speed);
}

.gallery-card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--card-bg);
    border-radius: var(--card-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform var(--transition-speed), opacity var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.gallery-card.active {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.6);
}

.card-image {
    flex: 3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #18181b;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    margin: 0 20px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: var(--primary-color);
}

.template-details {
    margin-top: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
}

.template-details.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Filter Section */
.filter-section {
    padding: 100px 10%;
    background: #020202;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.grid-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeUp 0.6s forwards;
    display: flex;
    flex-direction: column;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.grid-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.grid-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.grid-item:hover .grid-image::after {
    background: rgba(0, 0, 0, 0);
}

.grid-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.grid-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-btn {
    display: inline-block;
    padding: 8px 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: padding-left 0.3s;
}

.view-btn:hover {
    padding-left: 5px;
}

footer {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .gallery-3d-container {
        height: 500px;
    }

    .gallery-track {
        width: 250px;
        height: 380px;
    }
}