/* === Root Variables === */
:root {
  --black: #0b0b0b;
  --blue: #1a73e8;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 14px;
  --max-width: 1120px;
  --transition: 0.3s ease-in-out;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {  background-image: url(body_background.jpg);
  background-size: cover;
  opacity: 1;
  background-color: #111010;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Header === */
/* === Header === */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background: #000; /* simple black background */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

/* Logo */
header .log {
  color: white;
  font-size: 30px;
  font-weight: bold;
}

/* Navbar */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #1a73e8; /* hover blue */
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  font-size: 56px;
  color: white;
  display: none;
  cursor: pointer;
}



/* Active nav */
input:checked + label {
  background: white; color: black;
}

/* === Mobile Menu === */
.menu-toggle {
  font-size: 58px; color: white;
  display: none; cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: -600px;
  width: 450px; height: 100%;
  background: linear-gradient(180deg, black, blue);
  color: white;
  display: flex; flex-direction: column;
  padding: 60px 20px; gap: 20px;
  transition: left 0.3s;
  z-index: 2000;
}
.sidebar.active { left: 0; }
.sidebar a {
  color: white; text-decoration: none;
  font-size: 3rem; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.sidebar a:hover { color: orange; }
.sidebar-close {
  position: absolute; top: 15px; right: 20px;
  font-size: 28px; color: white;
  background: none; border: none; cursor: pointer;
}
.loginbutton{
  background:linear-gradient(90deg, blue, black, blue);
  border-radius: 3px;
  border:solid white 2px;
  width: 100px;
}
.loginbutton a{
  font-size: 20px;
  color: white;
  text-decoration: none;
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 88vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.774);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}
.tag {
  display: inline-block;
  color: var(--white);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.85rem;
  margin-bottom: 20px;
    background: linear-gradient(90deg, black, blue, black);
    border-radius: 5px;
    font-size: 0.9rem;
    color: white;
    padding: 6px 14px;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.5);
    background-size: 300% 300%;
    animation: gradientMove 5s ease infinite, glowPulse 2.5s ease-in-out infinite;
  }
  .tag:hover {
    transform: scale(1.1);
    transition: 0.3s ease;
  }
  @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  @keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 0, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 0, 255, 0.9); }
  }
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
  color: var(--white);
}
.hero-content p {
  color: #e5e7eb;
  margin-bottom: 20px;
}
.cta {
  width: 250px;
  margin-left: 120px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  z-index: 1;
  cursor: pointer;
  
  /* Base Gradient */
  background: linear-gradient(90deg, #0004ff, #3f51b5);
  box-shadow: 0 0 15px rgba(26, 115, 232, 0.5);
}

/* CV button variant */
.cv-btn {
  background: linear-gradient(90deg, #ff4081, #f50057);
  box-shadow: 0 0 15px rgba(255, 64, 129, 0.5);
}

/* Shine effect */
.cta::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: 0.5s;
  z-index: -1;
}

.cta:hover::before {
  left: 120%;
}

/* Gradient shift + glowing border */
.cta:hover {
  transform: translateY(-4px) scale(1.07);
  background: linear-gradient(90deg, #3f51b5, #0004ff, #3f51b5);
  background-size: 200% auto;
  animation: gradientMove 2s linear infinite;
  box-shadow: 0 0 25px rgba(0, 26, 255, 0.8),
              0 0 45px rgba(0, 26, 255, 0.6);
}

/* Keyframes for moving gradient */
@keyframes gradientMove {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Indicator */
.indicator-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.indicator-arrow {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid rgb(4, 0, 255);
  animation: blinkCycle 3s infinite;
}
@keyframes blinkCycle {
  0%,100% { opacity: 1; }
  30%,60%,90% { opacity: 0; }
}
.indicator-arrow:nth-child(2) { animation-delay: 1s; }
.indicator-arrow:nth-child(3) { animation-delay: 2s; }

/* === Buttons === */
.btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--black), var(--blue));
  box-shadow: blue;
}
.btn-ghost {
  background: linear-gradient(90deg, var(--black), var(--blue));
  color: var(--white);
  text-decoration: none;
}
.btn-ghost:hover {
  background: linear-gradient(90deg, var(--blue), var(--black));
}
.btn-ghost1 {
  background: linear-gradient(90deg, var(--black), var(--blue));
  color: var(--white);
  text-decoration: none;
}
.btn-ghost1:hover {
  opacity: 1;
  background: linear-gradient(90deg,blue,black);
}

/* === Sections === */
section {
  padding: 60px 20px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 14px;
  color: white;
}
.sub {
  text-align: center;
  color: #aaa;
  margin-bottom: 20px;
}

/* === About Section === */
#about {
  background: #111010dc;
  text-align: center;
}

.about-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-cards .card {
  margin-top: 20px;
  flex: 1;
  min-width: 300px;
  background: linear-gradient(90deg, rgb(0, 0, 92), black, rgb(0, 0, 92));
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  position: relative;
}

/* Hover effect on card */
.about-cards .card:hover {
  box-shadow: 0 10px 25px rgb(0, 4, 255);
}

/* Image rotation effect */
.about-cards .about-img img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.8s ease;
}

.about-cards .card:hover .about-img img {
  transform: rotate(5deg) scale(1.05);
}

/* === Projects Section === */
#projects {
  background: #111010dc;
  text-align: center;
  color: #fff;
}
#projects .grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card_project {
  height: 450px;
  background: linear-gradient(90deg, rgb(0, 0, 92), black, rgb(0, 0, 92));
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  color: #fff;
  transition: 0.3s;
}
.card_project img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
.card_project h3 { margin-bottom: 10px; }
.card_project:hover { transform: translateY(-8px); }

/* === Services Section === */
#services { background: #111010dc; }
.cols-3{
  display: flex;
  gap:40px ;
}
.card_service {
  background: linear-gradient(90deg, rgb(0, 0, 92), black, rgb(0, 0, 92));
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
}
.card_service:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 255, 0.6);
  transform: translateY(-5px);
  transition: 0.3s ease-in-out;
}

.card_service h3 { margin-bottom: 10px; }
.list { list-style: none; padding: 0; }
.list li { margin-bottom: 10px; }

/* === Contact Section === */
#contact { background: #111010dc; }
form {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
input, textarea {
  background: black;
  color: white;
  padding: 12px;
  border: 1px solid #333;
}
textarea { min-height: 140px; }
.btn2{
  background-color: blue;
  color: white;
  width: 50px;
  margin-left: 270px;
}

/* === Footer === */
footer {
  width:100% ;
  background: linear-gradient(90deg, black, blue, black);
  color: #fff;
  padding: 40px 20px 20px;
}
.footer-container {
  margin-left: 50px;
  display:flex;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 200px;
  margin-bottom: 20px;
}
.footer-box h3 { margin-bottom: 15px; }
.footer-box ul { list-style: none; padding: 0; }
.footer-box ul li { margin: 8px 0; }
.footer-box ul li a {
  color: #ccc; text-decoration: none;
}
.footer-box ul li a:hover { 
  color: #ffae00;
  transform: translateY(-5px);
 }
.footer-bottom {
  border-top: 1px solid #fff;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}
