:root {
    --deep-forest: #16322b;
    --lake-blue: #328a8a;
    --moss-green: #49a04a;
    --sunlight: #fdfcf0;
    --text-dark: #1a2e2a;
    /* Semi-transparent white for glass effect */
    --card-glass: rgba(255, 255, 255, 0.88);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    
    /* --- FIXED BACKGROUND LOGIC --- */
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), 
                      url('../images/background.png');
    background-attachment: fixed; /* Keeps image from scrolling */
    background-size: cover;       /* Ensures it fills the screen */
    background-position: center;  /* Centers the artwork */
    background-repeat: no-repeat;
}

/* Hero Section */


.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent; /* Let the body background show through */
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;    /* Vertical center */
    justify-content: center; /* Horizontal center */
    padding: 2rem;
    text-align: center;
}

.hero-card {
    /* The "Transparent but Blurred" effect */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Shape and Border */
    padding: 3.5rem 2rem;
    border-radius: 2.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Sizing */
    max-width: 650px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    
    /* Animation for a soft entrance */
    animation: cardFadeIn 1.2s ease-out;
}

.hero-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-card p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(5px);
    background: rgba(22, 50, 43, 0.2);
}

.logo, .nav-links a {
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.hero-content {
    text-align: center;
    margin-bottom: 25vh;
    padding: 0 1rem;
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--lake-blue);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    background: var(--moss-green);
    transform: translateY(-3px);
}

/* Content Sections */
.section {
    padding: 8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glassmorphism for readability */
.card, .project-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card {
    max-width: 750px;
    padding: 3.5rem;
    border-radius: 2rem;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: white; /* Contrast against the dark forest background */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.project-card {
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.footer {
    padding: 4rem;
    text-align: center;
    background: rgba(22, 50, 43, 0.9);
    color: var(--sunlight);
}