:root {
    --bg-color: #ffefee;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-black: #000000;
    --accent-white: #ffffff;
    --border-color: #fbcfe8; /* Pink-200 */
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-border: #fce7f3; /* Pink-100 */
    --shadow-color: rgba(251, 207, 232, 0.5);
    
    --font-sans: 'YoutubeSansRegular,Roboto', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: linear-gradient(to bottom, #fce7f3, #fdf2f8, transparent); /* Pink-100 to Pink-50 */
    opacity: 0.8;
    filter: blur(60px);
}

.blob-2 {
    top: 5rem;
    right: 0;
    width: 500px;
    height: 500px;
    background-color: #f3e8ff; /* Purple-100 */
    filter: blur(100px);
}

.blob-3 {
    top: 10rem;
    left: 0;
    width: 400px;
    height: 400px;
    background-color: #ffe4e6; /* Rose-100 */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 239, 238, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 4rem;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
    padding: 0;
    position: relative;
    top: 6px; /* Visually center with the flask body, ignoring the top sparkles */
}

.logo-subtitle {
    font-weight: 300;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Hero Section */
#hero {
    padding-top: 8rem;
    padding-bottom: 2rem;
    text-align: center;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

h1 span {
    color: var(--text-primary);
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--text-primary); /* Gray-900/Black */
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #1f2937; /* Gray-800 */
}

/* Projects Section */
#projects {
    padding: 2rem 1.5rem 6rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 64rem; /* 1024px */
}

@media (min-width: 768px) {
    .project-card {
        flex-direction: row;
        align-items: stretch;
    }
    
    /* Alternate image position for every even card */
    .project-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 500px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .card-image {
        width: 40%;
        max-width: 380px;
        max-height: none;
        aspect-ratio: auto;
        flex-shrink: 0;
    }
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

@media (min-width: 768px) {
    .card-content {
        padding: 3rem;
    }
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-group h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-box {
    font-size: 0.875rem;
    color: var(--text-secondary); /* Gray-700 */
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
}

.detail-group ul {
    list-style: none;
}

.detail-group li {
    font-size: 0.875rem;
    color: var(--text-secondary); /* Gray-600 */
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
