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

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #059669;
    --primary-light: #34d399;
    --secondary: #10b981;
    --text: #10201a;
    --muted: #4b6357;
    --bg: #c3ecd6;
    --section: #aee3c4;
    --card: #ddf5e8;
    --border: rgba(5, 150, 105, 0.22);
    --shadow: 0 12px 35px rgba(6, 78, 59, 0.12);
    --header: rgba(195, 236, 214, 0.94);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

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

button,
input,
textarea {
    font-family: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1400px, 94%);
    min-height: 72px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}

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

#themeBtn {
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
    font-size: 1.05rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

#themeBtn:hover {
    transform: translateY(-2px);
}

.hero {
    min-height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.18), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.12), transparent 32%),
        var(--bg);
}

.hero-content {
    width: min(1100px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: left;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.profile-image {
    margin-bottom: 0;
    flex-shrink: 0;
}

.profile-placeholder {
    width: 380px;
    height: 380px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.22);
    overflow: hidden;
    border: 4px solid var(--primary-light);
}

.profile-placeholder img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: 50%;
    display: block;
}

.hero-intro {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
}

.hero-description {
    max-width: 700px;
    margin: 18px 0 28px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-buttons,
.project-buttons {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.project-buttons {
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.18);
}

.primary-btn:hover {
    background: #047857;
}

.secondary-btn {
    background: var(--card);
    color: var(--primary);
    border-color: var(--border);
}

.section {
    width: min(1180px, 92%);
    margin: auto;
    padding: 90px 0;
    scroll-margin-top: 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading p {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.2;
}

.about-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 35px;
    align-items: stretch;
}

.about-text {
    padding: 34px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-card {
    min-height: 135px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.13);
}

.about-card > span {
    font-size: 1.6rem;
}

.about-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-card p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.about-details .about-card:nth-child(3) {
    gap: 8px;
}

.about-details .about-card:nth-child(3) p {
    margin-left: -4px;
}


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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 28px 22px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    border-color: var(--primary-light);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-card h3 {
    font-size: 1.05rem;
    margin-bottom: 7px;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}


/* =========================
   OVERVIEW
   ========================= */

.overview-section {
    padding-top: 20px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.overview-card {
    padding: 28px 18px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.overview-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.overview-number {
    display: block;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.overview-card h3 {
    margin-top: 8px;
    font-size: 0.98rem;
}

.overview-card p {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 4px;
}


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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    padding: 30px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
    border-color: var(--primary-light);
}

.project-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex: 1;
    line-height: 1.65;
}

.project-buttons {
    margin-top: auto;
    gap: 10px;
}

.project-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 9px 13px;
    min-height: 38px;
    border-radius: 9px;
    background: var(--section);
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    background: rgba(5, 150, 105, 0.08);
    border-color: var(--primary-light);
}


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

.experience-container {
    display: grid;
    gap: 18px;
}

.experience-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.experience-card h3 {
    font-size: 1.15rem;
}

.experience-card h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 3px;
}

.experience-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.experience-status {
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.completed {
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ongoing {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
    font-weight: 800;
    letter-spacing: 0.02em;
}


/* =========================
   CERTIFICATES
   ========================= */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.certificate-card {
    padding: 32px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 230px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    border-color: var(--primary-light);
}

.certificate-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--section);
    border: 1px solid var(--border);
}

.certificate-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.certificate-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 520px;
}

.certificate-card span {
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}


/* =========================
   RESUME
   ========================= */

.resume-container {
    display: flex;
    justify-content: center;
}

