/* Base Styles */
/* :root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6584;
    --dark-color: #2d2d39;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
} */

:root {
    --primary-color: #00cfff;       /* Vibrant Sky Blue (more neonish) */
    --secondary-color: #ffc300;     /* Bright Yellowish Orange (sunshine tone) */
    --dark-color: #2d2d39;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}


.dark-theme {
    --dark-color: #f8f9fa;
    --light-color: #2d2d39;
    --text-color: #f8f9fa;
    --text-light: #ccc;
    --bg-color: #1a1a24;
    --card-bg: rgba(45, 45, 57, 0.85);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --glass-effect: rgba(45, 45, 57, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}



/* .dark-theme {
    --dark-color: #f8f9fa;
    --light-color: #2d2d39;
    --text-color: #f8f9fa;
    --text-light: #ccc;
    --bg-color: #1a1a24;
    --card-bg: rgba(45, 45, 57, 0.8);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --glass-effect: rgba(45, 45, 57, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: capitalize;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
}

.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}










:root {
  --mks-size: clamp(120px, 40vmin, 360px); /* size adjust kar sakte ho */
}

/* Overlay container (aapke pure page ke upar) */
/* Blurred overlay */
.preloader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);           /* light tint so content readable rahe */
  -webkit-backdrop-filter: blur(8px);         /* Safari/iOS */
  backdrop-filter: blur(8px);                 /* Chrome/Edge */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* Smooth fade */
  transition: opacity .4s ease, visibility 0s linear .4s, 
              background .4s ease, backdrop-filter .4s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0,0,0,0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}
/* Loader wrapper – yahan pe aapka subtle loop chalao (pehle body par tha) */
.mks-loader {
  animation: masterLoop 5s infinite;
}

.mks-loader svg {
  width: var(--mks-size);
  height: var(--mks-size);
  display: block;
}

/* Ring draw */
.mks-loader .ring {
  fill: none;
  stroke-width: 9;
  stroke-dasharray: 122 8 122 8 200 108;
  stroke-dashoffset: 200;
  transform-origin: 100px 100px;
  transform: rotate(96deg);
  animation: ringDraw 1.6s ease forwards;
}

@keyframes ringDraw {
  to { stroke-dashoffset: 0; }
}

/* Fade in for text and group */
.mks-loader .fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease forwards;
  animation-delay: 1.7s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Bars grow */
.mks-loader .bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: grow 0.8s ease forwards;
}

.mks-loader .bars-group .bar:nth-child(1) { animation-delay: 2.5s; }
.mks-loader .bars-group .bar:nth-child(2) { animation-delay: 2.7s; }
.mks-loader .bars-group .bar:nth-child(3) { animation-delay: 2.9s; }
.mks-loader .bars-group .bar:nth-child(4) { animation-delay: 3.1s; }

@keyframes grow { to { transform: scaleY(1); } }

/* Line draw */
.mks-loader .line-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1s ease forwards;
  animation-delay: 3.4s;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Dots pop */
.mks-loader .dot {
  opacity: 0;
  transform-origin: center;
  transform: translateY(5px);
  animation: pop 0.25s ease forwards;
}

.mks-loader .dot.d1 { animation-delay: 3.6s; }
.mks-loader .dot.d2 { animation-delay: 3.8s; }
.mks-loader .dot.d3 { animation-delay: 4.0s; }
.mks-loader .dot.d4 { animation-delay: 4.2s; }

