/* Base Styles */
:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background: linear-gradient(to bottom right, var(--blue-50), var(--blue-100), white);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--blue-600);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.primary-button {
    background-color: var(--blue-600);
    color: white;
}

.primary-button:hover {
    background-color: var(--blue-700);
}

.secondary-button {
    background-color: transparent;
    border: 1px solid var(--gray-800);
    color: var(--gray-800);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Door Animation Styles */
#door-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-200));
    transition: opacity 1s ease;
}

#door-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.door-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
}

.door-wrapper {
    position: relative;
    width: 300px;
    height: 500px;
    perspective: 1000px;
    cursor: pointer;
}

.door {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.door-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.door-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

.door-handle {
    width: 20px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-right: 30px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.door-wrapper:hover .door-handle {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.door-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    pointer-events: none;
}

.door-instruction {
    position: absolute;
    bottom: 100px;
    color: var(--gray-800);
    font-size: 18px;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Main Content Styles */
#main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

#main-content.active {
    opacity: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--blue-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--blue-400);
    z-index: 1;
}

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

#circular-logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.nav {
    display: none;
}

.nav-link {
    margin-left: 2rem;
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--blue-300);
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-800);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 40;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 0.75rem 0;
    color: var(--gray-800);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Sections */
.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    padding-top: 5rem;
    padding-bottom: 8rem;
}

.about-section, .paintings-section {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--blue-600);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-600);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    border-radius: 0.75rem;
}

.project-video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-button.playing {
    opacity: 0;
}

.play-button:hover {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    color: var(--blue-400);
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.view-details-button:hover {
    color: var(--blue-300);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

/* Paintings Section */
.paintings-container {
    display: flex;
    justify-content: center;
}

.paintings-card {
    width: 100%;
    max-width: 48rem;
    padding: 3rem;
    border-radius: 0.75rem;
    text-align: center;
}

.card-button-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--blue-600);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.contact-value {
    font-weight: 500;
}

.social-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--blue-600);
    color: white;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-submit-button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--blue-100);
}

.copyright {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Glassmorphic Card */
.glassmorphic-card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Avatar Popup */
.avatar-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 30;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.avatar-popup.active {
    opacity: 1;
    transform: translateY(0);
}

.message-bubble {
    background-color: white;
    padding: 1rem;
    border-radius: 1rem 1rem 0 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 1rem;
    position: relative;
    max-width: 200px;
}

.message-arrow {
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 0 solid transparent;
}

.girl-avatar {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.girl-avatar:hover {
    transform: scale(1.1);
}

/* Moving Hand Animation */
.moving-hand {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 30;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.moving-hand.active {
    opacity: 1;
    transform: translateY(0);
}

.hand-svg {
    width: 80px;
    height: 80px;
    animation: wave 3s infinite;
    transform-origin: bottom right;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.hand-message {
    background-color: white;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hand-svg:hover + .hand-message {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Media Queries */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .menu-button {
        display: none;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .about-content {
        flex-direction: row;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
    }

    .door-wrapper {
        width: 250px;
        height: 400px;
    }
}