/* --- BASE VARIABLES & RESET --- */
:root {
    --bg-main: #060913;
    --bg-card: #0d1224;
    --bg-card-hover: #151d36;
    --primary-color: #00e5ff;
    --secondary-color: #7b2cbf;
    --text-light: #ffffff;
    --text-muted: #a0a8b1;
    --gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY & UTILITIES --- */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.mt-2 { margin-top: 1.5rem; }
.mt-4 { margin-top: 3rem; }
.w-100 { width: 100%; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
/*.section-title .subtitle {*/
/*    color: var(--primary-color);*/
/*    font-size: 0.9rem;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 2px;*/
/*}*/
.section-title h2 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(6, 9, 19, 0.6);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
}
.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 0 !important;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }
.nav-btn { padding: 0.5rem 1.5rem; font-size: 0.9rem; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10% 4rem;
    gap: 4rem;
}
.hero-content { flex: 1; }
.hero-content .subtitle {
    color: var(--primary-color);
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    margin: 1rem 0;
}
.hero-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: 0.3s;
    border: 1px solid var(--border-color);
}
.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.hero-image { flex: 1; display: flex; justify-content: center; }
.img-wrapper {
    width: 400px; height: 400px;
    border-radius: 50%;
    padding: 10px;
    background: var(--gradient);
    animation: pulseGlow 3s infinite alternate;
}
.img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #111;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
    100% { box-shadow: 0 0 40px rgba(123, 44, 191, 0.4); }
}

/* --- ABOUT SECTION --- */
.about { padding: 5rem 10%; }
.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}
.about-text { flex: 1; }
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.stat-box h3 { font-size: 2rem; color: var(--primary-color); }
.stat-box p { color: var(--text-muted); font-size: 0.9rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}
.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.service-card h3 { margin-bottom: 1rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- EXPERTISE SECTION --- */
.expertise { padding: 5rem 10%; background: #080b18; }
.skills-container {
    display: flex;
    gap: 4rem;
}
.skills-column { flex: 1; }
.column-title {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.column-title i { color: var(--primary-color); }

.skill-item { margin-bottom: 1.5rem; }
.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #1a2238;
    border-radius: 10px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    position: relative;
}

.tools-section {
    margin-top: 4rem;
    text-align: center;
}
.tools-section h3 { margin-bottom: 1.5rem; }
.tools-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.tools-tags span {
    background: var(--bg-card);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* --- PROJECTS SECTION --- */
.projects { padding: 5rem 10%; }
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
}

/* Button */
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap; /* FIX (text-wrap is not widely supported) */
    transition: 0.3s;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;       /* keep in one line */
        overflow-x: auto;        /* enable horizontal scroll */
        padding-bottom: 10px;
        scrollbar-width: none;   /* hide scrollbar (Firefox) */
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;           /* hide scrollbar (Chrome) */
    }

    .filter-btn {
        flex: 0 0 auto;         /* prevent shrinking */
        font-size: 14px;
        padding: 0.5rem 1.2rem;
    }
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    display: block; /* For JS filtering */
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.project-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}
.placeholder-gradient {
    background: linear-gradient(45deg, #0f172a, #1e1b4b);
}
.project-info { padding: 1.5rem; }
.project-info .tag {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}
.project-info h3 { margin-bottom: 0.5rem; }
.project-info p { color: var(--text-muted); font-size: 0.9rem; }

/* --- TIMELINE SECTION --- */
.timeline-section { padding: 5rem 10%; background: #080b18; }
.timeline-container { display: flex; gap: 4rem; }
.timeline-column { flex: 1; }
.timeline-column h3 { margin-bottom: 2rem; display: flex; align-items: center; gap: 0.8rem; }
.timeline-column h3 i { color: var(--primary-color); }

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid var(--bg-card-hover);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}
.timeline-item .date {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.timeline-item h4 { margin-bottom: 0.2rem; }
.timeline-item .company { color: var(--text-muted); font-size: 0.9rem; display: block; margin-bottom: 0.8rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- CONTACT SECTION --- */
.contact { padding: 5rem 10%; }
.contact-container {
    display: flex;
    gap: 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.contact-info { flex: 1; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item .icon {
    width: 40px; height: 40px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-item h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-item p { color: var(--text-muted); font-size: 0.9rem; }

.contact-form { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.input-group { display: flex; gap: 1rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
}
.contact-form textarea { resize: none; }

/* --- FOOTER --- */
footer {
    padding: 2rem 10%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
}
footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a { margin-left: 1rem; color: var(--text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--primary-color); }

/* --- ANIMATIONS & RESPONSIVE --- */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero, .about-container, .skills-container, .timeline-container, .contact-container {
        flex-direction: column-reverse;
    }
    .hero { text-align: center; padding-top: 150px; }
    .hero-btns, .social-links { justify-content: center; }
    .nav-links { display: none; /* Add mobile menu toggle logic here if expanded further */ }
    .hero-img-container{margin-top:60px;width: 320px !important;  height: 320px !important;}
}

/* ===== HERO RIGHT (Profile Image) ===== */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 100px;
}

.hero-img-container {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  animation: border-glow 4s linear infinite;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: 0 0 350px rgb(99 102 241 / 50%);
}

@keyframes border-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-img-container::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--bg-color);
  border-radius: 50%;
  z-index: 1;
}

.hero-img {
  width: 90%;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  filter: brightness(1.25);
}

/* FLOATING CARDS */
.floating-card {
  position: absolute;
  padding: 12px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card1 { top: 20%; left: -5%; animation: float-up 3s ease-in-out infinite; }
.card2 { bottom: 20%; right: -5%; animation: float-up 3s ease-in-out infinite reverse; }

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none; /* Ensures you can click through it */
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out;
}

.cursor-glow {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    /* Glowing gradient matching your theme */
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(123, 44, 191, 0) 70%);
    box-shadow: 0 0 20px 5px rgba(0, 229, 255, 0.2);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Animation when hovering over links or buttons */
body.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background-color: var(--secondary-color);
}

body.hovering .cursor-glow {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.4) 0%, rgba(0, 229, 255, 0) 70%);
    box-shadow: 0 0 30px 10px rgba(123, 44, 191, 0.3);
}

