:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --dark: #1f2937;
  --light: #f3f4f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

body {
  font-family: 'Product Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
}



/* Header */
header {
  background-color: rgba(255, 255, 255, 0);
  box-shadow: none;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  transition: opacity 0.3s ease;
}

nav.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.nav-links {
  position: relative;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  padding: 10px;
  position: relative;
  background-color: #39FF14;
  border-radius: 5px;
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-links a:hover {
  background-color: #32b84d;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #39FF14;
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links .logo {
  background: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  background-color: #81af1e;
  color: black;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #218838;
}

/* Projects Section */
.projects {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark);
  font-weight: 700;
  color: #32b84d;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.project-card {
  flex: 1 1 300px;
  max-width: 300px;
  height: 400px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  border-color: black;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(57, 14, 227, 0.8), 0 0 40px rgba(55, 20, 255, 0.6);
}

.project-img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.project-content {
  padding: 10px;
  color:black;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color:white;
  border-radius: 0 0 10px 10px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1616ff;
  font-weight: 500;
}

/* Skills Section */
.skills {
  background-color: var(--light);
  padding: 5rem 2rem;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.skill-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: linear-gradient(145deg, #ffffff, #f6f6f6);
}

.skill-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.skill-item:hover i {
  transform: scale(1.1);
}

.skill-item h3 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.skill-item p {
  color: #666;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-weight: 500;
}

.social-links a {
  color: white;
  margin-right: 1rem;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
  }
}

nav .nav-links .logo img {
    height: 50px;
    width: auto;
    display: block;
}


