:root {
    --primary-color: #007BFF; /* A vibrant blue */
    --primary-hover-color: #0056b3;
    --dark-bg: #121212;
    --light-bg: #1E1E1E;
    --text-color: #EAEAEA;
    --text-secondary-color: #B3B3B3;
    --card-bg: #2A2A2A;
    --border-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
}

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

/* Navbar */
.navbar {
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('https://source.unsplash.com/random/1600x900/?programming,code') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Offset for navbar */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

/* General Section Styling */
main section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

main section:nth-child(even) {
    background-color: var(--light-bg);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Skills Section */
.skills {
    text-align: center;
}

.skills .container > p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.skills-list span {
    background-color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    font-weight: 500;
}

/* Experience Section */
.experience-content {
    max-width: 800px;
    margin: 0 auto;
}

.highlight-box {
    background-color: var(--card-bg);
    padding: 30px;
    margin-top: 30px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}

.highlight-box ul {
    list-style-type: '✓';
    padding-left: 20px;
}

.highlight-box li {
    padding-left: 10px;
    margin-bottom: 10px;
}

/* Why Me Section */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reason {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.reason i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* CTA Section */
.cta {
    text-align: center;
    background-color: var(--light-bg);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

footer h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-hover-color);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-secondary-color);
}

/* --- Content Pages (Privacy, Cookies) --- */
.subpage main {
    padding-top: 80px; /* Navbar height */
}

.content-page {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.content-page h2 {
    text-align: left;
}

.content-page h3 {
    color: var(--primary-color);
    margin-top: 30px;
}

.content-page ul {
    padding-left: 20px;
}

.content-page ul li {
    margin-bottom: 10px;
}

.cookie-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.cookie-table th, .cookie-table td {
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    text-align: left;
}

.cookie-table thead {
    background-color: var(--card-bg);
}

/* Privacy Section */
.privacy-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.privacy-section h3 {
    color: var(--primary-color);
    margin-top: 30px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: bottom 0.5s ease-in-out;
    text-align: center;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    margin: 0 0 15px 0;
    color: var(--text-secondary-color);
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-banner button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#cookie-accept:hover {
    background-color: var(--primary-hover-color);
}

#cookie-reject {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#cookie-reject:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 0;
        margin: 0;
        list-style: none;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    #mobile-menu-toggle {
        display: block;
    }

    #mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    #mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }
}