.resume-content {
    width: min(700px, 100%);
    padding: 45px 30px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.resume-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.resume-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.resume-content p {
    color: var(--muted);
    margin-bottom: 22px;
}


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

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.contact-info,
.contact-form {
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.contact-info > p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.contact-details {
    display: grid;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--section);
    transition: transform 0.25s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item > span {
    font-size: 1.4rem;
}

.contact-item h4 {
    font-size: 0.9rem;
}

.contact-item p {
    color: var(--muted);
    font-size: 0.78rem;
    word-break: break-word;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--section);
    color: var(--text);
    outline: none;
    resize: vertical;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.contact-form .btn {
    cursor: pointer;
    border: none;
}


/* =========================
   CAREER GOAL
   ========================= */

.goal-section {
    width: min(1000px, 92%);
    margin: 20px auto 90px;
    padding: 45px 30px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(5, 150, 105, 0.10),
        rgba(16, 185, 129, 0.07)
    );
    border: 1px solid var(--border);
    border-radius: 22px;
}

.goal-icon {
    font-size: 2.4rem;
}

.goal-content h2 {
    margin: 8px 0;
    font-size: 2rem;
}

.goal-content p {
    max-width: 700px;
    margin: auto;
    color: var(--muted);
}


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

footer {
    padding: 30px 20px;
    text-align: center;
    background: #aee3c4;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}


/* =========================
   DARK MODE
   ========================= */

.dark-mode {
    --primary: #22c55e;
    --primary-light: #4ade80;
    --secondary: #16a34a;
    --text: #eafff2;
    --muted: #b7d9c4;
    --bg: #1c3a2c;
    --section: #244938;
    --card: #2d5744;
    --border: rgba(74, 222, 128, 0.22);
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    --header: rgba(20, 45, 34, 0.94);
    background: #1c3a2c;
    color: #ecfdf5;
}

.dark-mode .hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.20), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.12), transparent 32%),
        #1c3a2c;
}

.dark-mode .profile-placeholder {
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.22);
}

.dark-mode .primary-btn:hover {
    background: #047857;
}

.dark-mode .project-btn:hover {
    background: rgba(5, 150, 105, 0.08);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.dark-mode .skill-card,
.dark-mode .about-card,
.dark-mode .overview-card,
.dark-mode .project-card,
.dark-mode .experience-card,
.dark-mode .certificate-card,
.dark-mode .resume-content,
.dark-mode .contact-info,
.dark-mode .contact-form {
    background: #2d5744;
}

.dark-mode .project-btn,
.dark-mode .contact-item,
.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .certificate-icon {
    background: #386a53;
}

.dark-mode .completed {
    background: var(--primary);
    color: #ffffff;
}

.dark-mode .ongoing {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.dark-mode footer {
    background: #142a1f;
}

.dark-mode .goal-section {
    background: linear-gradient(
        135deg,
        rgba(5, 150, 105, 0.18),
        rgba(16, 185, 129, 0.10)
    );
}


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

@media (max-width: 1100px) {
    .navbar {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-bottom: 15px;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .logo {
        grid-column: 1;
    }

    #themeBtn {
        grid-column: 2;
        grid-row: 1;
    }

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

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

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

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        min-width: 0;
    }

    .hero h1,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .about-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        width: 92%;
        min-height: 64px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-links {
        gap: 8px 12px;
    }

    .nav-links a {
        font-size: 0.76rem;
    }

    .hero {
        min-height: auto;
        padding: 75px 18px;
    }

    .profile-placeholder {
        width: 220px;
        height: 220px;
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        width: 92%;
        padding: 65px 0;
    }

    .about-details,
    .skills-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .about-text,
    .about-card,
    .skill-card,
    .overview-card,
    .project-card,
    .experience-card,
    .certificate-card,
    .resume-content,
    .contact-info,
    .contact-form {
        padding: 24px 20px;
    }

    .experience-header {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons,
    .project-buttons {
        flex-direction: column;
    }

    .btn,
    .project-btn {
        width: 100%;
    }

    .goal-section {
        margin-bottom: 60px;
    }
}


/* =========================
   SCROLL FIXES
   ========================= */

#overview {
    scroll-margin-top: 110px;
}

@media (max-width: 1100px) {
    #home,
    #about,
    #skills,
    #overview,
    #projects,
    #experience,
    #certificates,
    #resume,
    #contact {
        scroll-margin-top: 100px;
    }
}


/* =========================
   Authentication Section
========================= */

.auth-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.auth-card {
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.auth-card h3 {
    margin-bottom: 20px;
}

.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card input {
    width: 100%;
    box-sizing: border-box;
}

.auth-message {
    margin-top: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
}