/* Basic Reset & Body Styles */
:root {
    --primary-color: #00bcd4; /* Cyan */
    --secondary-color: #212121; /* Dark Gray */
    --accent-color: #ffeb3b; /* Yellow */
    --text-color: #e0e0e0; /* Light Gray */
    --bg-color: #1a1a1a; /* Very Dark Gray */
    --card-bg: #2c2c2c;
    --border-color: #3a3a3a;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background: var(--secondary-color);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
}

header h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

header .tagline {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

header nav a:hover::after {
    width: 100%;
}

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-color);
    bottom: -10px;
    left: 25%;
}

section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 15px auto;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 80px 0;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 12px 25px;
    margin-top: 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

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

.project-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: left;
}

.project-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #fff;
}

/* Skills List */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px; /* Row and column gap */
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.skills-list li {
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.05rem;
}

.skills-list .skill-category {
    color: var(--accent-color);
    font-weight: 700;
    margin-right: 8px;
}

/* Contact Section */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-btn {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--primary-color);
}

.contact-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    header .tagline {
        font-size: 1rem;
    }
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    section {
        padding: 40px 0;
    }
    section h2 {
        font-size: 1.8rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .skills-list {
        flex-direction: column;
        align-items: center;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
