* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

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

/* Color palette variables (Warm & Friendly) */
:root{
    --color-primary: #00E6D1; /* teal/cyan accent */
    --color-secondary: #0B2545; /* deep navy */
    --color-accent: #FF6B6B; /* warm accent for CTA */
    --bg: #071127; /* dark background */
    --surface: #0B1730; /* surface cards */
    --text: #E6EEF3; /* light readable text */
    --muted: #99A3B2; /* muted text */
    --grad-start: #0B2545;
    --grad-end: #022B3A;
}

a {
    text-decoration: none;
    color: inherit;
}

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

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    background: rgba(11,23,48,0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.45);
    transition: background 0.3s;
}

#navbar.scrolled {
    background: rgba(11,23,48,0.95);
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

/* ================= HEADER ================= */

header {
    height: 100vh;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 60px; /* offset for fixed nav */
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeIn 1s ease forwards;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease forwards;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    position: relative;
}

.gradient-text {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: none;
}

.hero-sub {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 600;
}

.hero-role {
    margin: 18px 0 20px;
    font-size: 1.05rem;
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(90deg,var(--color-primary),var(--color-accent));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,230,209,0.12);
    transform: translateZ(0);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
}

/* subtle animated shapes behind hero */
header::before {
    content: '';
    position: absolute;
    left: -10%;
    top: -10%;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle at 30% 30%, rgba(0,230,209,0.06), transparent 20%), radial-gradient(circle at 70% 70%, rgba(0,102,153,0.04), transparent 25%);
    transform: rotate(12deg);
    pointer-events: none;
    z-index: 0;
}

header .hero-content { z-index: 1; }

.header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 1.8s ease forwards;
}

.btn {
    padding: 10px 25px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background: var(--color-accent);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 25px;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline-dark:hover {
    background: var(--color-primary);
    color: white;
}

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

section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: 1s;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-primary);
}

/* ================= ABOUT ================= */

.about-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.about-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.graduate-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

.about-text {
    max-width: 560px;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--muted);
}

/* ================= SKILLS ================= */

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill {
    background: var(--surface);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.skill span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--color-primary);
    z-index: -1;
    transition: 0.5s;
}

.skill:hover span {
    width: 100%;
}

/* ================= SERVICES ================= */

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.services-list li {
    background: var(--surface);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    text-align: center;
    font-weight: 500;
    transition: 0.3s;
}

.services-list li:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-5px);
}

/* ================= EXPERIENCE ================= */

.experience-list {
    list-style: none;
    padding: 0;
}

.experience-item {
    background: var(--surface);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
    margin-bottom: 15px;
}

.experience-item:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    margin-top: 0;
    color: #555;
    line-height: 1.6;
}

.experience-item:hover .experience-details {
    max-height: 200px;
    margin-top: 10px;
}

/* ================= PROJECTS ================= */

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

.project {
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

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

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

.project-content {
    padding: 15px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.project-content p {
    font-size: 0.95rem;
}

.project-content a {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-primary);
    font-weight: 600;
}

/* ================= HOBBIES ================= */

.hobbies-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 30px;
    margin-top: -20px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
}

.hobby-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 20px;
}

.hobby-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.hobby-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.hobby-icon {
    font-size: 2.5rem;
    padding: 20px 0 8px;
}

.hobby-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 15px 8px;
}

.hobby-card p {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 0 15px;
    line-height: 1.5;
}

/* ================= CERTIFICATIONS ================= */

.certs-section {
    padding-top: 40px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.cert-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.cert-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.cert-meta {
    padding: 14px;
}

.cert-meta h3 {
    margin-bottom: 6px;
    color: var(--color-primary);
}

.cert-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.cert-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Modal */
.cert-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    padding: 20px;
}

.cert-modal.open {
    display: flex;
}

.cert-modal-content {
    background: var(--surface);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    position: relative;
    text-align: center;
}

.cert-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cert-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.hobbies-note {
    text-align: center;
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 25px;
}

.hobbies-note code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

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

.contact {
    text-align: center;
}

.contact a {
    display: inline-block;
    width: 220px;
    text-align: center;
    margin: 10px;
    padding: 12px 0;
    background: var(--color-primary);
    color: white;
    border-radius: 25px;
    transition: 0.3s;
}

.contact a:hover {
    background: var(--color-accent);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-links .btn,
.contact-links .btn-outline-dark {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
}

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

footer {
    text-align: center;
    padding: 20px;
    background: var(--color-secondary);
    color: #fff;
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#availability {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#availability p {
    margin: 0;
    font-size: 1.05rem;
    text-align: center;
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--surface);
        box-shadow: 0 8px 30px rgba(0,0,0,0.6);
        padding: 10px 0;
    }

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

    .nav-links li a {
        display: block;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    header h1 {
        font-size: 2.2rem;
    }

    .about-inner {
        flex-direction: column;
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }
}