/* global variables */

:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 215, 0, 0.15);
    --text-color: #ffffff;
    --text-secondary: #a0a5b5;
    --accent-color: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.3s;
}

/* base reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* particle background */

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* common styles */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 20px;
}

.accent-text {
    color: var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    text-align: center;
}

/* glass card */

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition:
        transform var(--transition-speed),
        border-color var(--transition-speed),
        box-shadow var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* buttons */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--accent-color);
    transform: scale(1.03);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #000;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* navbar start */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent-color);
    font-size: 1.7rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

/* navbar end */

/* hero start */

.hero {
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 100px 20px 40px;
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 18px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 18px;
    line-height: 1.5;
    white-space: nowrap;
}

.hero-content p {
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

/* hero end */

/* social links start */

.social-links {
    display: flex;
    gap: 15px;
}

.social-links.vertical {
    flex-direction: column;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* social links end */

/* profile image start */

.profile-card {
    width: fit-content;
    margin: 0 auto;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 320px;
    height: 320px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

/* profile image end */

/* about start */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.about-card h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* about end */

/* skills start */

.skills-heading {
    text-align: center;
}

.skills-label {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.skills-category {
    margin-top: 35px;
}

.skills-category-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.skills-category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.skills-category-title span {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    min-height: 235px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.skill-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 800;
    transition: all var(--transition-speed);
}

.html-icon {
    color: #ff5722;
}

.css-icon {
    color: #2965f1;
}

.js-icon {
    color: #ffd600;
    background: rgba(255, 215, 0, 0.08);
}

.responsive-icon {
    color: #8b5cf6;
    font-size: 1.8rem;
}

.bootstrap-icon {
    color: #8b5cf6;
    font-size: 1.8rem;
}

.react-icon {
    color: #61dafb;
    font-size: 2rem;
}

.git-icon {
    color: #f05032;
}

.node-icon {
    color: #68a063;
    font-size: 0.85rem;
}

.skill-content {
    flex: 1;
}

.skill-card h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 9px;
}

.skill-line {
    width: 42px;
    height: 3px;
    background: var(--accent-color);
    margin-bottom: 15px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.skill-card:hover .skill-icon {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.skills-bottom {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: start;
}

.skills-bottom .skills-category {
    margin-top: 35px;
}

.skills-bottom .skills-grid {
    grid-template-columns: repeat(3, 1fr);
}

.backend-category .skills-grid {
    grid-template-columns: 1fr;
}

.learning-box {
    max-width: 670px;
    margin: 25px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.learning-star {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.learning-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.learning-box p span {
    color: var(--accent-color);
}

/* skills end */

/* projects start */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.project-img-wrapper {
    width: 100%;
    height: 165px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
    border-radius: 12px;
    font-size: 0.75rem;
}

.project-links {
    display: flex;
    gap: 10px;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* projects end */

/* services start */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
}

/* services end */

/* contact start */

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-status {
    margin-top: 10px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.contact-info h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-item strong {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0;
    background: rgba(255, 255, 255, 0.08);
}

.connect-title {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 14px;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-speed);
}

.contact-socials a:hover {
    color: #000;
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.contact-message h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-message p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* contact end */

/* footer start */

.footer {
    padding: 40px 20px 22px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 215, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.footer-left h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 25px auto 0;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-bottom span {
    color: var(--accent-color);
}

/* footer end */

/* fade animation */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* responsive design */

/* tablet / small desktop */

@media (max-width: 1000px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-bottom {
        grid-template-columns: 1fr;
    }

    .skills-bottom .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .backend-category .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* tablet */

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: right 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns,
    .social-links {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-bottom .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-card {
        min-height: 210px;
    }

    .skills-category-title {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* MOBILE HERO UI IMPROVEMENT */

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;

        padding: 95px 18px 45px;

        display: flex;
        align-items: flex-start;
    }

    .hero-container {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 35px;

        align-items: center;
    }

    .hero-content {
        width: 100%;
        max-width: 600px;

        text-align: center;
    }

    .badge {
        font-size: 0.68rem;
        padding: 6px 12px;
        margin-bottom: 15px;

        letter-spacing: 0.8px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
        line-height: 1.2;

        margin-bottom: 12px;
    }

    .hero-content h2 {
        white-space: normal;
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.65;

        margin: 0 auto 22px;

        max-width: 480px;
    }

    .hero-btns {
        display: flex;
        flex-direction: row;

        justify-content: center;
        align-items: center;

        gap: 12px;

        margin-bottom: 0;
    }

    .hero-btns .btn {
        min-width: 145px;
        padding: 11px 16px;

        font-size: 0.85rem;

        text-align: center;
    }


    /* Profile */

    .hero-image {
        width: 100%;

        display: flex;
        justify-content: center;
    }

    .profile-card {
        width: 260px;
        max-width: 85vw;

        padding: 14px;

        margin: 0 auto;

        border-radius: 18px;
    }

    .profile-img {
        width: 220px;
        height: 220px;

        border-radius: 50%;

        object-fit: cover;
    }
}


/* SMALL MOBILE HERO */

@media (max-width: 480px) {

    .hero {
        padding: 90px 15px 40px;
    }

    .hero-container {
        gap: 30px;
    }

    .badge {
        font-size: 0.62rem;
        padding: 6px 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .hero-btns {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 220px;
    }

    .profile-card {
        width: 235px;
        padding: 12px;
    }

    .profile-img {
        width: 205px;
        height: 205px;
    }
}


/* ACCESSIBILITY / PERFORMANCE */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */

.whatsapp-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 18px;

    background: #25d366;
    color: #ffffff;

    border-radius: 50px;
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 700;

    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);

    transition: all 0.3s ease;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Mobile WhatsApp Button */
@media (max-width: 480px) {

    .whatsapp-btn {
        right: 15px;
        bottom: 15px;

        width: 52px;
        height: 52px;

        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-btn i {
        font-size: 1.6rem;
        line-height: 1;
    }
}