:root {
    --primary-color: #00ff88;
    --secondary-color: #0a192f;
    --background-color: #0a192f;
    --text-color: #8892b0;
    --accent-color: #64ffda;
    --heading-color: #ccd6f6;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Navigation */
nav {
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 2rem;
    overflow: hidden;
    padding-top: 90px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    margin-top: 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.5rem auto;
}

.hero-image img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    background: #fff;
}

@media (min-width: 600px) {
    .hero-image img {
        width: 140px;
        height: 140px;
    }
}

/* Skills Section */
.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(5px);
    padding: 2.5rem;
}

.skill-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 3rem;
    color: var(--accent-color);
}

/* Skill List for Ethical Hacking */
.skill-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--text-color);
    font-size: 0.95rem;
    list-style: disc inside;
}
.skill-card .skill-list li {
    margin-bottom: 0.3rem;
}

/* Projects Section */
/* Project Cards Enhanced Styling */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-status {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.project-tech span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .nav-content {
        position: relative;
    }

    .nav-links {
        background: var(--secondary-color);
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .project-card {
        margin-bottom: 2rem;
    }

    .project-tech {
        margin-top: 1rem;
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }
    .hero-image {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .hero-image img.no-gap {
        width: 140px !important;
        height: 140px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        object-fit: cover !important;
    }
    .hero-text.no-gap h1.no-gap {
        margin-top: -8px !important;
        padding-top: 0 !important;
        line-height: 1 !important;
    }

    .no-gap {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .mobile-menu-icon {
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }
    .mobile-menu-icon i {
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }
}

/* Additional Responsive Enhancements */
@media (max-width: 480px) {
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }
    .hero-image {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .hero-image img.no-gap {
        width: 120px !important;
        height: 120px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        object-fit: cover !important;
    }
    .hero-text.no-gap h1.no-gap {
        margin-top: -6px !important;
        padding-top: 0 !important;
        line-height: 1 !important;
    }

    .no-gap {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--heading-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-form button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-content {
        position: relative;
        padding: 0.5rem 1rem;
    }

    .nav-content .logo {
        font-size: 0.9rem;  /* Smaller logo size */
        padding: 0.3rem;
        letter-spacing: -0.5px;
    }

    /* Hero Section */
    .hero {
        padding-top: 2rem;  /* Reduced space at the top */
    }

    .hero-content {
        padding-top: 1rem;
        margin-top: 1rem;  /* Reduced margin */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: 0.5rem;  /* Reduced margin above name */
        padding-top: 0.5rem;  /* Reduced padding above name */
    }

    /* Other mobile styles */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s;
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-image {
        height: 300px;
    }

    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* Tech badges and other elements */
    .tech-badges {
        justify-content: center;
        margin: 1.5rem 0;
    }

    .tech-badges span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-content .logo {
        font-size: 0.8rem;  /* Even smaller on mobile */
    }

    .hero-content {
        padding-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-top: 0.5rem;
    }

    section {
        padding: 2rem 1rem;
    }
}

/* Add after existing styles */

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-badges span {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.tech-badges span:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-description {
    margin: 2rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 800px;
}

.hero-description p {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.hero-description p::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Enhanced responsive styles */
@media (max-width: 768px) {
    .tech-badges {
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-content .logo {
        font-size: 1rem;
        padding: 0.4rem;
        letter-spacing: -1px;
    }

    .hero-content {
        padding-top: 2rem;
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 0.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.5rem;
    }

    .hero-content .typing-text {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .hero-description {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }

    .tech-badges span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem;
    }

    .nav-content {
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-content .logo {
        font-size: 0.9rem;
    }

    .hero-content {
        padding-top: 2rem;
    }

    .hero-content h1 {
        margin-top: 0.5rem;
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.social-links-text {
    color: var(--text-color);
    margin-right: 1rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .social-links a {
        font-size: 1.8rem;  /* Slightly larger on mobile for better visibility */
        padding: 0.5rem;
    }
}

/* Profile Summary Section */
.profile-summary {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.profile-summary h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.profile-summary ul {
    list-style: disc inside;
    color: var(--text-color);
    padding-left: 1rem;
}

/* Education Section */
.education {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.education h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.education-block {
    margin-bottom: 1.5rem;
}
.education-block h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}
.education-block ul {
    list-style: circle inside;
    margin-left: 1rem;
    color: var(--text-color);
}

/* Hobbies Section */
.hobbies {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.hobbies h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.hobbies ul {
    list-style: square inside;
    color: var(--text-color);
    padding-left: 1rem;
}

/* Mobile Navigation Hamburger */
.mobile-menu-icon {
    display: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
    }
    .hero-image {
        margin-top: 1.5rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 2rem;
        background: var(--secondary-color);
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        padding: 1.5rem 2rem;
        z-index: 100;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-icon {
        display: block;
    }
}

/* Ethical Hacking Skills Gained Section */
.ethical-hacking-skills {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.ethical-hacking-skills h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.ethical-hacking-skills .skill-list {
  list-style: disc inside;
  color: var(--text-color);
  padding-left: 1rem;
  font-size: 1rem;
}
.ethical-hacking-skills .skill-list li {
  margin-bottom: 0.4rem;
}

/* Projects Section Card Layout Enhancement */
.projects {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.projects h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,255,136,0.04);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,255,136,0.10);
}
.project-content h3 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}
.project-status {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.project-tech span {
  background: rgba(100,255,218,0.13);
  color: var(--accent-color);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Section Spacing Consistency */
section {
  margin-bottom: 2.5rem;
}

/* Lab Practicals Gallery Section - Adjusted for full image display */
.lab-gallery {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,255,136,0.05);
  text-align: center;
}
.lab-gallery h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.lab-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.lab-gallery img {
  width: 100%;
  max-width: 350px;
  height: 280px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,255,136,0.08);
  background: #181f2a;
  padding: 12px;
  display: block;
  margin: 0 auto;
}

/* Center About Me Section */
.about {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.about h2 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.about-content {
  display: flex;
  justify-content: center;
}
.about-text {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Enhanced Contact Form */
.contact {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.contact h2 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--heading-color);
  font-size: 1rem;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-color);
  background: rgba(100,255,218,0.08);
}
.contact-form button {
  background: var(--primary-color);
  color: #0a192f;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}
.contact-form button:hover {
  background: var(--accent-color);
  color: #0a192f;
}

/* Extra Curricular Activities Section */
.extra-curricular {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,255,136,0.05);
}
.extra-curricular h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-align: center;
}
.extra-curricular ul {
  list-style: disc inside;
  color: var(--text-color);
  padding-left: 1rem;
  font-size: 1.05rem;
}
.extra-curricular ul li {
  margin-bottom: 0.5rem;
}

/* Profile Image Responsive Fix */
@media (max-width: 600px) {
  .nav-links {
    gap: 0.7rem;
  }
  .hero-image img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
}

/* Full-Screen Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.mobile-nav-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: center;
}
.mobile-nav-links a {
  color: var(--accent-color);
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-links a:hover {
  color: var(--primary-color);
}
.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hide default nav links on mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-icon {
    display: block;
  }
}

/* Page Loading Spinner Overlay */
#page-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
#page-loader.active {
  display: flex;
}
.page-spinner {
  border: 6px solid #222b3a;
  border-top: 6px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #7f5af0 0%, #00e6d0 100%);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2.5rem;
  animation: fadeIn 0.3s;
}
.mobile-menu-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mobile-menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}
.mobile-menu-profile {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.7rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: #fff;
}
.mobile-menu-name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.mobile-menu-close {
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.mobile-menu-close:hover {
  opacity: 1;
}
.mobile-menu-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 85vw;
  max-width: 340px;
  background: rgba(255,255,255,0.13);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 18px;
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.mobile-menu-link i {
  font-size: 1.3rem;
}
.mobile-menu-link:hover {
  background: rgba(255,255,255,0.22);
  color: #101624;
  transform: scale(1.04);
}

/* Show hamburger only on mobile, hide nav-links */
@media (max-width: 900px) {
  .mobile-menu-icon {
    display: block !important;
    font-size: 2.2rem;
    color: var(--primary-color);
    cursor: pointer;
  }
  .nav-links {
    display: none !important;
  }
}
@media (min-width: 901px) {
  .mobile-menu-icon {
    display: none !important;
  }
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Header quote styling */
.header-quote {
    color: var(--primary-color);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    margin: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .header-quote {
        font-size: 0.85rem;
        margin: 0 0.2rem;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .quote-desktop { display: none; }
    .quote-mobile { display: inline; font-size: 0.85rem; }
}
@media (max-width: 600px) {
    .header-quote {
        font-size: 0.7rem;
        margin: 0 0.1rem;
    }
}

/* Fix anchor scroll offset for headings */
section, .profile-summary, .education, .about, .hobbies, .extra-curricular {
    scroll-margin-top: 70px;
}
@media (max-width: 768px) {
    section, .profile-summary, .education, .about, .hobbies, .extra-curricular {
        scroll-margin-top: 56px;
    }
}

.quote-mobile { display: none; }
.quote-desktop { display: inline; }
@media (max-width: 900px) {
  .quote-desktop { display: none; }
  .quote-mobile { display: inline; font-size: 0.85rem; }
}

/* ===== Portfolio Revamp Overrides (2026) ===== */
:root {
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(100, 255, 218, 0.16);
}

body {
  background: radial-gradient(circle at 10% 15%, rgba(0, 255, 136, 0.12), transparent 30%),
              radial-gradient(circle at 90% 85%, rgba(100, 255, 218, 0.12), transparent 35%),
              #071427;
}

section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2.2rem;
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 16px;
  background: rgba(10, 25, 47, 0.72);
  backdrop-filter: blur(4px);
}

section h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.hero {
  min-height: 100vh;
  height: auto;
  padding-top: 110px;
  padding-bottom: 2rem;
}

.hero-content {
  max-width: 1150px;
  grid-template-columns: minmax(300px, 390px) minmax(0, 590px);
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
}

.hero-image {
  margin: 0;
}

.hero-image img {
  width: 220px;
  height: 220px;
  border: 3px solid rgba(100, 255, 218, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-text {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.08rem;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

.typing-text {
  min-height: 1.8rem;
  font-size: 0.92rem;
}

.hero-description {
  margin: 1.2rem 0;
}

.social-links {
  margin-top: 1.2rem;
}

.education,
.profile-summary,
.about,
.hobbies,
.extra-curricular,
.projects,
.contact {
  max-width: 1100px;
}

#languages .languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.language-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
}

.language-card h3 {
  color: var(--heading-color);
  margin-bottom: 0.3rem;
}

.deployed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.deployed-card,
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.deployed-card h3,
.event-card h3 {
  color: var(--heading-color);
  margin-bottom: 0.45rem;
}

.deployed-card a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 8px;
  padding: 0.38rem 0.78rem;
  font-weight: 600;
}

.deployed-card a:hover {
  background: rgba(0, 255, 136, 0.16);
}

.pending-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--accent-color);
  font-size: 0.92rem;
}

.speaking-events ul {
  margin: 0.7rem 0 0.9rem;
  padding-left: 1rem;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.event-gallery figure {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 10px;
  padding: 0.6rem;
}

.event-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.event-gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #99a8c8;
  word-break: break-word;
}

footer {
  text-align: center;
  padding: 1.2rem 1rem 2rem;
  color: #a5b3cf;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 95px;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
    gap: 1.2rem !important;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image img {
    width: 155px !important;
    height: 155px !important;
  }

  .social-links {
    justify-content: center;
  }

  .nav-content {
    gap: 0.4rem;
  }

  .header-quote {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    margin: 1.2rem auto;
    padding: 1.2rem;
    border-radius: 12px;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .typing-text {
    font-size: 0.95rem;
  }

  .mobile-menu-link {
    font-size: 1.1rem;
  }
}

/* ===== Professional Cleanup Pass ===== */
nav {
  background: rgba(5, 19, 39, 0.86);
  border-bottom: 1px solid rgba(100, 255, 218, 0.18);
  backdrop-filter: blur(8px);
}

.nav-content {
  max-width: 1280px;
}

.logo {
  letter-spacing: 0.6px;
  font-size: 1.7rem;
}

.nav-links {
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.95rem;
  padding: 0.25rem 0.1rem;
}

.header-quote {
  color: #4ef0b2;
  font-weight: 500;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 18, 35, 0.62), rgba(8, 18, 35, 0.82)), url("images/hero/rotaract-hero-bg.jpg");
  background-size: cover;
  background-position: 36% center;
  filter: blur(0.8px) saturate(118%) brightness(1.02);
  transform: scale(1.05);
  z-index: -2;
}

.hero::before {
  z-index: -1;
}

.hero-description p {
  font-size: 0.9rem;
}

.tech-badges span {
  font-size: 0.74rem;
  padding: 0.4rem 0.7rem;
}

.hero-text {
  position: relative;
  padding: 1.3rem 1.4rem;
  border-radius: 16px;
  background: rgba(7, 20, 39, 0.42);
  border: 1px solid rgba(100, 255, 218, 0.2);
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 255, 136, 0.09), rgba(100, 255, 218, 0.02) 60%);
  pointer-events: none;
}

.hero-text > * {
  position: relative;
  z-index: 1;
}

.hero-corner-profile {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 160px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.hero-corner-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  .hero-corner-profile {
    display: none;
  }
}

.hero-left-empty {
  min-height: 330px;
}

.hero-visual-line {
  width: 100%;
  height: 2px;
  margin: 0.8rem 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.85), rgba(100, 255, 218, 0.15));
}

.section-intro {
  margin-bottom: 1rem;
  color: #b7c5df;
}

#languages .language-card p {
  color: #b7c5df;
  margin-bottom: 0.65rem;
}

.lang-meter {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.lang-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00ff88, #64ffda);
}

.event-gallery figcaption {
  text-align: center;
  font-weight: 600;
  color: #adc0df;
}

@media (max-width: 1100px) {
  .nav-links a {
    font-size: 0.9rem;
  }
  .hero-content {
    grid-template-columns: minmax(260px, 330px) minmax(0, 570px);
  }
  .hero::after {
    background-position: 33% center;
  }
}

@media (max-width: 900px) {
  .nav-content {
    padding: 0.7rem 1rem;
  }

  .hero::after {
    background-position: center;
    filter: blur(1.2px) saturate(112%) brightness(1.01);
  }

  .hero-text {
    padding: 1rem;
    border-radius: 12px;
  }
  .hero-left-empty {
    display: none;
  }
}