/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: white;
    background: linear-gradient(135deg, #000428, #004e92);
    overflow-x: hidden;
}

header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo img {
    width: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative; /* Enable dropdown positioning */
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    transition: color 0.3s;
    display: inline-block; /* Ensure padding applies correctly */
}

.nav-links a:hover {
    color: #00d4ff;
}

/* Dropdown styles */
.dropdown-menu {
    display: none; /* Initially hidden */
    position: absolute; /* Position relative to parent */
    top: 100%; /* Align dropdown below the parent */
    left: 0; /* Align dropdown with the parent */
    background-color: #444;
    list-style: none;
    padding: 0; /* Remove extra padding */
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Softer shadow */
    border-radius: 4px;
    z-index: 1000; /* Ensure it stays above other elements */
    min-width: 180px; /* Adjust width for better alignment */
}

.dropdown-menu li {
    margin: 0; /* Remove extra margin between items */
}

.dropdown-menu a {
    color: white;
    padding: 10px 16px; /* Larger padding for better usability */
    white-space: nowrap; /* Prevent text wrapping */
    display: block; /* Ensure each link occupies full width */
    text-align: left; /* Align text to the left */
    font-size: 14px; /* Slightly smaller font for dropdown */
}

.dropdown-menu a:hover {
    background-color: #575757;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown */
}

/* Adjust for mobile responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack logo and links */
    }

    .nav-links {
        flex-direction: column; /* Stack links vertically */
        align-items: flex-start; /* Align to left */
    }

    .dropdown-menu {
        min-width: 100%; /* Full width on smaller screens */
    }
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: url('robot-bg.jpg') no-repeat center center/cover;
    height: 70vh;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    animation: morph 4s infinite;
    text-align: center;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}


.cta {
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers the button horizontally */
    align-items: center; /* Centers the button vertically (if needed) */
    height: 100%; /* Ensures full height if necessary */
}

.cta .btn {
    text-decoration: none;
    background: #00d4ff;
    color: black;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s;
}

.cta .btn:hover {
    transform: scale(1.1);
}

.msme-hero-logo {
  max-width: 50px;
  vertical-align: middle;
  margin-left: 5px;
}


/* Layout for Two Columns */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensures full height for alignment */
}

.text-container, .image-container {
    flex: 1; /* Equal space for both containers */
    padding: 20px; /* Add some spacing inside */
    background: rgba(255, 255, 255, 0.1); /* Transparent background */
    border-radius: 10px; /* Rounded corners for the containers */
    margin: 10px; /* Space between columns */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
    backdrop-filter: blur(10px); /* Glass-like effect */
}

.text-container {
    text-align: left; /* Align text to the left */
}

.image-container img {
    width: 327px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column; /* Stack containers vertically on smaller screens */
    }

    .text-container, .image-container {
        margin: 10px 0; /* Reduce horizontal spacing */
    }
}

