:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;

    --background-color: #f9fafb;
    --dark-color: #111827;
    --text-color: #374151;

    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --footer-bg: #111827;

    --max-width: 1100px;
    --border-radius: 10px;
}

/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: 0.3s ease;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

/* ================= HEADER ================= */

.header {
    background: var(--nav-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ================= HERO ================= */

.hero {
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-img {
    width: 250px;
    border-radius: 50%;
}

/* ================= SECTIONS ================= */

.section-title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.projects,
.contact {
    padding: 4rem 0;
}

/* ================= PROJECTS ================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.tech-stack {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* ================= CONTACT ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
}

/* ================= BUTTON ================= */

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

/* ================= FOOTER ================= */

.footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* ================= DARK MODE ================= */

.dark-mode {
    --background-color: #111827;
    --text-color: #f9fafb;
    --dark-color: #f9fafb;

    --card-bg: #1f2937;
    --nav-bg: #1f2937;
    --footer-bg: #000000;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--nav-bg);
        width: 200px;
        transform: translateX(100%);
        transition: 0.3s ease;
    }

    nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        padding: 1rem;
    }
}
.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background: #1f2937;
    color: #f9fafb;
    border: 1px solid #374151;
}

.dark-mode .contact-form input::placeholder,
.dark-mode .contact-form textarea::placeholder {
    color: #9ca3af;
}
.contact-form input,
.contact-form textarea {
    transition: 0.3s ease;
}
.btn-secondary {
    display: inline-block;
    margin-left: 1rem;
    background: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}