@keyframes pop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle pulse (pehle body par tha) */
@keyframes masterLoop {
  0% { opacity: 0.3; }
  10% { opacity: 0.35; }
  20% { opacity: 0.4; }
  50% { opacity: 0.7; }
  60% { opacity: 0.8; }
  70% { opacity: 0.9; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mks-loader { animation: none; }
  .mks-loader .ring,
  .mks-loader .fade-in,
  .mks-loader .bar,
  .mks-loader .line-path,
  .mks-loader .dot { animation: none !important; }
}
@media (max-width: 360px) {
  :root { --mks-size: clamp(100px, 36vmin, 240px); }
}

/* Short-height landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  :root { --mks-size: clamp(90px, 32vmin, 220px); }
}






















/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

.header .container {
    display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 5px;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.nav ul li a.active {
    color: var(--primary-color);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    /* left: 100px; */
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 10px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle .typing-text {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.social-icons a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: translateY(-5px);
}




.circle-spin {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    animation: ring-rotate 8s linear infinite;
}


.image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;            /* image ko circle me clip kare */
  border: 10px solid var(--glass-effect);
  backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.circle-spin {
  position: absolute;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
  border-radius: 50%;
  border: 3px solid transparent;        /* ring thickness */
  border-top-color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  /* left/right transparent rahenge */
  animation: ring-rotate 8s linear infinite;
  pointer-events: none;        /* clicks pass through */
  z-index: 2;                  /* image ke upar rahe */
  box-sizing: border-box;
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

/* Optional: motion reduce preference respect */
@media (prefers-reduced-motion: reduce) {
  .circle-spin { animation: none; }
}


/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text h3 span {
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 0px;
    color: var(--text-light);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 50px 0;
}
.about-info p {
margin-top: 0px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.about-btns {
    display: flex;
    gap: 20px;
}

/* Skills Section */
.skills-box {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--glass-border);
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 15px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--glass-effect);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    position: relative;
    transition: width 1s ease;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Projects Section */

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    background: linear-gradient(135deg, #00cfff, #ffc300); /* 🔆 Base gradient added */
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 207, 255, 0.85), rgba(255, 195, 0, 0.7)); /* 🎨 Bright updated gradient */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.project-link {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
    color: var(--primary-color);
}

.project-item:hover .project-overlay h3,
.project-item:hover .project-overlay p,
.project-item:hover .project-link {
    transform: translateY(0);
}

.projects-more {
    text-align: center;
}


/* .projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(108, 99, 255, 0.9), rgba(255, 101, 132, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.project-link {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
    color: var(--primary-color);
}

.project-item:hover .project-overlay h3,
.project-item:hover .project-overlay p,
.project-item:hover .project-link {
    transform: translateY(0);
}

.projects-more {
    text-align: center;
} */

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
    /* background-color: red; */
    /* border: 1px solid black; */
    box-shadow: var(--box-shadow);
    border-radius: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo span {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 5px;
}

.footer-links ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.footer-social a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-btns, .social-icons {
        justify-content: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-info {
        justify-content: center;
    }
    
    .about-btns {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px;
        transition: var(--transition);
        z-index: 999;
        display: none;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    .theme-toggle {
    display: flex;
  }
  
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }



    .about-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    margin-left: 0px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.about-btns {
    display: flex;
    gap: 20px;

    
}
.about-btns .btn{
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 500;
}

}

/* ======= Responsive Header ======= */

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--bg-color);
        box-shadow: var(--box-shadow);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav ul li {
        margin: 20px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .hamburger .bar {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        transition: var(--transition);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

}
@media screen and (max-width: 386px) {
  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1rem;
  }

  .btn {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    margin: 8px 0;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-card,
  .project-card,
  .contact-form {
    padding: 16px;
  }

  .footer nav a {
    margin: 6px 5px;
    display: block;
  }

  .social-icons {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* .contact
  {
    background-color: #ff6584;
  }
  .contact .container
  {
    background-color: #93ff65;
  }
  .contact .container .contact-content
  {
    background-color: aquamarine;
  } */
  .contact .container .contact-info
  {
    /* background-color: rgb(129, 160, 150); */
    min-width: 200px;
    max-width: 100%;
  }
  .contact .container .contact-info-item
  {
    /* background-color: rgb(242, 127, 255); */
    width: 100%;

    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
  }
  .contact .container .contact-info-item .contact-icon
  {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content:center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
  }

  .contact-form {
    min-width: 280px;
    
}

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
  }

  .about-text
  {
    min-width: 280px;
  }
}

/* @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

.success-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  min-width: 300px;
  max-width: 90vw;
  background: rgba(35, 40, 59, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,198,251,0.10);
  border-top: 3px solid #43e97b;
  padding: 28px 32px 22px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  text-align: center;
  z-index: 9999;
  font-family: 'DM Serif Display', serif, 'Segoe UI', Arial, sans-serif;
}

.success-box.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.success-box .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px auto;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(67,233,123,0.10);
  color: #fff;
  font-size: 2rem;
  animation: fadeInZoom 0.5s cubic-bezier(.4,0,.2,1);
}

.success-box .icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.success-box .msg-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.08rem;
  color: #e0e6ed;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
  font-weight: 500;
}

@keyframes fadeInZoom {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
} */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

.success-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  min-width: 240px;
  max-width: 90vw;
  background: rgba(30, 34, 48, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 22px 26px 18px 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.4,0,.2,1), transform 0.32s cubic-bezier(.4,0,.2,1);
  text-align: center;
  z-index: 9999;
  font-family: 'DM Serif Display', serif, 'Segoe UI', Arial, sans-serif;
}

.success-box.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.success-box .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px auto;
  background: rgba(67,233,123,0.13);
  border-radius: 50%;
  color: #43e97b;
  font-size: 1.3rem;
  box-shadow: 0 1px 4px rgba(67,233,123,0.07);
  animation: fadeInZoom 0.5s cubic-bezier(.4,0,.2,1);
}

