/* Keyframes for animations */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes logo-drop-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Keyframes for typing animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

/* Color classes for animated text */
.color-1 { color: #4ade80; } /* Green */
.color-2 { color: #7873f5; } /* Purple */
.color-3 { color: #ff6ec4; } /* Pink */


/* Basic Reset & Typography */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Updated Body with Dark Theme and Animated Background --- */
body {
    line-height: 1.6;
    color: #e0e0e0; /* Lighter text for dark background */
    background: linear-gradient(-45deg, #000000, #1a3e63, #000000, #0033c0);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}


/* Navbar */
.navbar {
    /* Slightly transparent dark background for the navbar */
    background: #000000;
    /* padding: 1rem 0; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logom{
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff; /* White logo text */
    animation: logo-drop-in 0.8s ease-out forwards;
}
.navbar .logom img {
    width: 140px;
    cursor: pointer;
    object-fit: contain;
    animation: logo-drop-in 0.8s ease-out forwards;
}
.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    background-color: transparent;
    padding: 0.5rem 1rem; /* Add padding for the border */
    border: 2px solid transparent; /* Prepare for border on hover */
    border-radius: 20px; /* Rounded corners */
    transition: border-color 0.3s ease, color 0.3s ease; /* Smooth transition for border-color and text color */
   
}
.navbar nav a:hover {
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
   
}
.navbar nav a:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80, #ff6ec4);
    background-size: 400% 400%;
    animation: glowing 8s linear infinite;
    z-index: -1;
    filter: blur(5px);
    border-radius: 10px;
    opacity: 0.5;
}
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-media a {
    color: #6937ff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}


/* Call to Action Button */
.cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar .cta-button {
    color: #fff !important;
    border: 2px solid #007bff; /* Match the border style */
    border-radius: 20px; /* Match the rounded corners */
}

.cta-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
    border-color: #0056b3; /* Match border to background on hover */
}

/* Hero Section */
.hero {
    background: transparent; /* Remove the solid background to show the animated one */
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
/* Styling for the animated H1 */
.hero h1.animated-text {
    display: inline-block;
    overflow: hidden; /* Ensures the text is not visible until the typing animation happens */
    white-space: nowrap; /* Keeps the content on a single line */
    border-right: .15em solid orange; /* The typewriter cursor */
    letter-spacing: .05em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    transition: color 0.5s ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
/* Teach Stack  */
.tech-stack {
      background: radial-gradient(circle, var(--glow-color, #79646471, #241d1d63) 0%, transparent 70%);
      color: #fff;
      padding: 4rem 0;
      text-align: center;
      justify-content: center;
      overflow-x: hidden;
}   
    h1 {
      font-size: 2rem;
      font-weight: 600;
      text-align: center;
      margin-bottom: 3rem;
      line-height: 1.4;
      color: #fff;
    }
    .tech-stack .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(12, 80px);
      grid-auto-rows: 80px;
      gap: 16px;
      max-width: 100%;
      justify-content: center;
      position: relative;
    }

    .tile {
      width: 80px;
      height: 80px;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: all 0.3s ease;
      overflow: hidden;
      border-radius: 50%; /* Make the tile circular */
    }

    .tile img {
      width: 40px;
      height: 40px;
      object-fit: contain;
      transition: transform 0.3s ease;
      z-index: 2;
    }

    .tile:hover img {
      transform: scale(1.2);
    }

    /* Glow highlight */
    .tile::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 150%;
      height: 150%;
      background: radial-gradient(circle, var(--glow-color, #e0242471, #ffffff8f) 0%, transparent 70%);
      transform: translate(-50%, -50%);
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 1;
    }

    /* Fade-in animation */
    @keyframes fadeInUp {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .tile {
      animation: fadeInUp 0.6s ease forwards;
      opacity: 0;
    }
    
    .tile:hover::before {
      opacity: 0.7;
    }



/* Services Section */
.services-section {
    padding: 4rem 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.service-card {
    background: #b3b0b027; /* Darker card background */
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    /* Adjusted transition for smoother mouse-following effect */
    transition: transform 0.2s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d; /* Enable 3D transformations */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: scale(1.05); /* Enlarge card on hover */
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
    border-color: #908bec65; /* Glowing border effect */
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(221, 208, 208, 0.3);
    transform: translateZ(40px); /* Make icon pop out */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.service-card p {
    flex-grow: 1; /* Allows description to take up available space */
    margin-bottom: 1.5rem;
}

.card-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.subtm {
    background-color: #007bff; /* Primary blue */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-grow: 1;
}


.btn {
    flex-grow: 1;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateZ(20px); /* Make buttons pop out slightly */
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}
/* project section  */

.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.subtitle {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 5px;
}

.title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.title span {
  color: #8e44ad;
}

.description {
  color: #666;
  margin-bottom: 30px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: #eee;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #8e44ad;
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.projects-grid .card {
  background: rgba(194, 194, 194, 0.185);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-grid .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.projects-grid .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.projects-grid .card-body {
  padding: 15px;
  text-align: left;
}

.projects-grid .card-body h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.card-body a {
  text-decoration: none;
  color: #3498db;
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  background: #000000b2;
  border-radius: 20px;
}
/* Our Work  */
   

    .work-content {
      text-align: left;
    }

    .work-content img {
      height: 40px;
      margin-bottom: 20px;
    }

    .work-content p {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 20px;
      color: #d1d5db;
    }

    .work-btn {
      padding: 14px 24px;
      border: none;
      border-radius: 25px;
      font-size: 0.95rem;
      font-weight: bold;
      cursor: pointer;
      color: #fff;
      background: linear-gradient(90deg, #32ff6a, #00c853);
      transition: all 0.3s ease;
    }

    .work-btn:hover {
      background: linear-gradient(90deg, #00c853, #32ff6a);
      transform: translateY(-2px);
    }

    .work-image img {
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }

    .work-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: background 0.3s ease;
    }

    .work-arrow:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .work-arrow.left { left: 20px; }
    .work-arrow.right { right: 20px; }

    .work-dots {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
    }

    .work-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      cursor: pointer;
      transition: background 0.3s ease, transform 0.3s ease;
    }

    .work-dot.active {
      background: #fff;
      transform: scale(1.2);
    }



    /* Popup Styles */
    .work-popup {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.7);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .work-popup.active {
      display: flex;
    }

    .work-popup-content {
      background: #161b22;
      padding: 30px;
      border-radius: 14px;
      max-width: 400px;
      width: 100%;
      text-align: center;
    }

    .work-popup-content h2 {
      margin-bottom: 20px;
      font-size: 1.4rem;
      color: #fff;
    }

    .work-popup-content input {
      width: 100%;
      padding: 12px;
      margin: 10px 0;
      border-radius: 8px;
      border: 1px solid #444;
      background: transparent;
      color: #fff;
    }

    .work-popup-content button {
      margin-top: 10px;
    }

    .work-popup-close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 1.5rem;
      color: #fff;
      cursor: pointer;
    }

/* contact section */
.contact-section {
  padding: 4rem 0;
  position: relative;
  /* background-color: #0a0a0a; Dark background for the section */
}
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><rect fill="%23000000" width="800" height="800"/><g fill-opacity="0.4"><circle fill="%23000000" cx="400" cy="400" r="600"/><circle fill="%2316213e" cx="400" cy="400" r="500"/><circle fill="%230f3460" cx="400" cy="400" r="400"/><circle fill="%23533483" cx="400" cy="400" r="300"/><circle fill="%23e94560" cx="400" cy="400" r="200"/><circle fill="%23ff9b54" cx="400" cy="400" r="100"/></g></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(80px);
}
.growth-heading {
      font-size: 2.5rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 50px;
      background: linear-gradient(90deg, #ff6b6b, #ffb86b, #a18bff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      position: relative; /* Ensure it's above the pseudo-element */
    }

    .growth-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 30px;
      max-width: 1100px;
      width: 100%;
      margin: 0 auto; /* Center the container */
      position: relative; /* Ensure it's above the pseudo-element */
    }

    .growth-card {
      background: rgba(18, 18, 18, 0.5);
      backdrop-filter: blur(10px);
      border-radius: 14px;
      padding: 30px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .growth-card h2 {
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 20px;
      background: linear-gradient(90deg, #ff6b6b, #ffb86b, #a18bff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .work-slide {
      grid-template-columns: 1fr;
      gap: 20px;
      text-align: center;
    }

    .growth-card p {
      line-height: 1.6;
      font-size: 0.95rem;
      margin-bottom: 20px;
      color: #d1d5db;
    }

    .growth-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .growth-list li {
      margin-bottom: 15px;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .growth-list li::before {
      content: "✔";
      color: #ff7b7b;
      margin-right: 8px;
    }

    .growth-form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .growth-form input,
      .growth-form textarea {
      padding: 12px 14px;
      border-radius: 8px;
      border: 1px solid #444;
      background: transparent;
      color: #fff;
      font-size: 0.95rem;
    }

    .growth-form input:focus {
      outline: none;
      border-color: #6b8bff;
      box-shadow: 0 0 8px rgba(107, 139, 255, 0.6);
    }

    .growth-btn {
      padding: 14px;
      border: none;
      border-radius: 25px;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
      color: #fff;
      background: linear-gradient(90deg, #32ff6a, #00c853);
      transition: all 0.3s ease;
    }

    .growth-btn:hover {
      background: linear-gradient(90deg, #00c853, #32ff6a);
      transform: translateY(-2px);
    } 
    
/* --- Popup Styles --- */
.popup-overlay {
  position: fixed;
  top: 0;
  /* left: 0; */
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  width: 70%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #fff;
}

.popup-content p {
  margin-bottom: 1.5rem;
  color: #9ca3af;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #595959;
  background: transparent;
  color: #000000;
  font-size: 0.95rem;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.8rem;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup-close:hover {
  color: #fff;
}

/* Footer */
.footer {
    background: #111; /* Darker footer */
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: #0095ff; /* Brighter link color for contrast */
    text-decoration: none;
}
.footer-section{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.social-media a {
    font-size: 1.5rem;
    align-items: center;
    transition: color 0.3s ease;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none; /* Hidden by default on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above the nav */
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-line::before,
.hamburger-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.hamburger-line::before {
    transform: translateY(-8px);
}

.hamburger-line::after {
    transform: translateY(8px);
}

/* Hamburger active state (X icon) */
.hamburger.active .hamburger-line {
    background-color: transparent;
}
.hamburger.active .hamburger-line::before {
    transform: rotate(45deg);
}
.hamburger.active .hamburger-line::after {
    transform: rotate(-45deg);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .navbar nav {
        display: none; /* Hide nav by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #222222e7;
    }

    .navbar nav.active {
        display: block; /* Show nav when active */
    }

    .navbar nav ul {
        flex-direction: column;
        width: 100%;
        height: 100vh; /* Full height for mobile menu */
        overflow-y: auto; /* Enable scrolling if needed */
        padding: 0.5rem 0;
    }

    .navbar nav li {
        text-align: center;
        padding: 0.5rem 0;
    }

    .navbar .cta-button {
        display: inline-block; /* Make CTA button block-like in mobile menu */
        
    }
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .services-grid {
    display: flex; 
    flex-direction: column;
    gap: 1.5rem;    
    }
    .service-card {
        padding: 2rem 1.5rem;
    }
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .services-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 15px;
        justify-content: center;
        max-width: 100%;
        width: 100%;
        padding: 0 1rem; /* Add horizontal padding on mobile */
        box-sizing: border-box; /* Ensure padding is included in the width */
    }
    .logo {
        width: 60px;
        height: 60px;
    }
    .logo img {
        width: 40px;
        height: 40px;
    }
    
}