/* 🌈 Hackathon Section */
.hackathon-section {
  position: relative;
  height: 120vh;
  background: linear-gradient(-45deg, #ff4b1f, #ff9068, #00c9ff, #92fe9d);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hackathon-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  
  
}

.hackathon-title {
  font-size: 2.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff, #ffe259, #ffa751);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowText 2s ease-in-out infinite alternate;
}

@keyframes glowText {
  from { text-shadow: 0 0 5px #fff, 0 0 10px #ff7b00, 0 0 20px #ffae00; }
  to { text-shadow: 0 0 20px #ffe259, 0 0 30px #ffa751, 0 0 40px #ff4b1f; }
}

.hackathon-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.countdown-container h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffe259;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.3rem;
}

.countdown div {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.register-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 40px;
  font-size: 1.2rem;
  color: white;
  background: linear-gradient(90deg, #ff7b00, #ffae00);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 0 25px rgba(255, 174, 0, 0.6);
  animation: pulse 1.5s infinite;
}

.register-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(90deg, #ffa751, #ff4b1f);
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.9);
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px #ffae00; }
  50% { box-shadow: 0 0 30px #ffae00; }
  100% { box-shadow: 0 0 10px #ffae00; }
}

/* 🏆 Hackathon Info Section */
.hackathon-info {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  line-height: 1.8;
}

.hackathon-info p {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hackathon-info i {
  color: #ffae00;
  font-size: 1.3rem;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  from { text-shadow: 0 0 5px #ffae00, 0 0 10px #ff7b00; }
  to { text-shadow: 0 0 15px #ffe259, 0 0 25px #ffae00; }
}


/* Services Section */
.services {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.services-section-title {
    font-size: 36px;
    color: #004e92;
    margin-bottom: 40px;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-in-out;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexibility for responsive design */
    gap: 30px; /* Spacing between the service boxes */
    padding: 0 10px;
}

.service-box {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-box:hover {
    transform: translateY(-10px); /* Lifts the box slightly on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.service-icon {
    font-size: 40px;
    color: #004e92;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-box:hover .service-icon {
    color: #00d4ff; /* Changes icon color on hover */
}

.service-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-box p {
    font-size: 16px;
    color: #777;
    line-height: 1.5;
}

/* Animation for Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Stacks services on smaller screens */
    }

    .service-box {
        padding: 20px;
    }

    .section-title {
        font-size: 28px;
    }
}


/* Projects Section */
.projects {
    padding: 80px 20px;
    background: linear-gradient(135deg, #000428, #004e92);
    color: white;
    text-align: center;
}

.project-section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-in-out;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Creates responsive grid */
    gap: 30px;
}

.project-box {
    background-color: #f1c40f; /* Dark Yellow */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-box h3 {
    font-size: 35px;
    margin-bottom: 5px;
    color: #fff;
    margin-top: 20px;
}

.counter {
    font-size: 48px;
    font-weight: bold;
    color: #004e92;
    animation: countUp 2s ease-in-out forwards;
}

.project-box i {
    color: #004e92; /* Set icon color */
}

/* Animation for Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter Animation */
@keyframes countUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .project-box {
        padding: 30px;
    }

    .section-title {
        font-size: 28px;
    }
}


/* Animation Section */
.animation-section {
    background: linear-gradient(135deg, #001f4d, #005b96);
    height: 300px; /* Height for the section */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* To ensure the cube can move inside it */
    overflow: hidden; /* To hide the cube when it's out of the container */
}

.cube-container {
    position: absolute;
    left: 0; /* Starting position of the cube */
    animation: bounce 5s ease-in-out infinite; /* Apply animation */
}

.cube {
    width: 250px; /* Adjust based on your cube image size */
    height: 250px;
}

/* Bouncing Animation */
@keyframes bounce {
    0% {
        transform: translateX(0); /* Start at the left side */
    }
    50% {
        transform: translateX(calc(100vw - 250px)); /* Move to the right side within bounds */
    }
    100% {
        transform: translateX(0); /* Return to the left side */
    }
}



/* YouTube Videos Section */
.youtube-videos {
    background: white;
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #004e92;
    margin-bottom: 30px;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 0 10px;
}

.video-frame {
    border: 5px solid #004e92; /* Bold white border */
    border-radius: 10px;
    overflow: hidden;
    background: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.video-frame iframe {
    width: 100%;
    height: 200px; /* Adjust as needed */
    display: block;
}

.video-frame:hover {
    transform: scale(1.05); /* Smooth hover animation */
}


/* Footer Section */
.footer {
    background: linear-gradient(135deg, #000428, #004e92); /* Gradient background */
    color: white;
    padding: 40px 20px 10px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 100px; /* Adjust logo size */
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 18px;
    font-weight: bold;
}

.footer-links {
    margin: 20px 0;
}

.footer-links h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #00d4ff; /* Highlight color on hover */
}

.footer-social h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    margin-right: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    font-size: 14px;
}



/* Animations */
@keyframes morph {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}



/* ✅ For Desktops and Laptops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
    padding: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .text-container,
  .image-container {
    width: 90%;
    margin: 10px auto;
  }

  .image-container img {
    width: 100%;
    max-width: 300px;
  }

  .projects-grid,
  .services-grid,
  .videos-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    margin-bottom: 20px;
  }

  /* ✅ Hackathon Section for tablets and laptops */
  .hackathon-section {
    padding: 60px 20px;
    text-align: center;
  }

  .hackathon-title {
    font-size: 30px;
  }

  .hackathon-subtitle {
    font-size: 18px;
  }

  .countdown-container h3 {
    font-size: 18px;
  }

  .countdown {
    font-size: 26px;
  }

  .register-btn {
    padding: 10px 24px;
    font-size: 16px;
  }

  .hackathon-info p {
    font-size: 16px;
    margin: 8px 0;
  }
}

/* ✅ For Tablets and Large Phones (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: 60px 20px;
    height: auto;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .cta .btn {
    padding: 10px 18px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-box {
    padding: 20px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-box {
    padding: 20px;
  }

  /* YouTube Videos */
  .videos-container {
    grid-template-columns: 1fr;
  }

  .video-frame iframe {
    height: 180px;
  }

  /* Footer */
  .footer-logo img {
    width: 80px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 18px;
  }

  .footer-links ul li a {
    font-size: 14px;
  }

  /* ✅ Hackathon Section for tablets */
  .hackathon-section {
    padding: 50px 15px;
  }

  .hackathon-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .hackathon-subtitle {
    font-size: 16px;
    margin: 10px 0 20px 0;
  }

  .countdown-container h3 {
    font-size: 16px;
  }

  .countdown {
    font-size: 22px;
  }

  .register-btn {
    font-size: 15px;
    padding: 10px 20px;
  }

  .hackathon-info p {
    font-size: 15px;
  }
}

/* ✅ For Small Phones (max-width: 480px) */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .logo img {
    width: 60px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .cta .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .service-box h3 {
    font-size: 20px;
  }

  .service-box p {
    font-size: 14px;
  }

  .project-box h3 {
    font-size: 24px;
  }

  .counter {
    font-size: 36px;
  }

  .video-frame iframe {
    height: 160px;
  }

  .footer {
    padding: 30px 10px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  /* ✅ Hackathon Section for small phones */
  .hackathon-section {
    padding: 40px 10px;
  }

  .hackathon-title {
    font-size: 22px;
  }

  .hackathon-subtitle {
    font-size: 14px;
  }

  .countdown-container h3 {
    font-size: 14px;
  }

  .countdown {
    font-size: 18px;
  }

  .register-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .hackathon-info p {
    font-size: 14px;
    margin: 6px 0;
    line-height: 1.4;
  }
}

