/* ================= ROOT VARIABLES ================= */
:root {
    --bg-primary: #212121;
    --bg-secondary: #323232;
    --accent-color: #14FFEC;
    --text-primary: #ffffff;
    --text-secondary: #9a9a9a;
}

/* ================= LIGHT THEME ================= */
:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f2;
    --accent-color: #2a9d8f;
    --text-primary: #121212;
    --text-secondary: #555555;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

/* ================= NAVBAR ================= */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(18,18,18,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

:root[data-theme="light"] .nav-container {
    background: rgba(255,255,255,0.95);
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--accent-color);
}

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

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

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

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ================= SECTIONS ================= */
section {
    min-height: 100vh;
    padding: 100px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

:root[data-theme="light"] section h2 {
    color: #121212;
}

/* ================= HOME ================= */
.home-section {
    display: flex;
    align-items: center;
}

.home-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.main-title {
    font-size: 4rem;
}

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

.typed-text {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    object-fit: cover;
}

/* ================= ABOUT / SKILLS ================= */
.about-skills-section {
    background: var(--bg-secondary);
    text-align: center;
}

:root[data-theme="light"] .about-skills-section {
    background: #f7f7f7;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
}

.about-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Grid */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.skill-card {
    background: #1b1b1b;
    border-radius: 10px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s;
}

:root[data-theme="light"] .skill-card {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.skill-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-card span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.skill-card:hover {
    transform: translateY(-6px);
}

/* ================= PROJECTS ================= */
.projects-section {
    background: var(--bg-primary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

:root[data-theme="light"] .project-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
}

.project-image {
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--bg-primary);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

/* ================= CONTACT ================= */
.contact-section {
    background: var(--bg-secondary);
}

:root[data-theme="light"] .contact-section {
    background: #f7f7f7;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(100,255,218,.15);
    background: rgba(30,30,30,.85);
    color: var(--text-primary);
}

:root[data-theme="light"] #contact-form input,
:root[data-theme="light"] #contact-form textarea {
    background: #ffffff;
    color: #121212;
    border: 1px solid rgba(0,0,0,0.15);
}

#contact-form textarea {
    resize: none;
    height: 150px;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* ================= FOOTER ================= */
.footer {
    background: #111;
    padding: 3rem 0 2rem;
}

:root[data-theme="light"] .footer {
    background: #f1f1f1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
}

.footer-socials a {
    font-size: 1.4rem;
    margin: 0 0.5rem;
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}

/* ================= SCROLL TOP ================= */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    opacity: 0;
}

.scroll-top.visible {
    opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .skills-wrapper {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-wrapper {
        grid-template-columns: repeat(2,1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skills-wrapper {
        grid-template-columns: repeat(2,1fr);
    }

    .main-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
