/* 🎨 Color Theme */
:root {
  --primary: #00e6ff;
  --secondary: #0066ff;
  --accent: #731bb1;
  --dark: #0b1120;
  --card-dark: #151b2a;
  --text: #ffffff;
  --muted: #b0b5c5;
  --radius: 18px;
  --gradient: linear-gradient(135deg, #00e6ff, #0066ff);
  --glow: rgba(0, 230, 255, 0.3);
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0b1120;
  color: var(--text);
  overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

 h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700; 
}

h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

 p {
    font-family: 'Inter', sans-serif;
    font-weight: 400; 
}

html {
  scroll-behavior: smooth;
}
header {
    background: var(--dark);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 20px var(--glow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

/* Logo with gradient text */
.logo {
    font-size: 2em;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}
@media (max-width: 480px) {
    nav a {
        font-size: 0.85em;
        margin: 4px 8px 4px 0;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column; /* stack logo and nav */
        align-items: flex-start;
        padding: 16px 20px;
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* allow links to wrap to next line */
        width: 100%;
        margin-top: 12px;
    }

    nav a {
        margin: 6px 12px 6px 0; /* smaller margin for wrapping */
        font-size: 0.95em; /* slightly smaller text */
    }
}

/* Navbar links */
nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.05em;
    margin-left: 28px;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover effect with underline and color shift */
nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -4px;
    left: 0;
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Resume button */
.resume-btn {
    background: var(--gradient);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px var(--glow);
    transition: all 0.3s ease;
}

.resume-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px var(--glow);
}

header.scrolled {
    background: var(--darker);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 150px 100px;
  gap: 60px;
  flex-wrap: wrap;
  background: var(--dark);
  color: var(--text);
}

.about-content {
  max-width: 800px;
}
.follow-me {
  margin-top: 30px;
}

.follow-me h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Circular Social Icons */
.social-icons a:not(.resume-btn) {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:not(.resume-btn):hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #00e6ff, 0 0 20px #731bb1;
}

/* Resume Button Right of Mail */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  color: #fff;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00e6ff, 0 0 25px #731bb1;
}

/* Resume Button */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  color: #fff;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.resume-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00e6ff, 0 0 25px #731bb1;
}


.about-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 50px auto;
}

/* Main circular image */
.about-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 230, 255, 0.7),
              0 0 60px rgba(115, 27, 177, 0.5),
              0 0 90px rgba(0, 230, 255, 0.3);
  animation: glowPulse 2s ease-in-out infinite alternate;
}

/* Image inside the circle */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Optional hover zoom */
.about-image:hover img {
  transform: scale(1.1);
}

/* Glow animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 230, 255, 0.5),
                0 0 40px rgba(115, 27, 177, 0.3),
                0 0 60px rgba(0, 230, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 230, 255, 0.7),
                0 0 70px rgba(115, 27, 177, 0.5),
                0 0 100px rgba(0, 230, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 230, 255, 0.5),
                0 0 40px rgba(115, 27, 177, 0.3),
                0 0 60px rgba(0, 230, 255, 0.2);
  }
}


/* Optional: gradient border using pseudo-element */
.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 10px; /* same as border */
  border-radius: 50%;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


/* Multidirectional Floating Animation */
@keyframes floatAll {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(15px, -10px); }
  50%  { transform: translate(-15px, 10px); }
  75%  { transform: translate(10px, 15px); }
  100% { transform: translate(0, 0); }
}

/* Slow rotation */
@keyframes rotateImg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glow pulse effect */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 230, 255, 0.5), 0 0 60px rgba(0, 230, 255, 0.3); }
  50%       { box-shadow: 0 0 50px rgba(0, 230, 255, 0.8), 0 0 80px rgba(0, 230, 255, 0.5); }
}

/* Subtle scaling */
@keyframes scaleBounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-top: 20px;
  }
}

.about-content h2 {
  font-size: 2.8em;
  margin-bottom: 0%;
}

.about-content h2 span {
  color: var(--primary);
}

.about-content h4 {
  font-size: 1.2em;
  color: var( --gradient);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 13px;
  text-align: justify; 
}

.about-content .button {
  background: var(--gradient);
  color: var(--dark);
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
  box-shadow: 0 4px 15px var(--glow);
}

.about-content .button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--primary);
}

