/* --- Global Reset & Variables --- */
:root {
    --primary-color: #00ffa2;
    --dark-color: #333;
    --light-color: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
}

/* --- Typography & Utilities --- */
h1, h2, h3 { margin-bottom: 15px; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
a { text-decoration: none; color: inherit; }
section { padding: 80px 20px; }
.bg-light { background-color: var(--light-color); }
.highlight { color: var(--primary-color); }

/* --- Navigation --- */
header {
    background: #fff;
    color: var(--dark-color);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links li {
    padding: 0 15px;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1778090887585-b27fae5b6f03?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: #fff;
}

.hero h1 { font-size: 4rem; }
.typing-text { font-size: 1.5rem; margin-bottom: 20px; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover { background: #0056b3; }

/* --- About Section --- */
#about {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

/* --- Projects Section (CSS Grid) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

/* --- Contact & Footer --- */
#contact { text-align: center; }
footer {
    text-align: center;
    padding: 20px;
    background: var(--dark-color);
    color: #fff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links { display: none; /* In a real project, you'd add a hamburger menu here */ }
    header { justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
}