/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8b4513;
    margin-bottom: 1.6rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc0 100%);
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.6rem;
}

.hero-logo {
    margin-bottom: 1.6rem;
}

.logo {
    height: 350px;
    width: auto;
    max-width: 500px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.hero-title {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #5d4e37;
    font-weight: 400;
    max-width: 70ch;
    margin: 0 auto 2.4rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background-color: #8b4513;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8b4513;
    border-bottom: 2px solid #8b4513;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mission Section */
.mission {
    padding: 4.8rem 0;
    background-color: #fefefe;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-content p {
    margin-bottom: 1.6rem;
    color: #4a4a4a;
}

/* Projects Section */
.projects {
    padding: 4.8rem 0;
    background: linear-gradient(135deg, #f8f4f0 0%, #ede7dc 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.4rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8dcc0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card.coming-soon {
    background: linear-gradient(135deg, #f9f7f4 0%, #f0ede7 100%);
    border-color: #d4c4a8;
}

.project-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.project-card.coming-soon .project-icon {
    background: linear-gradient(135deg, #6b5b73 0%, #8b7d8b 100%);
    box-shadow: 0 4px 15px rgba(107, 91, 115, 0.3);
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.mystery-icon {
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
}

.project-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.project-tagline {
    font-style: italic;
    text-align: center;
    color: #8b4513;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.project-description {
    flex-grow: 1;
    margin-bottom: 1.6rem;
    color: #4a4a4a;
}

.project-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-badge img {
    height: 56px;
    width: auto;
    display: block;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.learn-more-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #8b4513;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.learn-more-link:hover {
    background-color: #6b3410;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* About Section */
.about {
    padding: 4.8rem 0;
    background-color: #fefefe;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.2rem;
    align-items: center;
    margin-top: 2.4rem;
}

.about-photo {
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid #e8dcc0;
}

.about-text p {
    color: #4a4a4a;
    margin-bottom: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 4.8rem 0;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8dcc0 100%);
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 2.4rem;
    color: #4a4a4a;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 1.6rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .hero-content {
        padding: 0 1.2rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
    
    .project-card {
        padding: 1.6rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        text-align: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .logo {
        height: 280px;
    }
    
    .footer-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-content {
        padding: 0 0.8rem;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .logo {
        height: 220px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .project-card {
        border: 2px solid #2c3e50;
    }
    
    .learn-more-link {
        border-width: 3px;
    }
}
