/*
  ==============================
  Base & Typography Styles (DARK THEME)
  ==============================
*/


  #preloader {
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background: radial-gradient(circle at center, #080f1f 60%, #000);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    #preloader.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    .ring {
      position: relative;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 6px solid transparent;
      border-top: 6px solid #00ffe0;
      animation: spin 1.2s linear infinite;
      box-shadow: 0 0 25px #00ffe0;
    }

    .ring::before {
      content: '';
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      border: 6px solid transparent;
      border-bottom: 6px solid #ff00ff;
      animation: spinReverse 1.5s linear infinite;
      box-shadow: 0 0 20px #ff00ff;
    }

    .loading-text {
      color: #fff;
      font-size: 1.3rem;
      letter-spacing: 2px;
      margin-top: 20px;
      animation: fadeText 1.8s ease-in-out infinite;
      font-family: 'Poppins', sans-serif;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes spinReverse {
      0% { transform: rotate(360deg); }
      100% { transform: rotate(0deg); }
    }

    @keyframes fadeText {
      0%, 100% { opacity: 0.2; }
      50% { opacity: 1; }
    }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float i {
  margin-top: 15px;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}


:root {
    /* Dark Theme Colors */
    --primary-color: #00f2ff; /* A vibrant teal/cyan for accents */
    --secondary-color: #121a27; /* Mid-dark gray for cards/secondary elements */
    --bg-color: #0a0f1a; /* DEEPER Dark background for most sections */
    --text-color: #EEEEEE; /* Light text for high contrast */
    --white: #ffffff;
    --heading-font-size: 2.5rem;
    --subheading-font-size: 1.5rem;

    /* New for dark theme */
    --card-bg: var(--secondary-color);
    --input-bg: #1c2438; /* Slightly lighter dark for inputs */
    --input-border: #4E545F;
    --btn-hover-bg: #00777C; /* Slightly darker primary for hover */
    --section-bg-gradient: linear-gradient(135deg, #0a0f1a, #141b2d); /* Distinct gradient for sections that stand out */
}

body {
    /* Use the deep dark color for the overall body background */
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7; /* Slightly looser line height for dark text */
    overflow-x: hidden;
    margin:0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* --- UPDATED: Apply general section background from a variable --- */
section {
    padding: 4rem 5%;
    min-height: 100vh;
    /* Use the distinct gradient for most sections */
    background: var(--section-bg-gradient);
}

/*
  ==============================
  Utility Classes
  ==============================
*/
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    color: var(--text-color); /* Contrast icon */
    margin-right: 0.5rem;
}

span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--bg-color); /* Dark text on bright button */
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color); /* Primary color text on hover */
}

/*
  ==============================
  Header & Navigation (DARK THEME)
  ==============================
*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--bg-color); /* Dark header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #393E46; /* Subtle border */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-talk {
    padding: 0.5rem 1.5rem;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.btn-talk:hover {
    background: var(--primary-color);
    color: var(--bg-color); /* Dark text on bright button */
}

.menu-btn, .close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    display: none;
}

/* Mobile Navigation Setup (DARK THEME) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: var(--secondary-color); /* Use secondary dark color */
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .logo {
    color: var(--primary-color);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-color);
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay */
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/*
  ==============================
  Hero Section (DARK THEME)
  ==============================
*/
.hero-container {
    padding-top: 6rem;
    min-height: 110vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.content {
    flex: 1 1 500px;
    order: 1;
}
.connn {
    flex: 1 1 250px;
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.connn img {
       width: 380px;
    height: 400px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 5px solid transparent;
    background: linear-gradient(black, black) padding-box,
                linear-gradient(270deg, red, orange, yellow, green, cyan, blue, violet, red) border-box;
    background-size: 300% 300%; /* important for movement */
    animation: borderMove 5s linear infinite;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Animate gradient position */
@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position:0% 50%;
}
}


/* Spinner border */


.content h1 {
    font-size: var(--heading-font-size);
    margin-bottom: 0.5rem;
}

.content h2 {
    font-size: var(--subheading-font-size);
    font-weight: 500;
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 2rem;
    max-width: 600px;
    color: #ccc; /* Slightly muted body text */
}

.hero-container > .btn {
    align-self: flex-start;
    order: 3;
    width: auto;
}

/* Social Icons Styling */
.social-icons {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-color); /* Light icons */
    margin-right: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/*
  ==============================
  About Section (DARK THEME)
  ==============================
*/
/* --- KEPT THE DISTINCT GRADIENT FOR VISUAL BREAK --- */
#about-section {
    background: var(--bg-color);
    padding: 8rem 5%;
     min-height: 100vh;
}

#about-section > h1 {
    text-align: center;
    font-size: var(--heading-font-size);
    margin-bottom: 3rem;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-img, .about-text {
    flex: 1 1 450px;
}

.about-img {
    text-align: center;
}

.about-img img {
    width: 380px;
    height: 400px;
    background-size: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 5px solid transparent;
    background: linear-gradient(black, black) padding-box,
                linear-gradient(270deg, red, orange, yellow, green, cyan, blue, violet, red) border-box;
    background-size: 300% 300%; /* important for movement */
    animation: borderMove 5s linear infinite;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.about-text h2 {
    font-size: 30px;
    margin-bottom: 1rem;
    text-align: left;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: #ccc;
}

.highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.about-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.info-card h3 {
    color: var(--bg-color); /* Darker text for contrast on primary */
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.info-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--bg-color);
}
.info-card:hover{
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/*
  ==============================
  Skills Section (DARK THEME)
  ==============================
*/
/* --- KEPT THE DISTINCT GRADIENT FOR VISUAL BREAK --- */
#skills-section {
    padding: 5rem 5%;
        background: var(--bg-color);
}

