/* 1. DESIGN SYSTEM VARIABLES (:root)
   Defining a centralized color palette to ensure visual consistency and 
   ease of maintenance throughout the project.
*/
:root {
    --bg-color: #0f172a;       /* Deep Navy Blue - modern app standard */
    --card-bg: #1e293b;        /* Slate Blue - provides depth for cards */
    --text-main: #f8fafc;      /* Off-white - improves readability and reduces eye strain */
    --accent-color: #38bdf8;   /* Sky Blue - technical and clear highlight color */
    --font-main: 'Inter', sans-serif;
}

/* 2. GLOBAL RESET & BASE RULES
   Removing default browser margins and paddings to ensure a 
   consistent layout across different browsers (Chrome, Firefox, Safari).
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Includes padding/border in the element's total width/height */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}

/* --- Navigation Styling --- */
header {
    background-color: rgba(15, 23, 42, 0.9); /* Azul escuro semi-transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco chique */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 10%;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem; /* Espaço entre os links */
    list-style: none; /* Remove as bolinhas da lista */
}

nav ul li a {
    text-decoration: none; /* REMOVE O SUBLINHADO */
    color: #94a3b8; /* Cor cinza elegante */
    font-weight: 500;
    transition: color 0.3s ease; /* Transição suave na cor */
    font-size: 0.95rem;
}

/* Efeito ao passar o mouse */
nav ul li a:hover {
    color: var(--accent-color); /* Muda para a cor de destaque (azul claro) */
}

/* Estilo para o link do GitHub se quiser dar um destaque extra */
nav ul li a[href*="github"] {
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* 3. HERO SECTION (Main Landing Area)
   Utilizing Flexbox for perfect element alignment. This section 
   functions as the user's first impression of the professional profile.
*/
.hero {
    height: 100vh; /* Viewport Height - occupies 100% of the screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    /* Soft radial gradient for a premium aesthetic */
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h1 span {
    color: var(--accent-color);
}

/* 4. INTERACTIVE ELEMENTS (Call to Action)
   Adding smooth transitions and hover effects to enhance User Experience (UX).
*/
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #0f172a;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease; /* Smooth hover transition */
}

.btn:hover {
    transform: translateY(-5px); /* Gentle lifting effect on hover */
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3); /* Soft glow effect */
}

/* 5. PROJECTS SECTION
   Standardizing the display of portfolio items for high readability.
*/
#projects {
    padding: 80px 10%;
    text-align: center;
}

#projects h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    margin: 0 auto; /* Centers the card */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 25px;
    color: #cbd5e1; /* Slightly lighter gray for the description */
}