@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0B1120;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --primary: #38bdf8;
    --secondary: #94a3b8;
    --accent: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow: 0 0 40px rgba(56, 189, 248, 0.15);
    --studio-font: 'Plus Jakarta Sans', sans-serif;
}

.studio-logo {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#logo-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 2.5rem;
    box-shadow: none;
    border: none;
    animation: fadeIn 1s ease-out forwards;
    display: inline-block;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    /* Animated Gradient Background */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations Keyframes */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(129, 140, 248, 0.4);
        border-color: rgba(129, 140, 248, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.3);
    }
}

/* Base Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
}

/* Staggered Animations for Hero Elements */
.hero>* {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin-bottom: 2rem;

    /* Animation Composition */
    animation:
        fadeIn 0.8s ease-out forwards,
        float 8s ease-in-out infinite,
        glowPulse 4s ease-in-out infinite;
    animation-delay: 0s, 0.8s, 0s;
    /* Start float after fadeIn */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    /* Gradient Text */
    background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    animation-delay: 0.2s;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation-delay: 0.3s;
}

.summary {
    max-width: 700px;
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    animation-delay: 0.4s;
}

.studio-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    animation-delay: 0.1s;
}

.owner-title {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    animation-delay: 0.25s;
}

/* Action Buttons */
.cta-group {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation-delay: 0.5s;
}

.btn {
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Button Shine Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* Showcase Section */
#showcase {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.showcase-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    position: relative;
    overflow: hidden;

    /* Subtle entrance for cards handled by parent stagger if possible, 
       but for simplicity we fade in the whole section */
}

/* Card Hover Effects */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    background: var(--bg-card-hover);
    box-shadow:
        0 20px 40px -20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(56, 189, 248, 0.1);
    /* Inner glow */
}

.project-category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    font-weight: 700;
    opacity: 0.9;
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.project-desc {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.project-card:hover .tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-color: rgba(56, 189, 248, 0.2);
}

/* Admin Trigger */
.admin-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0.3;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: grayscale(100%);
    z-index: 100;
}

.admin-trigger:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: rotate(360deg) scale(1.2);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}