/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= THEME VARIABLES ================= */
:root {
    --bg: #ffffff;
    --text: #222222;
    --card: #ffffff;
    --border: #dddddd;
    --primary: #4a6cf7;

    /* Home gradient (Light) */
    --home-grad: linear-gradient(135deg, #e8f0ff, #d6e4ff);
}

body.dark-mode {
    --bg: #121212;
    --text: #f1f1f1;
    --card: #1e1e1e;
    --border: #333333;

    /* Home gradient (Dark) */
    --home-grad: linear-gradient(135deg, #1a1a1a, #262626);
}

/* ================= BASE ================= */
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.theme-btn {
    margin-left: 15px;
    border: 1px solid var(--border);
    background: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ================= HOME ================= */
.home-section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--home-grad);
    transition: background 0.4s ease;
}

.home-content {
    text-align: center;
    padding: 20px;
}

.profile-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--card);
}

.home-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary);
}

.home-content h2 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 15px;
}

.home-content p {
    max-width: 520px;
    margin: auto;
    font-size: 15px;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

/* Resume Button */
.resume-btn {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}

.resume-btn:hover {
    background: var(--text);
    color: var(--bg);
}

/* ================= SECTIONS ================= */
.about-section,
.skills-section,
.projects-section,
.contact-section {
    padding: 70px 10%;
}

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 35px;
}

/* ================= SKILLS ================= */
.skill {
    margin-bottom: 22px;
}

.skill span {
    font-size: 14px;
}

.progress {
    margin-top: 6px;
    background: #cccccc;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    background: var(--primary);
}

.html { width: 85%; }
.css { width: 80%; }
.js { width: 70%; }
.basics { width: 65%; }

/* ================= PROJECTS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
}

.project-card h3 {
    margin-bottom: 8px;
}

.project-card span {
    font-size: 13px;
    color: var(--primary);
}

/* ================= CONTACT ================= */
.contact-section form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact-section input,
.contact-section textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card);
    color: var(--text);
}

.contact-section textarea {
    resize: none;
    height: 120px;
}

.contact-section button {
    background: var(--primary);
    color: #ffffff;
    border: none;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 15px;
    background: var(--card);
    border-top: 1px solid var(--border);
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 10%;
        background: var(--bg);
        flex-direction: column;
        border: 1px solid var(--border);
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .home-content h1 {
        font-size: 28px;
    }
}