.services-section {
  padding: 90px 60px;
  text-align: center;
}
.services-section h2 span {
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-cards {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: var(--card-dark);
  padding: 50px 34px;
  border-radius: var(--radius);
  flex: 0 0 320px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 230, 255, 0.08);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px var(--glow);
}
.card i {
  font-size: 2.6em;
  color: var(--primary);
  margin-bottom: 16px;
}
.card h3 {
  margin: 10px 0;
  font-size: 1.3em;
}
.card p {
  color: var(--muted);
  line-height: 1.7;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.gradient-text {
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #555;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  margin-bottom: 50px;
}
.timeline-card {
  background: #1e1e2f;
  color: #fff;
  padding: 20px;
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.timeline-card.left {
  margin-right: auto;
  text-align: right;
}
.timeline-card.right {
  margin-left: auto;
  text-align: left;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: #00e6ff;
  border-radius: 50%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-card .duration {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .timeline-card {
    width: 90%;
    text-align: left !important;
  }
  .timeline-card.left,
  .timeline-card.right {
    margin: 0 auto;
  }
  .timeline-item::after {
    left: 5%;
  }
  .timeline-container::before {
    left: 5%;
  }
}

.skills-section {
  padding: 90px 60px;
  text-align: center;
  background: #0f1629;
}
.skills-section h2 span {
  color: var(--primary);
}
.skills-intro {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.7;
}
.skills-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.progress-bar {
  width: 100%;
  background: #1b2236;
  border-radius: 10px;
  overflow: hidden;
  height: 12px;
  box-shadow: inset 0 0 8px var(--glow);
}
.progress {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient);
  transition: width 1s ease-in-out;
}
.progress.java {
  width: 90%;
}
.progress.html {
  width: 95%;
}
.progress.css {
  width: 90%;
}
.progress.js {
  width: 85%;
}
.progress.mysql {
  width: 80%;
}
.progress.design {
  width: 85%;
}

.certifications {
  padding: 90px 40px;
  text-align: center;
  background: var(--dark);
}
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  -webkit-background-clip: text;
  color: transparent;
}
.certification-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.certificate-card {
  background: var(--card-dark);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 230, 255, 0.1);
  transition: 0.3s;
}
.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px var(--glow);
  border: 1px solid var(--primary);
}
.certificate-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 600;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  color: var(--dark);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--glow);
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px var(--glow);
}

.portfolio-section {
  padding: 80px 60px;
  background: radial-gradient(circle at top left, #0b1120, #0a0f1f 60%);
  text-align: center;
  color: var(--text);
}

.portfolio-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text);
}

.portfolio-section h2 span {
  background: linear-gradient(90deg, #00e6ff, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gallery Grid */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-content: center;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 25, 40, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(12px);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Overlay Text */
.project-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.6), rgba(0, 123, 255, 0.6));
  padding: 12px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  transition: all 0.4s ease;
}

.project-card:hover .project-title {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.9), rgba(0, 123, 255, 0.9));
  color: var(--dark);
}

.skills-section {
  padding: 80px 100px;
  background: var(--dark);
  color: var(--text);
  text-align: center;
}
.skills-section .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.skills-section .gradient-text {
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.skills-section .underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  margin: 0 auto 50px;
  border-radius: 2px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 75px;
  justify-content: center;
  margin-bottom: 60px;
}
.skills-column {
  flex: 500px;
  max-width: 550px;
}
.skills-column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.skill {
  margin-bottom: 20px;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.skill-bar {
  height: 10px;
  background: #2a2f3d;
  border-radius: 10px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00e6ff,  #731bb1);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.tool {
  flex: 1 1 calc(25% - 2rem); /* 4 per row */
  max-width: calc(25% - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #0b1120, #151b2a);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 230, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  cursor: pointer;
}

.tool:hover {
  transform: translateY(-8px);
  border-color: #00e6ff;
  box-shadow: 0 0 25px rgba(0, 230, 255, 0.4);
}

.tool i {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease;
}

.tool:hover i {
  transform: scale(1.15);
}

/* Logo colors */
.tool i.fa-html5 { color: #e34f26; }      /* HTML */
.tool i.fa-css3-alt { color: #1572b6; }   /* CSS */
.tool i.fa-js { color: #f7df1e; }         /* JS */
.tool i.fa-react { color: #61dafb; }      /* React */
.tool i.fa-node-js { color: #3c873a; }    /* Node.js */
.tool i.fa-database { color: #007acc; }   /* Database (blue) */
.tool i.fa-git-alt { color: #f05032; }    /* Git */
.tool i.fa-npm { color: #cb3837; }        /* NPM */
.tool i.fa-sass { color: #cd6799; }       /* Sass */
.tool i.fa-figma { color: #a259ff; }      /* Figma */
.tool i.fa-terminal { color: #38bdf8; }   /* Terminal (cyan blue) */
.tool i.fa-linux { color: #ffffff; }      /* Linux */
.tool i.fa-paint-brush { color: #05c4f1; } /* Design tools */

.tool span {
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .tool {
    flex: 1 1 calc(50% - 1.5rem); /* 2 per row */
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 480px) {
  .tool {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .tool i {
    font-size: 2rem;
  }

  .tool span {
    font-size: 0.9rem;
  }
}

.contact-section {
  background-color: #0b1120;
  color: #fff;
  padding: 80px 20px;
  font-family: "Poppins", sans-serif;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  margin: 8px auto 40px;
  border-radius: 2px;
}

/* Flex container */
.contact-flex {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 25px;
}

.contact-desc {
  color: #b0b5c5;
  margin-bottom: 24px;
  line-height: 1.6;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  background-color: #151b2a;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: 0 0 15px #00e6ff;
}

.info-card .icon {
  background-color: #0b1120;
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e6ff;
  font-size: 1.25rem;
}

.info-card h4 {
  margin: 0 0 4px;
  font-weight: bold;
}

.info-card p, .info-card a {
  margin: 0;
  color: #b0b5c5;
}

.info-card a {
  color: #00e6ff;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Form Styles */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 17px 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  background-color: #151b2a;
  color: #fff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 2px solid #00e6ff;
}

.contact-form button {
  padding: 17px 13px; 
  margin-left: 50px;
  border: none;
  border-radius: 12px; 
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  color: #0b1120;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-form button:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
  }
}
.theme-toggle {
  background: linear-gradient(90deg, #00e6ff, #731bb1);
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px #00e6ff, 0 0 20px #731bb1;
}

.theme-toggle i {
  font-size: 1.2rem;
}
