

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ---------------- THEME VARIABLES ---------------- */
:root {
    --bg-main: radial-gradient(circle at top, #0f2027, #020b13);
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.25);
    --accent: #00eaff;
    --shadow: rgba(0, 0, 0, 0.6);
}

/* ---------------- LIGHT MODE ---------------- */
body.light {
    --bg-main: linear-gradient(
        135deg,
        #f4f7fb,
        #e8eef5
    );
    --text-color: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.85);
    --accent: #2563eb;
    --shadow: rgba(0, 0, 0, 0.12);
}

body.light .logo span {
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

body.light .btn-3d {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}


/* ---------------- APPLY VARIABLES ---------------- */
body {
    background: var(--bg-main);
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


/* ---------------- GLASS BASE ---------------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px var(--shadow);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}



/* ---------------- HEADER ---------------- */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
    text-shadow: var(--glow);
}

nav a {
    color: var(--text-color);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}


nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ---------------- HERO ---------------- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    padding: 60px;
    max-width: 650px;
}

.hero h2 span {
    color: var(--accent);
    text-shadow: var(--glow);
}

/* ---------------- 3D BUTTON ---------------- */
.btn-3d {
    margin-top: 25px;
    padding: 14px 35px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #00bcd4);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-3d:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px rgba(0,234,255,0.9);
}

/* ---------------- SECTIONS ---------------- */
.section {
    padding: 120px 10%;
    text-align: center;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

#about.section{
    text-align: left;
}
/* ---------------- CARDS ---------------- */
.card {
    padding: 35px;
    max-width: 650px;
    margin: auto;
}

/* ---------------- SKILLS ---------------- */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.skill {
    padding: 18px 30px;
    font-weight: 500;
    cursor: pointer;
}

/* ---------------- PROJECT GRID ---------------- */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* ---------------- 3D TILT EFFECT ---------------- */
.tilt {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.15s;
}

.tilt:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* ---------------- CONTACT ---------------- */
form input, form textarea {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ---------------- FOOTER ---------------- */
footer {
    padding: 25px;
    text-align: center;
    opacity: 0.6;
}

/* ---------------- MOBILE ---------------- */
.menu {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 80px;
        right: 30px;
        flex-direction: column;
        padding: 25px;
        border-radius: 15px;
        background: var(--glass-bg);
        backdrop-filter: blur(18px);


    }

    nav.show {
        display: flex;
    }

    .menu {
        display: block;
    }
}

.parallax {
    background-attachment: fixed;
}

.tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at top, rgba(0,234,255,0.4), transparent);
    transition: 0.3s;
}

.tilt:hover::after {
    opacity: 1;
}


.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    background: var(--glass-bg);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px var(--shadow);
    transition: transform 0.3s, background 0.3s;
    margin-left: 20px;
    
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}


/* ---------------- HAMBURGER ICON ---------------- */
.hamburger {
    width: 34px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 5px;
    transition: all 0.35s ease;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* ---------------- MOBILE NAV PANEL ---------------- */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 90px;
        right: 20px;
        width: 240px;
        padding: 24px;

        display: flex;
        flex-direction: column;
        gap: 20px;

        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border-radius: 22px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 30px 70px var(--shadow);

        /* iOS spring feel */
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
        pointer-events: none;

        transition:
            transform 0.55s cubic-bezier(.22,1,.36,1),
            opacity 0.45s ease;
        z-index: 600;
    }

    nav.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    nav a {
        font-size: 1.05rem;
        padding: 10px 0;
    }
}


/* ---------------- MENU BACKDROP OVERLAY ---------------- */
#menuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(.22,1,.36,1);
    z-index: 500;
}

/* Light mode softer overlay */
body.light #menuOverlay {
    background: rgba(255, 255, 255, 0.35);
}

/* Active overlay */
#menuOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---------------- PROFILE PHOTO ---------------- */
.profile-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    padding: 6px;

    background: linear-gradient(
        135deg,
        var(--accent),
        transparent
    );

    box-shadow:
        0 0 35px rgba(0, 234, 255, 0.45);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--glass-bg);
}

/* Light mode softer glow */
body.light .profile-wrapper {
    box-shadow: 0 0 28px rgba(37, 99, 235, 0.35);
}

/* ---------------- HOVER INTERACTION ---------------- */
.profile-wrapper:hover {
    transform: scale(1.05);
    transition: transform 0.35s ease;
}

@media (max-width: 480px) {
    .profile-wrapper {
        width: 120px;
        height: 120px;
    }
}


#contact-form{
    color: var(--text-color);
}

/* ---------------- SOCIAL LINKS ---------------- */
.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 22px;
    border-radius: 30px;

    text-decoration: none;
    font-weight: 500;
    color: var(--text-color);

    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);

    box-shadow: 0 15px 35px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn i {
    font-size: 18px;
}

.social-btn span {
    display: inline;
}

/* Hover lift */
.social-btn:hover {
    transform: translateY(-4px);
}

/* Platform accents */
.social-btn.linkedin:hover {
    box-shadow: 0 0 25px rgba(10, 102, 194, 0.6);
}

.social-btn.github:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

body.light .social-btn.github:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.social-btn.email:hover {
    box-shadow: 0 0 25px rgba(234, 67, 53, 0.6);
}

@media (max-width: 480px) {

    .social-links {
        justify-content: center;
        gap: 16px;
    }

    .social-btn {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;

        justify-content: center;
        align-items: center;
    }

    /* Hide text */
    .social-btn span {
        display: none;
    }

    /* Bigger icon */
    .social-btn i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .social-btn:active {
        transform: scale(0.92);
    }
}