/* Hide custom cursor on smaller screens to allow normal touch behavior */
@media (max-width: 992px) {
    .cursor-dot, .cursor-glow {
        display: none;
    }
    body, a, button, input, textarea {
        cursor: auto;
    }
    
    .hero-text{
      font-size: 40px !important;
    }
    
    .btn-primary, .btn-secondary {
    font-size: .75rem;
}
.marquee {
    text-align: center;
    margin: auto;
}

.hero-right {
  margin-top: 0px;
}
}

@media (max-width: 768px) {

    .contact-container {
        flex-direction: column;   /* stack */
        gap: 2rem;
    }

    .input-group {
        flex-direction: column;   /* name + email stack */
        gap: 0.8rem;
    }

    .contact-info p {
        font-size: 14px;
    }

    .info-item {
        gap: 0.8rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 0.75rem 0.9rem;
    }

    .btn-primary {
        font-size: 14px;
        /*padding: 0.7rem;*/
    }
    .marquee {
    width: 320px !important;
}
}

/* ===== SMALL DEVICES ===== */
@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.6rem;
    }

    .contact-info p {
        font-size: 13px;
    }
    
    .contact-container {
    padding: 1.8rem;
}

footer {
    flex-wrap: wrap !important;
    justify-content: center !important;
}
    
    }
    
    .project-img {
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px !important;
}

  .marquee {
    width: 475px;
    overflow: hidden;
    position: relative;
    color: #a0a8b1 !important;
    font-size: 14px !important;
}

    .marquee-track {
      display: flex;
      align-items: center;
      gap: 16px;
      width: max-content;
    }

    .animate {
      animation: scroll 60s linear infinite; /* slower for more items */
    }

    @keyframes scroll {
      from {
        transform: translateX(0);
      }
      to {
        transform: translateX(-50%);
      }
    }

    /*.marquee:hover .marquee-track {*/
    /*  animation-play-state: paused;*/
    /*}*/

    .dot {
      opacity: 0.6;
      margin: 0 8px;
    }

    .fade-left,
    .fade-right {
      position: absolute;
      top: 0;
      width: 60px;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      transition: opacity 0.8s ease;
    }

    .fade-left {
      left: 0;
      background: linear-gradient(to right, #060913, transparent);
      opacity: 0;
    }

    .fade-right {
      right: 0;
      background: linear-gradient(to left, #060913, transparent);
      opacity: 1;
    }

    .show-left-fade {
      opacity: 1;
    }
    
    .text {
     color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    }

    .cursor {
      display: inline-block;
      margin-left: 5px;
      animation: blink 1s infinite;
    }

    @keyframes blink {
      50% { opacity: 0; }
    }
    
.hover-linkedin:hover {
  background-color: #0073B2 !important;
}

.hover-insta:hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4) !important;
}

.hover-whatsapp:hover {
  background-color: #25D366 !important;
}

.hover-twitter:hover {
  background-color: #1DA1F2 !important;
}
    
    .project-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: 0.4s ease;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s ease;
}

/* Icon */
.icon {
  font-size: 28px;
  color: #fff;
  transform: translateY(10px);
  transition: 0.3s ease;
}

/* Hover Effects */
.project-card:hover img {
  /*transform: scale(1.05);*/
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card:hover .icon {
  transform: translateY(0);
}

/*.overlay a {*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    background: var(--primary-color);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    color: var(--text-muted);*/
/*    transition: 0.3s;*/
/*    border: 1px solid var(--border-color);*/
/*}*/

/*.overlay i{*/
/*  font-size: 14px;*/
/*  color: #fff;*/
/*}*/
    
    