/* 1. Define Variables: The "Sith Lord" Palette */
:root {
    --header-font: 'Exo 2', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* The Accents */
    --primary-color: #ff1744; /* High-voltage Red */
    
    /* The Void */
    --background-color: #0a0a0a; /* almost-black */
    
    /* The Card/Surface */
    --surface-color: #161b22; /* Dark blue-grey */
    
    /* The Text */
    --text-color: #e6edf3; /* Off-white */
}

/* 2. Basic Body Styling */
body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: var(--background-color); 
    color: var(--text-color); 
    line-height: 1.6;
}

/* 3. Header Styling */
header {
    background-color: #000000;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2); /* Red Glow */
}

header h1 {
    font-family: var(--header-font);
    font-size: 2.5em;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 4. Main Content Area */
main {
    max-width: 700px; 
    margin: 30px auto;
    padding: 30px;
    background-color: var(--surface-color); 
    border: 1px solid #30363d; 
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* 5. Typography */
h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* 6. LINK CARD STYLING (The Icon Fix) */

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between cards */
    margin-top: 20px;
}

.link-card {
    /* Flexbox: Creates a horizontal row for Icon + Text */
    display: flex; 
    align-items: center; /* Vertically centers the icon */
    gap: 20px; /* Space between icon and text */
    
    background-color: #0d1117; 
    border: 1px solid #30363d;
    border-left: 4px solid var(--primary-color); /* Red stripe on left */
    padding: 20px;
    border-radius: 4px;
    text-decoration: none; 
    transition: all 0.2s ease-in-out;
}

/* Style for the Icon Container */
.card-icon {
    font-size: 2rem; /* Size of the icon */
    color: var(--primary-color); /* Make it RED */
    min-width: 40px; 
    text-align: center;
}

/* Style for the Text Container */
.card-text {
    display: flex;
    flex-direction: column; /* Stacks Title and Desc vertically */
}

.link-title {
    font-family: var(--header-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-desc {
    font-size: 0.95rem;
    color: #8b949e; 
    margin-top: 5px;
}

/* Hover Effects: The "Sith Glow" */
.link-card:hover {
    background-color: #1c2128;
    border-color: var(--primary-color); /* Whole border turns red */
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.2);
    transform: translateX(5px); /* Slide right */
}

.link-card:hover .link-title {
    color: var(--primary-color); /* Title turns red */
}

/* 7. Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    opacity: 0.6;
    margin-top: auto;
}