/* =====================
   RESET & VARIABLES
===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f0f0f;
    --bg-light: #1c1c1c;
    --accent: #4df2c9;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    color: #ffffff;
    line-height: 1.6;
}

/* =====================
   NAVBAR
===================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.navbar ul {
    display: flex;
    gap: 18px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent);
}

/* =====================
   HERO
===================== */

#hero {
    text-align: center;
    padding: 90px 20px 70px;
}

#hero img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 25px rgba(77, 242, 201, 0.5);
    margin-bottom: 18px;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#hero p {
    opacity: 0.85;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* =====================
   BUTTONS
===================== */

.btn {
    display: inline-block;
    padding: 12px 26px;
    margin: 6px;
    background: var(--accent);
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn:hover {
    background: #38d8b4;
}

/* =====================
   SECTIONS
===================== */

.section {
    padding: 70px 22px;
    text-align: center;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent);
}

/* =====================
   GLASS CARDS
===================== */

.skill-card,
.project-card,
.timeline-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s ease;
}

.skill-card:hover,
.project-card:hover,
.timeline-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
}

/* =====================
   GRIDS
===================== */

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.project-card a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.project-card p {
    margin-top: 8px;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* =====================
   TIMELINE
===================== */

.timeline {
    max-width: 720px;
    margin: auto;
    display: grid;
    gap: 25px;
}

.timeline-item {
    text-align: left;
    padding: 25px;
    border-left: 4px solid var(--accent);
}

/* =====================
   CONTACT FORM
===================== */

#contact-form {
    max-width: 420px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contact-form input,
#contact-form textarea {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: #ffffff;
    font-size: 1rem;
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form button {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

#contact-form button:hover {
    background: #39dcaf;
}

/* =====================
   FOOTER
===================== */

.site-footer {
    text-align: center;
    padding: 30px 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* =====================
   ANIMATIONS
===================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 600px) {
    #hero h1 {
        font-size: 2rem;
    }

    .navbar ul {
        gap: 12px;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.9rem;
    }
}

/* =====================
   GALLERY
===================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: auto;
}

.gallery-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    transition: 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.content-text {
    max-width: 760px;
    margin: auto;
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 18px;
}

