/* Portfolio V2 - Bento Box Layout */

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

body {
    font-family: 'Outfit', sans-serif;
    background: #f5f5f0;
    min-height: 100vh;
    color: #1a1a1a;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background gradient glows */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 600px 400px at 10% 20%, rgba(134, 239, 172, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 500px 350px at 85% 80%, rgba(253, 224, 71, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(251, 207, 232, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle grain texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    margin-bottom: 3.5rem;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    max-width: 400px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Bento Grid */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.25rem;
    position: relative;
}

/* Card Base Styles */
.card {
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Circle effect in corner */
.card::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.card:hover::before {
    transform: scale(1.5);
    opacity: 0.3;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-label {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.card-techniques .card-label {
    font-size: 4rem;
}

.card-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.15;
    position: absolute;
    bottom: 0.75rem;
    right: 1.25rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .card-number {
    opacity: 0.25;
    transform: scale(1.05);
}

/* Card Colors */
.card-techniques {
    background: linear-gradient(135deg, #a7f3d0 0%, #86efac 100%);
    grid-column: span 2;
    grid-row: span 2;
}

.card-techniques .card-number {
    font-size: 5.5rem;
}

.card-techniques::before {
    width: 220px;
    height: 220px;
    bottom: -70px;
    right: -70px;
}

.card-art {
    background: linear-gradient(135deg, #fecaca 0%, #fda4af 100%);
    grid-column: span 2;
}

.card-films {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
}

.card-about {
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
}

/* Footer */
footer {
    margin-top: 2rem;
}

.social {
    display: flex;
    gap: 1.5rem;
}

.social a {
    color: #666;
    font-size: 1.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social a:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.875rem;
    color: #999;
}

/* Decorative Floating Circles */
.bento::before,
.bento::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.bento::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -50px;
}

.bento::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.15) 0%, transparent 70%);
    bottom: -50px;
    left: -30px;
}

/* Entrance Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero animations */
.hero h1 {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.subtitle {
    animation: fadeUp 0.8s ease-out 0.15s forwards;
    opacity: 0;
}

/* Bento card stagger */
.card {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

.card-techniques { animation-delay: 0.3s; }
.card-art { animation-delay: 0.4s; }
.card-films { animation-delay: 0.5s; }
.card-about { animation-delay: 0.55s; }

/* Footer animation */
footer {
    animation: fadeUp 0.6s ease-out 0.7s forwards;
    opacity: 0;
}

.social a {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.social a:nth-child(1) { animation-delay: 0.75s; }
.social a:nth-child(2) { animation-delay: 0.8s; }
.social a:nth-child(3) { animation-delay: 0.85s; }
.social a:nth-child(4) { animation-delay: 0.9s; }
.social a:nth-child(5) { animation-delay: 0.95s; }
.social a:nth-child(6) { animation-delay: 1s; }
.social a:nth-child(7) { animation-delay: 1.05s; }

/* Responsive Design */
@media (max-width: 900px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .card-techniques {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .card-techniques .card-number {
        font-size: 4rem;
    }
}

@media (max-width: 600px) {
    main {
        padding: 2rem 1.25rem;
    }
    
    .bento {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 160px);
    }
    
    .card-techniques {
        grid-column: span 2;
    }
    
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
