/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0077ff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #0077ff;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .highlight {
  color: #ffdd57;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: #fff;
  color: #0077ff;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}


.btn-primary1 {
  background: #fff;
  color: #0077ff;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}



.btn-primary:hover {
  background: #f1f1f1;
}

.btn-primary1:hover {
  background: #4CBB17;
}


/* Sections */
section {
  padding: 4rem 2rem;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

/* About */
.about p {
  max-width: 600px;
  margin: auto;
  font-size: 1.1rem;
}

/* Projects */
.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #38bdf8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}


/* Projects Section */
.projects {
  padding: 6rem 2rem;
  text-align: center;
  color: #f1f5f9;
  background: #0f172a;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #38bdf8;
}

/* Carousel Container */
.carousel {
  position: relative;
  width: 400px;
  height: 400px;
  margin: auto;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: rotate 20s linear infinite;
}

/* Each Project Card */
.project-card {
  position: absolute;
  width: 160px;
  height: 100px;
  background: #1e293b;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform 0.3s, background 0.3s;
}

.project-card:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: scale(1.1);
}

/* Card Links */
.project-card a {
  text-decoration: none;
  color: inherit;
}

/* Positioning cards in a 3D circle */
.project-card:nth-child(1) { transform: rotateY(0deg) translateZ(200px); }
.project-card:nth-child(2) { transform: rotateY(72deg) translateZ(200px); }
.project-card:nth-child(3) { transform: rotateY(144deg) translateZ(200px); }
.project-card:nth-child(4) { transform: rotateY(216deg) translateZ(200px); }
.project-card:nth-child(5) { transform: rotateY(288deg) translateZ(200px); }

/* Animation for revolving */
@keyframes rotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}



/* Contact */
.contact p {
  margin: 0.5rem 0;
}

.contact a {
  color: #0077ff;
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #0077ff;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
