/* CSS Custom Properties */
:root {
    --primary-color: #1a83cc; /* Blue Grotto */
    --primary-dark: #00478f; /* Midnight Blue */
    --secondary-color: #cbebf5; /* Baby Blue */
    --accent-color: #65dff6; /* Tiffany Blue */
    --text-primary: #00478f; /* Midnight Blue for primary text */
    --text-secondary: #1a83cc; /* Blue Grotto for secondary text */
    --text-light: #65dff6; /* Tiffany Blue for light text */
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #cbebf5; /* Baby Blue for borders */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.site-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 0 3rem 0;
}

.projects-section {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Project Cards */
.project-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.project-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.arrow-icon {
    transition: var(--transition);
}

.project-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* Coming Soon Cards */
.project-card.coming-soon {
    opacity: 0.7;
    background: var(--surface);
}

.project-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--text-light);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    align-self: flex-start;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer p {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-icon {
        font-size: 2rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --surface: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-light: #64748b;
        --border: #334155;
    }
}

/* Focus styles for accessibility */
.project-link:focus,
.project-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
