/* --- Variables & Global Reset --- */
:root {
    --color-primary: #00ADB5; /* Teal/Cyan */
    --color-secondary: #EEEEEE; /* Light Gray for text */
    --color-background: #222831; /* Dark Gray */
    --color-card: #393E46; /* Slightly lighter dark gray for cards */
    --font-mono: 'Roboto Mono', monospace;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-mono);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-background);
    scroll-behavior: smooth;
}

/* --- Utility Classes --- */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h1 { font-size: 2.5em; color: var(--color-primary); }
h2 { font-size: 2em; margin-bottom: 30px; border-bottom: 2px solid var(--color-card); padding-bottom: 10px;}
h3 { font-size: 1.5em; margin-bottom: 15px; }
a { color: var(--color-primary); text-decoration: none; }
p { margin-bottom: 15px; }
.subtitle { font-size: 1.2em; color: var(--color-secondary); }
.section-description { font-style: italic; color: #b0b0b0; }
strong { font-weight: 700; color: var(--color-primary); }

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.home-link {
  /* This makes the entire logo area clickable */
  display: block;
  text-decoration: none; /* Removes the underline from the link */
  color: inherit; /* Inherits the text color from its parent element */
}

.home-link:hover {
  /* Optional: Add a style change on hover for user feedback */
  opacity: 0.8;
}

.logo {
  /* Add your specific styling for the logo here */
  font-weight: bold;
  font-size: 1.5em;
  padding: 10px;
  text-align: center;
}


.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-link {
    margin-left: 20px;
    font-size: 0.9em;
    transition: color var(--transition-speed);
}

.nav-link:hover {
    color: var(--color-secondary); /* Inverse color on hover */
}

/* --- Hero Section --- */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

/* --- Buttons (with Tasteful Hover Effects) --- */
.button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    border-radius: 5px;
}

.primary-button {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.primary-button:hover {
    background-color: #00c7d0; /* A slightly brighter primary */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
}

.secondary-button {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.secondary-button:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.05); /* Subtle scale up */
}

.project-button, .social-button {
    padding: 8px 15px;
    font-size: 0.8em;
    margin-right: 10px;
    margin-top: 10px;
}

/* --- Skills Matrix --- */
.skills-container {
    display: flex;
    gap: 40px;
}

.skills-column {
    flex: 1;
    background-color: var(--color-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.skills-column:hover {
    transform: translateY(-5px); /* Lift on hover */
}

.skills-column ul {
    list-style: none;
}

.skills-column li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.skills-column li:last-child {
    border-bottom: none;
}

/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--color-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--color-primary);
    transition: box-shadow var(--transition-speed);
}

.project-card:hover {
    box-shadow: 0 8px 16px rgba(0, 173, 181, 0.2); /* Teal glow */
}

.project-links {
    margin-top: 15px;
}

/* --- Contact Section --- */
#contact {
    text-align: center;
}

.contact-button {
    margin-bottom: 30px;
}

.social-links .button {
    margin: 0 10px;
    background-color: var(--color-card);
    border: 2px solid var(--color-card);
    color: var(--color-primary);
}

.social-links .button:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid var(--color-card);
    font-size: 0.8em;
    color: #999;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }

    header {
        flex-direction: column;
    }

    nav a {
        margin: 5px 10px;
        display: inline-block;
    }

    .section {
        padding: 60px 5%;
    }

    .skills-container {
        flex-direction: column;
    }
}