:root {
    --primary-color: #6a0597; /* A deep, rich purple */
    --secondary-color: #f7a61d; /* A vibrant orange */
    --accent-color: #3fe27e; /* A lively green */
    --background-color: #000000; /* Dark background */
    --text-color: #e6e6e6; /* Light gray for text */
    --card-background: #1a1a1a;
    --card-hover-border: 2px solid var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- General Styling --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--text-color);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--background-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-background);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
    flex-wrap: wrap;
    text-align: center;
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.tagline {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-top: 1rem;
    text-align: justify;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(106, 5, 151, 0.5);
    transition: transform 0.5s ease;
}

.profile-photo:hover {
    transform: scale(1.05) rotate(5deg);
}

/* --- About Section --- */
.about-section {
    background-color: var(--card-background);
}

.about-section p {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    text-align: justify;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-info p {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-item {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--card-background);
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #000000;
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    background-color: var(--background-color);
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--card-background);
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content, .hero-image-container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .project-card img {
        height: auto;
    }

    .contact-form {
        padding: 0 1rem;
    }
}

/* Hamburger styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
        width: 30px;
        height: 25px;
        justify-content: space-between;
        margin-left: 1rem;
    }
    .nav-toggle span {
        display: block;
        height: 4px;
        background: var(--secondary-color);
        border-radius: 2px;
        transition: 0.3s;
    }
    
    /* Responsive nav */
    @media (max-width: 768px) {
        nav ul {
            position: absolute;
            top: 58px;
            right: 0;
            background: var(--background-color);
            flex-direction: column;
            height: 700px;
            min-width: 100px;  
            width: 320px;
            display: none;
            box-shadow: 0 8px 16px rgba(0,0,0,0.3);
            border-radius: 0 0 10px 10px;
            z-index: 1001;
            padding: 1rem 0;  
        }
        nav ul li {
            margin: 1.5rem 0;
            text-align: left;
            margin-left: 2.5rem;
            margin-top: 1.0rem;
            text-shadow: #ffffff;
            font-size: 1.3rem;
            column-gap: 0.3rem;
            font-weight: 600;
        }
        nav ul.active {
            display: flex;
        }
        .nav-toggle {
            display: flex;
        }
    }

