body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A;
    color: #E5E7EB;
}

.bento-box {
    background-color: #171717;
    border-radius: 0.75rem;
    border: 1px solid #262626;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-box::before,
.bento-box::after {
    content: "";
    position: absolute;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.bento-box.vector-1::before {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3B82F6 2px, transparent 2px, transparent 5px) 0 0 / 5px 5px, linear-gradient(135deg, #3B82F6 2px, transparent 2px, transparent 5px) 0 0 / 5px 5px;
    mask-image: radial-gradient(circle at center, white 30%, transparent 70%);
    animation: vector-pulse 8s infinite ease-in-out;
}

.bento-box.vector-2::after {
    bottom: 5%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: repeating-linear-gradient(0deg, #A855F7, #A855F7 1px, transparent 1px, transparent 10px), repeating-linear-gradient(90deg, #A855F7, #A855F7 1px, transparent 1px, transparent 10px);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 L20 50 L20 30 L40 30 L40 50 L60 50 L60 70 L80 70 L80 50 L100 50 M50 0 L50 20 L70 20 L70 40 L50 40 L50 60 L30 60 L30 80 L50 80 L50 100' stroke='%23FFF' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    animation: vector-pulse-alt 7s infinite ease-in-out;
}

.bento-box.vector-3::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(#3B82F6 1px, transparent 1px) 0 0 / 8px 8px;
    mask-image: linear-gradient(to bottom right, white, transparent 60%);
    animation: vector-fade 9s infinite ease-in-out;
}

@keyframes vector-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes vector-pulse-alt {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.03;
    }
    50% {
        transform: scale(1);
        opacity: 0.08;
    }
}

@keyframes vector-fade {
    0%,
    100% {
        opacity: 0.02;
    }
    50% {
        opacity: 0.07;
    }
}

.bento-box-content {
    position: relative;
    z-index: 1;
}

/* Optimized 3D hover effect - reduced tilt */
.bento-box-hover {
    position: relative;
    cursor: pointer;
}

.bento-box-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-radius: 0.75rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
}

.bento-box-hover:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 40px -12px rgba(59, 130, 246, 0.15),
        0 15px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.bento-box-hover:hover::before {
    opacity: 1;
}

/* Highlight following effect */
.bento-box-hover::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 1;
    transform: scale(0);
}

.bento-box-hover:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: highlight-follow 2.5s ease-in-out infinite;
}

@keyframes highlight-follow {
    0% { transform: scale(1) translate(-20%, -20%); opacity: 0.2; }
    50% { transform: scale(1.05) translate(10%, 10%); opacity: 0.08; }
    100% { transform: scale(1) translate(-20%, -20%); opacity: 0.2; }
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.btn-secondary {
    background-color: #374151;
    color: #D1D5DB;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #4B5563;
}

.btn-secondary:hover {
    background-color: #4B5563;
    transform: translateY(-1px);
}

.tag {
    background-color: #374151;
    color: #D1D5DB;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.header-card {
    background: radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 35%), radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 35%), radial-gradient(circle at top left, #262626, #171717 70%);
    border-radius: 0.75rem;
    border: 1px solid #262626;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Enhanced dynamic glow effect */
.header-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    animation: dynamic-glow 15s infinite ease-in-out;
    z-index: 0;
    filter: blur(60px);
}

@keyframes dynamic-glow {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(0.9) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: scale(1.2) rotate(270deg);
        opacity: 0.25;
    }
    100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0.1;
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #262626;
    border: 1px solid #374151;
}

