:root {
    --bg-dark: #0f172a;
    /* Deep Slate Blue */
    --bg-secondary: #1e293b;
    /* Lighter Slate */
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --glass-bg: rgba(30, 41, 59, 0.4);
    /* Blue-tinted glass */
    --glass-border: rgba(148, 163, 184, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.37);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background & Overlay - Deep Fantasy */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 85% 90%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, #0f172a 100%),
        url('assets/hero-bg.png') no-repeat center top/cover;
    z-index: -1;
    opacity: 1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.cta-button {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.cta-button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Grid Section */
.projects-section {
    padding: 4rem 5%;
}

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

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

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-image {
    width: 100%;
    height: 220px;
    /* Slightly taller */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    display: block;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the container */
    padding: 0;
    /* Remove padding */
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-list.compact {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list.compact li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-list.compact li span {
    color: var(--primary);
    font-weight: bold;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.card-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

.card-links a:hover {
    color: var(--primary);
}

/* Deployment Section */
.deploy-section {
    padding: 4rem 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

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

.sub-text {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.tag.recommended {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spec-item .value {
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--glass-border);
    background: #020617;
    /* Slate 950 */
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
    }
}