.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

.skills-container h2 {
    text-align: center;
    font-size: var(--heading-font-size);
    margin-bottom: 1rem;
}

.skills-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #ccc;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-name i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.skill-bar {
    background: #4E545F; /* Darker bar background */
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: var(--target-width, 0%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: var(--bg-color); /* Dark text on bright fill */
    font-size: 0.75rem;
    font-weight: 700;
    transition: width 1s ease-out;
}

/*
  ==============================
  SERVICES SECTION STYLES (DARK THEME)
  ==============================
*/
/* --- REMOVED REPETITIVE GRADIENT (NOW USES GENERAL SECTION STYLE) --- */
#services-section {
    padding: 60px 8%;
    text-align: center;
      background: var(--bg-color);
}

#services-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

#services-section h1 span {
    color: var(--primary-color);
}

.services-intro {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
     background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    border: 1px solid #4E545F; /* Subtle border */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.service-readmore:hover {
    color: var(--btn-hover-bg);
}

.service-readmore i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.service-readmore:hover i {
    transform: translateX(5px);
}

/*
  ==============================
  PORTFOLIO SECTION STYLES (DARK THEME)
  ==============================
*/
/* --- REMOVED REPETITIVE GRADIENT (NOW USES GENERAL SECTION STYLE) --- */
#portfolio-section {
    padding: 60px 8%;
    text-align: center;
      background: var(--bg-color);
}

#portfolio-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

#portfolio-section h1 span {
    color: var(--primary-color);
}

.portfolio-intro {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    border: 1px solid #333; /* Subtle border */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 15px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #4E545F; /* Darker background for default button */
    color: var(--text-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.link-btn i {
    margin-right: 8px;
}

.link-btn:hover {
    background-color: #616773;
}

.live-btn {
    background-color: var(--primary-color);
    color: var(--bg-color); /* Dark text on primary */
}

.live-btn:hover {
   background-color: var(--btn-hover-bg);
   color: var(--bg-color);
}

.portfolio-action {
    margin-top: 50px;
}

/* Override the general .btn style to make it prominent here */
.portfolio-action .btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.portfolio-action .btn:hover {
    background: var(--btn-hover-bg);
}




#cantact {
  padding: 80px 10%;
    background: var(--bg-color);
 
}    

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #00f2ff;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #bbb;
  margin-bottom: 50px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #00f2ff;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  display: inline-block;
  color: #00f2ff;
  font-size: 1.2rem;
  margin-right: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.input-box {
  margin-bottom: 20px;
}

.input-box input,
.input-box textarea {
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.input-box input:focus,
.input-box textarea:focus {
  border: 1px solid #00f2ff;
  background: rgba(255, 255, 255, 0.15);
}

.btn {
  background: #00f2ff;
  border: none;
  color: #000;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #00c6d4;
}
footer {
  
      background: var(--bg-color);

  color: #ccc;
  padding: 70px 10% 20px;
  margin: 0;
  margin-top: 50px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-about {
  flex: 1 1 300px;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00f2ff;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-about p {
  font-size: 1rem;
  color: #aaa;
  max-width: 400px;
  line-height: 1.6;
}

.footer-links,
.footer-social {
  flex: 1 1 200px;
}

.footer-links h3,
.footer-social h3 {
  color: #00f2ff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #00f2ff;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #00f2ff;
  font-size: 1.4rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #888;
}









/* Tablet/Small Desktop (up to 992px) */
@media (max-width: 992px) {
    :root {
        --heading-font-size: 2rem;
        --subheading-font-size: 1.3rem;
    }

    /* Hero Section adjustments */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .content {
        order: 2;
        flex: 1 1 100%;
    }

    .connn {
        order: 1;
        margin-bottom: 2rem;
        flex: 1 1 100%;
    }

    .connn img {
        width: 340px;
        height: 350px;
    }

    .hero-container > .btn {
        align-self: center;
        order: 3;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-right: 0;
    }

    .social-icons a {
        margin-right: 0;
    }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-about p {
    max-width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
    
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .nav-links, .btn-talk {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    /* About Section adjustments */
    .about-container {
        flex-direction: column;
    }

    .about-text, .about-img {
        flex: 1 1 100%;
        text-align: center;
    }

    .about-img img {
       width: 300px;
       height: 300px ;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-info {
        flex-direction: column;
    }

    /* Services Section adjustments */
    #services-section {
        padding: 40px 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    /* Portfolio Section adjustments */
    #portfolio-section {
        padding: 40px 5%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

      .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

    
}


/* Very Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    :root {
        --heading-font-size: 1.8rem;
        --subheading-font-size: 1.1rem;
    }

    section {
        padding: 3rem 5%;
    }
    
    .hero-container {
        /* Reduced padding for smaller viewport */
        padding-top: 5rem;
    }

    .connn img {
        max-width: 250px; /* Reduced image size */
        height: 250px ;
    }

    .social-icons a {
        font-size: 1.3rem;
    }
    .info-card{
   
    }


}