/* New product image container style */
.product-image-container {
    width: 100%;
    height: 150px;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image-container:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.product-image-scaled {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center top;
}

/* Image zoom and scroll effect on hover */
.product-image-container:hover .product-image-scaled {
    transform: scaleX(1.8) scaleY(1.8);
    animation: image-scroll 3s ease-in-out forwards;
}

@keyframes image-scroll {
    0% {
        transform: scaleX(1.8) scaleY(1.8) translateY(0%);
    }
    50% {
        transform: scaleX(1.8) scaleY(1.8) translateY(-25%);
    }
    100% {
        transform: scaleX(1.8) scaleY(1.8) translateY(-50%);
    }
}

/* Image returns to original state on hover exit */
.product-image-container:not(:hover) .product-image-scaled {
    transform: scaleX(1) scaleY(1) translateY(0%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: none;
}

.product-card-inner {
    background-color: transparent;
    border-radius: 0.5rem;
    border: 1px solid #2E2E2E;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Browser extension divider style */
.extensions-divider {
    position: relative;
}

.extensions-divider::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 10%,
        rgba(168, 85, 247, 0.4) 50%,
        rgba(59, 130, 246, 0.3) 90%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    animation: divider-glow 3s ease-in-out infinite alternate;
}

@keyframes divider-glow {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
    }
}

/* Mobile hide divider */
@media (max-width: 768px) {
    .extensions-divider::before {
        display: none;
    }
}

.product-card-inner:hover {
    background-color: #262626;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.studio-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.extension-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Slogan opacity animation effect */
.handwritten-slogan {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #E0E0E0;
    transform: rotate(-2deg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.0001;
}

.handwritten-slogan.typing-complete {
    animation: gentle-flicker 4s ease-in-out 1s infinite;
}

@keyframes gentle-flicker {
    0%, 90%, 100% {
        opacity: 1;
    }
    45%, 55% {
        opacity: 0.92;
    }
}

@media (min-width: 640px) {
    .handwritten-slogan {
        font-size: 3.2rem;
    }
}

.header-icon-grid {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    opacity: 0.1;
    transform: rotate(-15deg) translate(20px, -20px);
    pointer-events: none;
}

.header-icon-grid span {
    font-size: 2rem;
    color: #4B5563;
}

/* Contact module texture background - skeuomorphic engraving effect */
.contact-with-texture {
    position: relative;
    min-height: 240px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
    border: 1px solid #2a2a2a;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 -1px 2px rgba(255, 255, 255, 0.03),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-with-texture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Main engraving lines */
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.02) 47%, rgba(255, 255, 255, 0.02) 49%, transparent 51%),
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.015) 47%, rgba(255, 255, 255, 0.015) 49%, transparent 51%),
        /* Fine texture */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.008) 1px,
            rgba(255, 255, 255, 0.008) 2px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.1) 3px,
            rgba(0, 0, 0, 0.1) 4px
        );
    background-size: 
        40px 40px,
        40px 40px,
        4px 4px,
        8px 8px;
    opacity: 0.6;
    border-radius: 0.75rem;
    z-index: 0;
}

.contact-with-texture::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: 
        /* Central embossed effect */
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        /* Decorative geometric patterns */
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 45%, rgba(59, 130, 246, 0.05) 55%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(168, 85, 247, 0.03) 45%, rgba(168, 85, 247, 0.03) 55%, transparent 70%);
    background-size: 
        100% 100%,
        20px 20px,
        24px 24px;
    border-radius: 0.5rem;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.02),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    animation: contact-texture-glow 12s infinite ease-in-out;
    z-index: 0;
}

@keyframes contact-texture-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Ensure Contact content is above texture */
.contact-with-texture .bento-box-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

/* Enhanced mobile texture effects */
@media (max-width: 768px) {
    .contact-with-texture {
        min-height: auto;
    }
    
    .contact-with-texture .bento-box-content {
        min-height: auto;
    }
    
    .contact-with-texture::before {
        background-size: 
            30px 30px,
            30px 30px,
            3px 3px,
            6px 6px;
    }
}

/* Development grid placeholder */
.stash-placeholder {
    position: relative;
    overflow: hidden;
}

.development-grid-placeholder {
    width: 100%;
    height: 100%;
    background-image: 
        /* Main grid lines */
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        /* Diagonal grid */
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 
        20px 20px,
        20px 20px,
        15px 15px,
        15px 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: grid-shimmer 3s ease-in-out infinite alternate;
}

.development-grid-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: grid-pulse 2s ease-in-out infinite;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes grid-shimmer {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Apple-style default app icon */
.apple-default-app-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.apple-default-app-icon::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: icon-shine 3s ease-in-out infinite;
}

.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 14px;
    height: 14px;
    z-index: 1;
    position: relative;
}

.grid-dot {
    width: 3px;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

.grid-dot:nth-child(1) { animation-delay: 0s; }
.grid-dot:nth-child(2) { animation-delay: 0.1s; }
.grid-dot:nth-child(3) { animation-delay: 0.2s; }
.grid-dot:nth-child(4) { animation-delay: 0.3s; }
.grid-dot:nth-child(5) { animation-delay: 0.4s; }
.grid-dot:nth-child(6) { animation-delay: 0.5s; }
.grid-dot:nth-child(7) { animation-delay: 0.6s; }
.grid-dot:nth-child(8) { animation-delay: 0.7s; }
.grid-dot:nth-child(9) { animation-delay: 0.8s; }

@keyframes icon-shine {
    0%, 100% {
        transform: translateX(-200%) translateY(-200%) rotate(45deg);
    }
    50% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
    }
}

@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Font loading indicator styles */
.font-loading-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #E5E7EB;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.font-loading-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.font-loading-indicator .loading-dots {
    display: inline-block;
    margin-left: 4px;
}

.font-loading-indicator .loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Font ready state for slogan */
.handwritten-slogan.font-ready {
    opacity: 0.0001;
    transition: none;
}

/* Mobile font loading indicator adjustments */
@media (max-width: 768px) {
    .font-loading-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 6px 12px;
    }
} 