/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(to right, #ede9de 0%, #ede9de 100%);
  scroll-behavior: smooth;
  animation: bgShift 10s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background: linear-gradient(to right, #ede9de 0%, #ede9de 100%); }
  100% { background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 100%); }
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: padding 0.3s ease, background 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.logo span {
  color: #666;
}

/* Navbar */
.navbar a {
  position: relative;
  margin-left: 25px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover color */
.navbar a:hover {
  color: #809986;
}

/* Hover underline effect */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #809986;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* Active link */
.navbar a.active {
  color: #809986;
  font-weight: 600;
}

.navbar a.active::after {
  width: 100%;
}

/* === Hero Section === */
.home {
  min-height: 100vh;
  padding: 120px 8% 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.profile-pic img {
  width: 320px;
  border-radius: 20px;
  border: 5px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  animation: rotateIn 1s ease-out;
}

@keyframes rotateIn {
  from { transform: rotate(45deg) scale(0.8); opacity: 0; }
  to { transform: rotate(2deg) scale(1); opacity: 1; }
}

.profile-pic img:hover {
  transform: rotate(0deg) scale(1.05);
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: 2.5rem;
  margin: 10px 0;
  overflow: hidden;
  border-right: 2px solid #000;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #000; }
}

.home-content h1 span {
  color: #000;
}

.home-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #444;
}

.home-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

/* Buttons */
.btn-box {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-1, .btn-2 {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.btn-1 {
  background: #000;
  color: #fff;
}

.btn-1:hover {
  background: #444;
  animation: none;
}

.btn-2 {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

.btn-2:hover {
  background: #f0f0f0;
  animation: none;
}

/* Creative CV Button */
.cv-btn {
  padding: 10px 25px;
  border-radius: 25px;
  background: linear-gradient(45deg, #000, #444);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cv-btn:hover {
  background: linear-gradient(45deg, #444, #000);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* === Socials === */
.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  font-size: 1.5rem;
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.socials a:nth-child(1) { animation-delay: 0.5s; }
.socials a:nth-child(2) { animation-delay: 0.7s; }
.socials a:nth-child(3) { animation-delay: 0.9s; }

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

.socials a:hover {
  transform: scale(1.2);
  color: #666;
}

/* === About Section === */
.about {
  padding: 100px 8%;
  background: #f9f9f9;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* === Sections === */
section {
  padding: 100px 8%;
}

.heading {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  color: #000;
}

.heading span {
  color: #666;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideIn 1s ease-out;
  animation-fill-mode: both;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: #000;
}

.project-info p {
  margin-bottom: 15px;
  color: #555;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.tech-stack span {
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #333;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: #666;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.skill-card {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.skill-card i {
  font-size: 3rem;
  color: #000;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.skill-card p {
  font-weight: 600;
  color: #333;
}

/* Experience */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #000;
  transform: translateX(-50%);
}

.timeline-item {
  background: #fff;
  margin: 20px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  width: calc(50% - 30px);
}

.timeline-item:nth-child(even) {
  left: 50%;
  margin-left: 30px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  margin-right: 30px;
}

.timeline-item h3 {
  margin-bottom: 5px;
  color: #000;
}

.timeline-item span {
  color: #666;
  font-size: 0.9rem;
}

.timeline-item p {
  margin-top: 10px;
  color: #555;
}

/* Contact */
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input, .contact textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}

.contact button {
  padding: 15px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #444;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer-socials {
  margin-top: 10px;
}

.footer-socials a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.footer-socials a:hover {
  transform: scale(1.2);
}

/* Fade-in effect */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}
