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

/* Body */
body {
  font-family: "Poppins", sans-serif;
  background: #0f0f0f;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Links */
a {
  color: #00d1ff;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #ff0077;
}

/* Loader */
#entry-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeOut 2s ease 2s forwards;
}

.loader-text {
  font-size: 3rem;
  color: #00d1ff;
  animation: pulse 1.5s infinite alternate;
}

.loader-text span {
  color: #ff0077;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.2); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Navigation */
header {
  background: rgba(17, 17, 17, 0.9);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.8rem;
  color: #00d1ff;
  font-weight: bold;
}

.logo span {
  color: #ff0077;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  font-weight: bold;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #ff0077;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #111, #1a1a1a, #111);
  animation: fadeIn 2s ease;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero span {
  color: #00d1ff;
}

.typing-text {
  font-size: 1.2rem;
  height: 30px;
  margin-top: 10px;
  color: #aaa;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  background: #00d1ff;
  color: #000;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,209,255,0.3);
  transition: 0.3s;
}

.btn:hover {
  background: #ff0077;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,0,119,0.3);
}

/* Sections */
section {
  padding: 60px 20px;
  animation: fadeInUp 1s ease;
}

.about, .contact {
  text-align: center;
}

.projects {
  background: #1a1a1a;
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.project-card {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Footer */
footer {
  background: #111;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Experience Section */
.experience {
  background: linear-gradient(135deg, #111, #1a1a1a, #111);
  padding: 80px 20px;
  position: relative;
}

.experience h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: #00d1ff;
  text-shadow: 0 0 15px rgba(0, 209, 255, 0.6);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 3px solid rgba(0, 209, 255, 0.6);
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: #ff0077;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,0,119,0.7);
}

.timeline-item h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-item .date {
  display: inline-block;
  font-size: 0.9rem;
  color: #00d1ff;
  margin-bottom: 10px;
  font-weight: bold;
}

.timeline-item p {
  background: #1f1f1f;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 3px solid #ff0077;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item p:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255,0,119,0.4);
}
