* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-primary: #000000;
    --accent-secondary: #333333;
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    color: #ff3b30;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: text-bottom;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Hero Section Redesign */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-container {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-pulse-container {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    background: radial-gradient(circle at center, rgba(255, 59, 48, 0.05) 0%, transparent 70%);
}

.ui-primitive {
    position: absolute;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 59, 48, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.frame-1 {
    width: 200px;
    height: 140px;
    transform: rotateX(10deg) rotateY(-20deg) translateZ(50px);
    animation: floatFrame 8s ease-in-out infinite;
    z-index: 3;
}

.frame-2 {
    width: 160px;
    height: 220px;
    transform: rotateX(-5deg) rotateY(15deg) translateZ(-30px);
    animation: floatFrame 10s ease-in-out infinite reverse;
    z-index: 2;
    left: 20%;
}

.frame-3 {
    width: 180px;
    height: 100px;
    transform: rotateX(15deg) rotateY(-10deg) translateZ(10px);
    animation: floatFrame 12s ease-in-out infinite;
    z-index: 1;
    right: 15%;
}

.nub-1,
.nub-2 {
    width: 14px;
    height: 14px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.8), 0 0 40px rgba(255, 59, 48, 0.3);
    animation: pulseNub 2.5s ease-in-out infinite;
    z-index: 10;
}

.nub-1 {
    top: 30%;
    left: 45%;
}

.nub-2 {
    bottom: 25%;
    right: 40%;
}

.hub-line {
    width: 3px;
    height: 180px;
    background: linear-gradient(to bottom, transparent, #ff3b30, transparent);
    opacity: 0.6;
    animation: scanLine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.5));
}

.design-grid {
    width: 400px;
    height: 400px;
    background-image:
        linear-gradient(rgba(255, 59, 48, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 59, 48, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotateX(60deg) translateZ(-120px);
    border: none;
    mask-image: radial-gradient(circle, black 30%, transparent 80%);
}

@keyframes floatFrame {

    0%,
    100% {
        transform: translateY(0) rotateX(10deg) rotateY(-20deg) translateZ(50px);
    }

    50% {
        transform: translateY(-20px) rotateX(15deg) rotateY(-15deg) translateZ(70px);
    }
}

@keyframes pulseNub {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 25px rgba(255, 59, 48, 0.8);
    }
}

@keyframes scanLine {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Category Grid Redesign */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 240px;
    gap: 1.5rem;
    margin-bottom: 8rem;
}

.category-card {
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Bento positions */
.category-web {
    grid-column: span 3;
}

.category-mobile {
    grid-column: span 3;
}

.category-dashboard {
    grid-column: span 2;
}

.category-saas {
    grid-column: span 2;
}

.category-branding {
    grid-column: span 2;
}

.category-all {
    grid-column: span 6;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    grid-auto-rows: 120px;
    height: 120px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 59, 48, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 59, 48, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 59, 48, 0.1);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    color: var(--text-primary);
}

.category-card:hover .category-icon {
    background: #ff3b30;
    color: white;
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-web,
    .category-mobile,
    .category-dashboard,
    .category-saas,
    .category-branding,
    .category-all {
        grid-column: span 2;
    }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

.btn-large {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Design Cards Grid */
.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

/* Design Card - Inspired by the image */
.design-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.design-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(50, 50, 50, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: 0;
}

.design-card:hover::before {
    opacity: 1;
}

.design-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.card-badge.featured {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.design-card:hover .placeholder-image {
    transform: scale(1.1) rotate(2deg);
}

.gradient-1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #595959 0%, #1a1a1a 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #808080 0%, #333333 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #000000 0%, #2c3e50 100%);
}

.card-content {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.design-card:hover .card-title {
    color: var(--accent-primary);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 0, 0, 0.06);
    color: var(--accent-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.design-card:hover .tag {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-download {
    background: rgba(0, 0, 0, 0.06);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
    transform: translateX(3px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(60, 60, 60, 0.03));
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .designs-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Contact Page Styles */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-graphic {
    width: 24px;
    height: 24px;
    background: #000000;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-graphic {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background: var(--bg-primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Category Menu */
.category-menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
}

.filter-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

@keyframes solveEffect {

    0%,
    100% {
        /* Solved State */
        transform: translateZ(0) scale(1);
        filter: brightness(1) drop-shadow(0 0 0px #ff3b30);
    }

    25% {
        /* Partial Slide / Pop out */
        transform: translateZ(5px) scale(1.02);
        filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 59, 48, 0.4));
    }

    50% {
        /* Color "shift" - simulate inner movement */
        transform: translateZ(3px) scale(0.98);
        background: #ff3b30 !important;
        opacity: 0.8;
    }

    75% {
        /* Re-aligning */
        transform: translateZ(8px) scale(1.01);
        filter: brightness(1.1);
    }
}