/* ---- Reset ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.1s, background-color 0.5s;
    color: inherit;
    text-decoration: inherit;
}

/* ---- Body ---- */
body {
    font: 20px Montserrat, sans-serif;
    line-height: 1.8;
    background-color: rgb(0, 0, 0);
    color: whitesmoke;
    min-height: 100vh;
    position: relative;
}

/* ---- Container to center navbar ---- */
.container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ---- Navbar ---- */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 99px;
    width: 100%;
    border-radius: 12px;
}

/* ---- Box holding all items ---- */
.box.nav {
    display: flex;
    gap: 300px;
    /* space between menu items */
}

/* ---- Each nav item ---- */
.item {
    display: flex;
    flex-direction: column;
    /* icon on top, text below */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    cursor: pointer;
    position: relative;

    /* Animation */
    opacity: 0;
    transform: translateY(-20px);
    animation: slide-in-down 0.8s forwards;
}

/* ---- Staggered animation for each item ---- */
.item:nth-child(1) {
    animation-delay: 0.2s;
}

.item:nth-child(2) {
    animation-delay: 0.4s;
}

.item:nth-child(3) {
    animation-delay: 0.6s;
}

.item:nth-child(4) {
    animation-delay: 0.8s;
}

.item:nth-child(5) {
    animation-delay: 1s;
}

/* ---- Icon ---- */
.item ion-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

/* ---- Text below icon ---- */
.item p {
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

/* ---- Navbar links ---- */
.navbar .item a {
    position: relative;
    color: whitesmoke;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding-bottom: 5px;
    /* space for underline */
}

/* ---- Underline effect (right-to-left) ---- */
.navbar .item a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: rgb(234, 0, 255);
    transition: width 0.4s ease, right 0.4s ease;
}

/* ---- Hover effect ---- */
.navbar .item:hover,
.navbar .item a:hover {
    color: rgb(234, 0, 255);
}

.navbar .item a:hover::after {
    width: 100%;
    right: 0;
}

/* ---- Active menu ---- */
.item.active {
    color: rgb(255, 2, 242);
}

.item.active a::after {
    width: 100%;
    right: 0;
}


/* ---- Keyframes for slide-in animation ---- */
@keyframes slide-in-down {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





.main-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 50px;
    position: relative;
    z-index: 2;
    /* ensures it stays above particles */

}

/* Profile Card with glass effect */
.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 200px;
    background: rgba(20, 20, 40, 0.55);
    /* glass effect */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 12, 173, 0.3);
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(155, 12, 173, 0.5);
}

/* Image */
.image-container {
    flex-shrink: 0;
}

.image-container img {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 4px solid #9b0cad;
    box-shadow: 0 0 25px rgba(155, 12, 173, 0.6);
    object-fit: cover;
}

/* Text Section */
.text-section {
    max-width: 600px;
    color: #fff;
}

.profile h2 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 15px rgba(155, 12, 173, 0.6);
}

.colored {
    color: #4facfe;
    font-weight: bolder;
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
    letter-spacing: 2px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.content p {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ddd;
    text-shadow: 0 0 6px rgba(200, 200, 200, 0.3);
    letter-spacing: 0.5px;
}

.content h6 {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #9b0cad;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(155, 12, 173, 0.5);
}




/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.8rem;
    color: #a64dff;
    margin-right: 15px;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #fff;
}






.skill {
    padding: 50px 20px;
    text-align: center;
}

.skill h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    font-weight: bolder;
    text-shadow: 0 0 8px rgba(164, 50, 187, 0.5);
    letter-spacing: 2px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.skill-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

.it {
    background: transparent;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(255, 165, 165, 0.3);
    background: rgba(52, 24, 54, 0.397);
    border: 1px solid rgba(155, 12, 173, 0.3);
    border-radius: 20px;
    border-radius: 12px;
    text-align: left;
    overflow: hidden;
    position: relative;
}

.it p {
    margin: 0 0 10px;
    font-weight: bold;
    color: #ffffff;
}

.progress {
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    height: 100%;
    color: #fff;
    text-align: right;
    padding-right: 8px;
    font-size: 0.8rem;
    line-height: 20px;
    border-radius: 10px;
    animation: fillProgress 2s ease forwards;
}

