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

:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #81C784;
  --secondary-color: #2196F3;
  --text-color: #333;
  --text-light: #767676;
  --bg-color: #f8f8f8;
  --card-bg: #ffffff;
  --border-radius: 10px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --btn-gradient: linear-gradient(135deg, #4CAF50, #2196F3);
  --dot-pattern: radial-gradient(var(--primary-light) 1px, transparent 1px);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: opacity 0.5s ease-in-out, background-color 0.3s ease;
  opacity: 1;
}

.fade-in {
  animation: fadeIn 1s forwards;
}

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

section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.underline {
  height: 4px;
  width: 70px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 10px;
}

/* Navigation Bar */
nav {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .logo {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  list-style-type: none;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  font-weight: 600;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: rotate(30deg);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  background-image: var(--dot-pattern);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.hero-text {
  flex: 1;
  padding-right: 30px;
}

.greeting {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-light);
  opacity: 0;
  animation: slideUp 1s forwards 0.3s;
}

.name {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  animation: slideUp 1s forwards 0.5s;
}

.title-container {
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 1s forwards 0.7s;
}

.title {
  font-size: 1.3rem;
  font-weight: 500;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 600px;
  opacity: 0;
  animation: slideUp 1s forwards 0.9s;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  opacity: 0;
  animation: slideUp 1s forwards 1.1s;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.primary-btn {
  background: var(--btn-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-dark);
  z-index: -1;
  transition: 0.5s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.6);
}

.primary-btn:hover::before {
  width: 100%;
}

.secondary-btn {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-illustration {
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s forwards 1.2s;
  position: relative;
}

.tech-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.outer-circle {
  fill: none;
  stroke: rgba(76, 175, 80, 0.1);
  stroke-width: 2;
  animation: rotate 30s linear infinite;
}

.middle-circle {
  fill: none;
  stroke: rgba(76, 175, 80, 0.2);
  stroke-width: 3;
  animation: rotate 20s linear infinite reverse;
}

.inner-circle {
  fill: none;
  stroke: rgba(76, 175, 80, 0.3);
  stroke-width: 4;
  animation: rotate 10s linear infinite;
}

.node {
  fill: var(--primary-color);
  animation: pulse 3s infinite;
}

.connection {
  stroke: rgba(76, 175, 80, 0.4);
  stroke-width: 2;
}

.pulse {
  fill: var(--primary-color);
  animation: pulseAnimation 2s infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
    transform-origin: center;
  }
  to {
    transform: rotate(360deg);
    transform-origin: center;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    r: 15;
  }
  50% {
    opacity: 1;
    r: 18;
  }
  100% {
    opacity: 0.5;
    r: 15;
  }
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(15);
    opacity: 0;
  }
  51% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* About Preview Section */
.about-preview {
  background-color: var(--card-bg);
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  padding: 60px 40px;
  box-shadow: var(--shadow);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-light);
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more i {
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Skills Section */
.skills {
  background-color: var(--bg-color);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background-color: var(--card-bg);
  padding: 30px 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card:hover::before {
  width: 10px;
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background-color: #e9e9e9;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 10px;
  width: 0;
  animation: progressAnimation 1.5s ease-out forwards;
}

@keyframes progressAnimation {
  0% {
    width: 0;
  }
  100% {
    width: var(--width, 90%);
  }
}

/* Featured Projects Section */
.featured-projects {
  background-color: #f0f8f0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.project-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}
.project-icon {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px;
  margin-top: 5px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.tech-tag {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.tech-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Tech Stack Section */
.tech-stack {
  background-color: white;
  padding: 80px 20px;
}

.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  gap: 30px;
}

.tech-item {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
}

.tech-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  color: var(--secondary-color);
}

.tech-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  white-space: nowrap;
}

.tech-item:hover::before {
  opacity: 1;
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 20px 20px 10px;
}

.project-card p {
  color: var(--text-light);
  margin: 0 20px 15px;
  font-size: 0.95rem;
}

.project-link {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.project-link i {
  transition: var(--transition);
  margin-left: 5px;
}

.project-link:hover {
  color: var(--primary-dark);
}

.project-link:hover i {
  transform: translateX(5px);
}

.see-all-projects {
  text-align: center;
  margin-top: 50px;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 60px 20px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-info p {
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gradient);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .about-content {
    padding: 0;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .blob-animation {
    width: 300px;
    height: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 10px 20px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .name {
    font-size: 3rem;
  }
  
  .about-preview {
    padding: 40px 20px;
  }
  
  .skill-card {
    padding: 20px 15px;
  }
}

@media (max-width: 576px) {
  nav ul li {
    margin: 0 5px;
  }
  
  nav ul li a {
    font-size: 14px;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .title {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .blob-animation {
    width: 250px;
    height: 250px;
  }
}