/* --- Global Resets & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 0.6.8 */
}

html {
    scroll-behavior: smooth; /* 0.6.8 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --bg-primary: #14191e;
    --bg-secondary: #191f25;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #e21a74;
    --accent-hover: #e21a74;
    --card-border: #92114b;
}

body {
    background-color: var(--bg-secondary); /* 0.6.8 */
    color: var(--text-main); /* 0.6.8 */
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bg-primary)
}

.logo .highlight {
    color: var(--accent);
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--bg-secondary);
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
}


/* --- Hero Section --- */
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.hero-content h2 {
    text-align: center;
}

.hero-content .highlight {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none; /* 0.6.8 */
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* --- Projects Section --- */
.projects-section {
    background-color: var(--bg-primary);
    padding: 5rem 10%;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    border: 2px solid;
    border-color: var(--accent);
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none; /* 0.6.8 */
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-section {
    padding: 5rem 10%;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    color: var(--text-main);
    text-decoration: none; /* 0.6.8 */
    font-size: 1.1rem;
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--bg-primary);
    background-color: var(--text-main);
    border-color: var(--text-main);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) { /* 0.6.4 */
    .hero-section {
        padding: 0 5%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .projects-section, .contact-section {
        padding: 4rem 5%;
    }
}