/* Different colors per skill */
.progress-bar.html {
    width: 70%;
    background: linear-gradient(90deg, #ff6a00, #ffb347);
}

.progress-bar.css {
    width: 75%;
    background: linear-gradient(90deg, #2193b0, #6dd5ed);
}

.progress-bar.js {
    width: 50%;
    background: linear-gradient(90deg, #f7971e, #ffd200);
}

.progress-bar.python {
    width: 50%;
    background: linear-gradient(90deg, #43cea2, #185a9d);
}

.progress-bar.sql {
    width: 50%;
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
}

.progress-bar.java {
    width: 50%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

/* Progress Animation */
@keyframes fillProgress {
    from {
        width: 0;
    }
}

/* Main Resume Card */
:root {
    --bg-gradient-start: #16001c;
    --bg-gradient-mid: #1a0230;
    --bg-gradient-end: #0a0016;
    --card-bg: rgba(255, 255, 255, 0.06);
    --text-primary: #e2e8f0;
    --text-muted: #a5adc3;
    --accent-fuchsia: #d946ef;
    --accent-violet: #8b5cf6;
    --accent-fuchsia-light: #f5d0fe;
    --accent-violet-light: #ddd6fe;
    --border-color: rgba(168, 85, 247, 0.3);
    --border-color-hover: rgba(168, 85, 247, 0.5);
    --shadow-color-fuchsia: rgba(217, 70, 239, 0.3);
    --shadow-color-violet: rgba(139, 92, 246, 0.3);
}

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


/* Resume Card */
/* Heading outside card */
.resume-heading {
    text-align: center;
    margin-bottom: 30px;
    z-index: 2;
    position: relative;
}

.resume-heading h2 {
    font-size: 3rem;
    color: #ffffff;
    /* accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #e238f888;
}




.resume-section {
    display: flex;
    gap: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
    padding: 6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90rem AUTO;
    width: 100%;
}

/* Left */
.left {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.4s ease;
}

.left:hover {
    box-shadow: 0 0 25px var(--shadow-color-fuchsia);
    border-color: var(--border-color-hover);
}

/* Right */
.right {
    flex: 2;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.4s ease;
}

.right:hover {
    box-shadow: 0 0 25px var(--shadow-color-violet);
}

/* Education Heading */
#resume-heading {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-fuchsia);
    margin-bottom: 1.75rem;
    color: var(--accent-fuchsia-light);
    letter-spacing: 0.05em;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(217, 70, 239, 0.7);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover {
    transform: translateX(0.5rem);
}

.dot {
    position: absolute;
    left: -2.8rem;
    top: 0.25rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: white;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--shadow-color-fuchsia);
}

.meta {
    margin-left: 3.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.6rem;
    padding: 1.25rem;
    transition: background-color 0.3s ease;
}

.timeline-item:hover .meta {
    background: rgba(168, 85, 247, 0.2);
}

.degree {
    color: var(--accent-fuchsia-light);
    font-weight: 700;
    font-size: 1rem;
}

.institution {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.score {
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Download Button */
.download-section {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(to right, var(--accent-violet), var(--accent-fuchsia));
    padding: 0.8rem 1.6rem;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color-fuchsia);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(217, 70, 239, 0.4);
}



/* Right Side Content */
/* Right Side Content - Clean IT Style */
.resume-entry {
    margin-bottom: 1.8rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    /* subtle card background */
    border-left: 3px solid var(--accent-fuchsia);
    /* small accent */
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.resume-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    /* slight hover effect */
}

.resume-entry .title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-fuchsia-light);
    margin-bottom: 0.5rem;
}

.resume-entry p,
.resume-entry ul {
    margin-top: 0.3rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.resume-entry ul {
    list-style: '• ';
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.resume-entry ul li {
    transition: color 0.2s ease;
}

.resume-entry ul li:hover {
    color: var(--accent-fuchsia-light);
}

/* ---- Projects Section ---- */
.projects-section {
    padding-bottom: 5rem;
    z-index: 2;
    position: relative;
    padding: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: space-between;
    gap: 2.5rem;
    margin: 60px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color-violet);
    border-color: var(--border-color-hover);
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    color: rgb(231, 184, 233);
    margin-bottom: 0.75rem;
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tags span {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-violet-light);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.project-btn:hover {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
    color: white;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
    z-index: 2;
    position: relative;
}

.section-heading h2 {
    font-size: 3rem;
    color: #ffffff;
    /* accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #e238f888;
}


/* Responsive */
@media (max-width: 1024px) {
    .resume-section {
        flex-direction: column;
        padding: 2rem;
    }
}


/* ---- Certifications Section ---- */
.certifications-section {
    padding-bottom: 5rem;

    z-index: 2;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
    /* Space for arrows */
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 33.33%;
    padding: 0 1rem;
}

.certification-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color-fuchsia);
    border-color: var(--border-color-hover);
}

.cert-icon {
    font-size: 3.5rem;
    color: var(--accent-fuchsia);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.cert-details h3 {
    font-size: 1.15rem;
    color: var(--accent-fuchsia-light);
    margin-bottom: 0.5rem;
}

.cert-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cert-link {
    margin-top: auto;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.cert-link:hover {
    background: var(--accent-fuchsia);
    border-color: var(--accent-fuchsia);
    color: white;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: var(--accent-fuchsia);
    color: white;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-nav {
    text-align: center;
    margin-top: 2rem;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-fuchsia);
}



.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    z-index: 2;
    position: relative;
}

.contact-container {
    display: flex;
    width: 85%;

    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);

}

.contact-left {
    background: linear-gradient(135deg, #ff63e534, #f72fe642);
    color: white;
    padding: 60px;
    flex: 1;
}

.contact-left h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-left ul {
    list-style: none;
    padding: 0;
}

.contact-left li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;

}

.contact-right {
    background: rgba(228, 220, 220, 0.199);
    border: rgba(238, 130, 238, 0.37) 2px solid;
    padding: 60px;
    flex: 1;
}

.contact-right h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #dd00fa;
}

.contact-right p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.social-links a {
    color: #6c63ff;
    font-size: 1.8rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

canvas {
    display: block;
    vertical-align: bottom;
}

/* ---- particles.js container ---- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000000;
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

/* ---- stats.js ---- */
.count-particles {
    background: #000000;
    position: absolute;
    top: 48px;
    left: 0;
    width: 80px;
    color: #000000;
    font-size: .8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    border-radius: 0 0 3px 3px;
}

.js-count-particles {
    font-size: 1.1em;
}

#stats {
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}



/* Modal background (covers screen but doesn't change content behind) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dim effect */
    backdrop-filter: blur(3px);
    /* Optional: adds blur to background */
}
/* ------------------------------ */
/* MODERN RESPONSIVE DESIGN (2025)*/
/* ------------------------------ */

/* ✅ Tablets and Medium Screens (≤1024px) */
@media (max-width: 1024px) {
  body {
    font-size: 17px;
    line-height: 1.6;
  }

  .navbar {
    padding: 12px 25px;
    justify-content: space-between;
  }

  .box.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 40px;
  }

  .image-container img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 20px;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ✅ Mobile Devices (≤768px) */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 0;
    overflow-x: hidden;
  }

  /* Navbar simplified and centered */
  .navbar {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(6px);
    gap: 10px;
  }

  .box.nav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    width: 100%;
  }

  .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
  }

  .item ion-icon {
    font-size: 22px;
    margin-bottom: 4px;
  }

  /* Profile */
  .profile-card {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 2rem 1rem;
    text-align: center;
  }

  .image-container img {
    width: 240px;
    height: 240px;
  }

  .profile h2 {
    font-size: 1.8rem;
  }

  .content p {
    font-size: 1rem;
    color: #ddd;
    max-width: 90%;
  }

  /* Skills */
  .skill-box {
    grid-template-columns: 1fr;
    width: 95%;
    margin: 0 auto;
    gap: 1.2rem;
  }

  .skill h2 {
    font-size: 1.6rem;
  }

  /* Resume */
  .resume-section {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .resume-heading h2 {
    font-size: 1.9rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.5rem 1rem;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

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

  /* Certifications */
  .certification-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(30, 30, 30, 0.9);
  }

  /* Contact Section */
  .contact-container {
    flex-direction: column;
    gap: 2rem;
    width: 95%;
    margin: 0 auto;
  }

  .contact-left, .contact-right {
    width: 100%;
    padding: 1.5rem;
  }

  .contact-left h2,
  .contact-right h2 {
    font-size: 1.6rem;
  }

  .download-btn {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1.3rem;
    border-radius: 12px;
  }
}

/* ✅ Small Mobiles (≤480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  /* Navbar remains inline but scrollable if needed */
  .navbar {
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding: 8px 4px;
  }

  .box.nav {
    gap: 18px;
  }

  .item ion-icon {
    font-size: 20px;
  }

  .item p {
    font-size: 0.75rem;
  }

  /* Profile */
  .image-container img {
    width: 180px;
    height: 180px;
  }

  .profile h2 {
    font-size: 1.6rem;
  }

  .content p {
    font-size: 0.9rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  /* Contact */
  .contact-left h2,
  .contact-right h2 {
    font-size: 1.4rem;
  }

  .download-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.1rem;
  }
}