.success-box .icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.success-box .msg-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.01rem;
  color: #cfd8dc;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
  font-weight: 400;
}

@keyframes fadeInZoom {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Fly  */
.success-box.fly {
  animation: flyaway 1.2s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes flyaway {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(0.95) rotate(-10deg);
  }
  80% {
    opacity: 0.8;
    transform: translate(120vw, -80vh) scale(0.7) rotate(-20deg);
  }
  100% {
    opacity: 0;
    transform: translate(150vw, -100vh) scale(0.5) rotate(-30deg);
  }
}

/* Plane icon animation */
#planeIcon {
  transition: opacity 0.2s;
}


/* --- Final Certificate Section CSS (Guaranteed Fix) --- */

#certificates .container {
    max-width: 1100px; /* Thodi width badhai hai taake content khula lage */
}

.certificates-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px; /* Adjusted for tighter spacing */
}


/* Default (Stacked for Mobile) */
.certificate-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 20px;
}

.certificate-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    order: 2; 
}

.certificate-image-container {
    order: 1; 
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
}

.certificate-image-container img {
    width: 100%;
    height: auto; 
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.certificate-details h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.certificate-details p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.certificate-details p strong {
    color: var(--text-color);
}

/* === BADI SCREENS KE LIYE LAYOUT (Desktop) === */
@media (min-width: 768px) {
    .certificate-item {
        display: flex;
        flex-direction: row; 
        text-align: left;
        align-items: center;
        
        /* === YEH DO RULES FIX KARENGE === */
        justify-content: space-between; /* Items ko dono kinaro par bhej dega */
        gap: 40px; /* Beech mein kam se kam gap rakhega */
    }

    .certificate-text-content {
        order: 1; 
        align-items: flex-start; 
        flex: 1; /* Yeh text ko bachi hui jagah dega */
    }

    .certificate-image-container {
        order: 2; 
        flex-shrink: 0; /* Image ko shrink hone se rokega */
        width: 40%; /* Image ki width set karega */
        max-width: 420px;
    }

    .certificate-details h3 {
        font-size: 1.5rem;
    }
}
/*
  ==============================================
  Professional Outline Button Style for "View"
  ==============================================
*/

.secondary-btnn {
  display: inline-block;
  padding: 8px 28px;
  border: 2px solid #07b9ff;
  color: #07b9ff;
  background-color: transparent;
  border-radius: 10px;            /* Corners ko thoda gol kiya (50px se 10px) */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;

  /* Yeh naya code hai glow effect ke liye */
  /* box-shadow: 0 0 10px rgba(7, 185, 255, 0.7); Button ke chaaron taraf glow */
  /* text-shadow: 0 0 5px rgba(7, 185, 255, 0.7);   Text ke chaaron taraf glow */
}

/* Mouse le jaane par (hover) button kaisa dikhega */
.secondary-btnn:hover {
  /* Hover par glow ko aur zyada chamakdar bana sakte hain */
  /* box-shadow: 0 0 20px rgba(7, 185, 255, 0.9); Glow aur fail jayega */
  /* text-shadow: 0 0 10px rgba(7, 185, 255, 0.9); Text ka glow aur chamakdar ho jayega */
  
  /* Original hover effect, jo background fill karta hai, aap isko bhi use kar sakte hain
  */
  background-color: #07b9ff;      
  color: #10121B; 

  cursor: pointer;
}


/* Hover hint */
.certificate-image-container {
    position: relative;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.certificate-image-container:hover::after {
    content: "Click to Zoom";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    opacity: 1;
    transition: 0.3s;
}

/* Zoom Modal Styles */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    /* display: flex; */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    cursor: zoom-out;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#powerline{    /*ye about me ke baad ki line hai */
    text-align: center;
    color:#00cfff;       /* Vibrant Sky Blue (more neonish) */
    font-family:cursive;
}
#text{
    text-align: left;  /* ye about me ki alignment hai*/
}




/* Project Section me Only Recent Project dikhane ke liye */
.projects-grid .project-item {
  display: none;
}

.projects-grid .project-item[data-category="Recent"] {
  display: block;
}














/* Cursor code */

/* Add this inside your CSS file */
 body {
  cursor: none; /* Hide default cursor */
 }  

.cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  background: #00fff2;
  border-radius: 50%;
  box-shadow: 0 0 15px #00fff2, 0 0 30px #00fff2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  z-index: 9999;
}


/* Code 2 */
/* body {       
  cursor: none;
}

.cursor-bit {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #00e0ff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  animation: fadeOut 0.6s linear forwards;
  z-index: 9999;
}

@keyframes fadeOut {
  to { opacity: 0; transform: scale(0); }
} */
