

/* =========================================
   1. GLOBAL & MASTER FIX (For White Space)
   ========================================= */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --dark: #0a0a0a;
    --light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Yeh line right side ki white space khatam kar degi */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #050505; /* Blackish background for portfolio */
}

/* =========================================
   2. NAVBAR STYLE (Fixed & Responsive)
   ========================================= */
.navbar {
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 15px !important;
}

.btn-hire {
    background: #ffffff;
    color: #000 !important;
    padding: 8px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

/* =========================================
   3. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablets & Mobile (991px and down) */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #000;
        margin-top: 15px;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
    }
    
    .nav-item {
        margin: 10px 0;
    }

    /* Images aur Headers ko adjust karna */
    h1 {
        font-size: 1.8rem !important; /* Mobile pe heading choti */
    }

    img {
        max-width: 100%; /* Image screen se bahar nahi jayegi */
        height: auto;
    }
}

/* Toggler Icon color fix */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* =========================================
   1. NAVBAR MAIN
   ========================================= */
.navbar {
  transition: all 0.4s ease-in-out;
  background: rgba(0, 0, 0, 0.8) !important; /* Background thora dark rakha hai taake text nazar aaye */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff !important;
  letter-spacing: 1.5px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-hire {
  background: #ffffff;
  color: #000000 !important;
  font-weight: 700;
  padding: 8px 25px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

/* =========================================
   2. RESPONSIVE LOGIC
   ========================================= */

/* Desktop (Big Screens) */
@media (min-width: 992px) {
  .nav-btn-container {
    margin-left: 20px;
  }
}

/* Mobile & Tablets (Small Screens) */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    margin-top: 15px;
    padding: 20px;
    border-radius: 15px;
    text-align: center; /* Sab kuch center karne ke liye */
  }

  .navbar-nav {
    margin-bottom: 20px !important;
  }

  .nav-item {
    padding: 10px 0;
  }

  .nav-btn-container {
    padding-bottom: 10px;
  }

  .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.2);
  }

  .navbar-toggler-icon {
    filter: invert(1); /* Toggler icon ko white karne ke liye */
  }
}




/* =========================================
   3. HERO SECTION (Updated with Mouse Glow)
   ========================================= */
.hero {
    padding: 120px 0 150px;
    background-color: #0a0012; 
    color: white; 
    position: relative; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Mouse Glow Effect Logic */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Spread increased to 800px for better visibility */
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(147, 51, 234, 0.15), 
        transparent 40%
    );
}

.hero .container {
    position: relative;
    z-index: 2;
}

.avatar-wrapper { 
    position: relative; 
    display: inline-block; 
}

.avatar {
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.1); 
    position: relative; 
    z-index: 2;
}

.avatar-glow {
    position: absolute; 
    width: 130%; 
    height: 130%; 
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(147, 51, 234, 0) 70%);
    top: -15%; 
    left: -15%; 
    animation: pulse 3s infinite;
}

.skills-cloud { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px; 
    margin: 0 auto; 
}

.skill-tag {
    background: rgba(255,255,255,0.03); 
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tag:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-5px);
}

.skill-tag i {
    font-size: 1.1rem;
}

.social-icon {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-decoration: none;
    transition: all 0.4s ease;
}

.social-icon:hover { 
    background: #9333ea; 
    color: white;
    transform: translateY(-8px) rotate(8deg); 
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
}

.floating { 
    animation: floating 3s ease-in-out infinite; 
}

/* --- Core Animations --- */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Responsive Fix */
@media (max-width: 768px) {
    .hero { padding: 100px 20px; }
    .display-4 { font-size: 2.2rem; }
}

/* =========================================
   4. ABOUT & PROJECTS
   ========================================= */
.about-section {
  position: relative;
  background-color: #0a0012;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.about-container-box {
  background-color: #000000;
  width: 100%;
  max-width: 1200px;
  border-radius: 24px;
  position: relative;
  overflow: hidden; 
  padding: 60px;
  z-index: 1;
}

/* --- Single Moving Border Line --- */
.border-glow {
  position: absolute;
  inset: -150%; /* Bada area taaki rotation smooth ho */
  z-index: -1;
  /* Sirf ek corner (10%) par color rakha hai taaki 1 line dikhe */
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg, 
    rgba(147, 51, 234, 1) 360deg
  );
  animation: rotateBorder 16s linear infinite;
}

/* Background overlay to keep center black */
.about-container-box::after {
  content: "";
  position: absolute;
  inset: 2px; /* Border ki motai yahan se control hogi */
  background: #000000;
  border-radius: 22px;
  z-index: -1;
}

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Big & Clear Mouse Glow --- */
.cursor-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Spread ko 900px kar diya aur opacity badha di */
  background: radial-gradient(
    900px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(147, 51, 234, 0.25), 
    rgba(139, 92, 246, 0.1) 20%, 
    transparent 70%
  );
  transition: opacity 0.2s ease;
}

/* Content & Layout Styles */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; position: relative; z-index: 2; }
.badge-custom { color: #9333ea; background: rgba(147, 51, 234, 0.15); padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; display: inline-block; }
.about-info h2 { font-size: 3rem; color: #fff; font-weight: 800; }
.about-info h2 span { color: #FFBF00; }
.about-info p { color: #a1a1aa; font-size: 1.1rem; line-height: 1.7; margin: 20px 0; }
.mini-cards-row { display: flex; gap: 15px; margin-bottom: 30px; }
.mini-card { flex: 1; background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 12px; border-left: 4px solid #9333ea; }
.mini-card h6 { color: #fff; margin-bottom: 5px; margin-top: 0; }
.mini-card p { font-size: 0.85rem; margin: 0; color: #71717a; }
.know-more-btn { background-color: #FFBF00; color: #000; border: none; padding: 14px 28px; font-weight: 700; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s ease; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: rgba(147, 51, 234, 0.03); border: 1px solid rgba(147, 51, 234, 0.1); border-radius: 18px; padding: 30px 10px; text-align: center; transition: 0.3s; }
.stat-card:hover { transform: translateY(-8px); border-color: rgba(147, 51, 234, 0.4); background: rgba(147, 51, 234, 0.08); }
.stat-card h3 { color: #fff; font-size: 2.2rem; font-weight: 800; margin: 0; }
.stat-card p { color: #a1a1aa; font-size: 0.85rem; margin-top: 5px; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-container-box { padding: 30px; }
}



/* --- PROJECTS SECTION BASE --- */
.projects-section {
  background-color: #0a0012; 
  padding: 100px 0;
  color: white;
  text-align: center;
}

/* THE FRAME DESIGN (Updated with your properties) */
.project-frame-card {
  background-color: #231436; /* Aapka frame color */
  border-radius: 12px;
  overflow: hidden;
  padding: 12px 12px 0 12px; /* Top, Left, Right padding for frame effect */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  width: 100%; /* Fix: Isko 100% rakha taake grid spacing sahi rahe */
}

.project-frame-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(56, 11, 161, 0.3);
}

/* Inner Image Container (The black screen look) */
.project-inner-frame {
  background: #000;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  /* Image ki height fix karne ke liye */
  aspect-ratio: 16 / 7; 
}

.img-holder img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important; /* Image fit fix */
  object-position: top;
  transition: transform 0.5s ease;
}

.project-frame-card:hover .img-holder img {
  transform: scale(1.05);
}

/* Card Content (Text area inside the frame) */
.card-content {
  padding: 20px 10px;
  background-color: #231436; /* Match with frame */
  text-align: left;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Live View Button inside frame */
.btn-frame-demo {
  display: block;
  text-align: center;
  background: rgba(147, 51, 234, 0.1);
  color: #fff;
  border: 1px solid rgba(147, 51, 234, 0.3);
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin-top: auto;
}

.btn-frame-demo:hover {
  background: #9333ea;
  color: white;
  border-color: #9333ea;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}







/* --- Technical Expertise Section (Services Style) --- */
.services-page {
  background-color: #0a0012;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-main-container {
  width: 100%;
  max-width: 1200px;
}

/* Header Styling */
.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.services-header h2 span {
  color: #FFBF00; /* Yellow accent maintained for consistency */
}

.services-header p {
  color: #a1a1aa;
  max-width: 600px;
  margin: 15px auto 0;
}

/* --- Boxed Grid Layout --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 Columns for Skills */
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.service-card {
  padding: 50px 30px;
  text-align: center;
  border: 0.5px solid rgba(147, 51, 234, 0.2);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: rgba(147, 51, 234, 0.05);
}

/* --- White Icon Logic --- */
.service-icon-wrapper {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.floating-icon {
  width: 70px;
  /* Filter updated for White Color with soft glow */
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  animation: continuousFloat 3s ease-in-out infinite;
}

.service-card h3 {
  color: #FFBF00;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Float Animation */
@keyframes continuousFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { 
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .services-header h2 { font-size: 2.2rem; }
}




/* =========================================
   5. CONTACT & FOOTER
   ========================================= */
/* --- Contact Section Styling --- */
.contact-section {
  background-color: #0a0012;
  padding: 100px 0;
  color: white;
}

.contact-section .section-title span { color: #FFBF00; }

/* Contact Cards (Left) */
.contact-card-wrapper { display: flex; flex-direction: column; gap: 20px; }

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
  color: white;
}

.contact-info-card:hover {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateX(10px);
}

.icon-box {
  width: 50px; height: 50px;
  background: rgba(147, 51, 234, 0.2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #9333ea; font-size: 1.2rem;
}

.whatsapp-icon { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.whatsapp-card:hover { border-color: #25d366; background: rgba(37, 211, 102, 0.05); }

.contact-info-card h6 { margin: 0; font-weight: 700; font-size: 1rem; }
.contact-info-card p { margin: 0; color: #a1a1aa; font-size: 0.9rem; }

/* Contact Form (Right) */
.form-glass-container {
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  color: white;
  transition: 0.3s;
  outline: none;
  margin-bottom: 10%;
}

.form-input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.send-btn {
  background: #FFBF00;
  color: #000;
  border: none;
  padding: 14px 5vh;
  /* margin-left: 20% !important; */
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
}

.send-btn:hover {
  background: #eab308;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 191, 0, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .contact-section { padding: 60px 0; }
  .form-glass-container { padding: 25px; }
}



/* =========================================
   6. ANIMATIONS
   ========================================= */
/* --- Premium Footer Styling --- */
.footer-section {
  background-color: #05000a; /* Thoda aur dark background */
  padding: 80px 0 40px;
  border-top: 1px solid rgba(147, 51, 234, 0.1);
  position: relative;
}

.footer-logo {
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.footer-logo span {
  color: #FFBF00; /* Signature Yellow */
}

.footer-nav .nav-link {
  color: #a1a1aa !important;
  font-weight: 500;
  transition: 0.3s;
  padding: 10px 20px;
}

.footer-nav .nav-link:hover {
  color: #FFBF00 !important;
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-social-icon:hover {
  background: #9333ea;
  color: white;
  transform: scale(1.1) rotate(8deg);
  border-color: #9333ea;
}

.footer-divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.5), transparent);
  margin: 0 auto;
}

.copyright-text {
  color: #71717a;
  font-size: 0.9rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .footer-nav { flex-direction: column; gap: 10px; }
  .footer-section { padding: 60px 0 30px; }
}