@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');


:root {
            --primary-color: #0a0a0a;
            --secondary-color: #1a1a1a;
            --text-color: #f0f0f0;
            --light-bg: #121212;
            --dark-bg: #000;
            --accent-color: #00d4aa;
            --accent-dark: #06896f;
            --text-muted: #a0a0a0;
            --card-shadow: 0 10px 25px -3px rgba(0, 212, 170, 0.15);
            --card-hover-shadow: 0 15px 35px -5px rgba(0, 212, 170, 0.25);
            --transition: all 0.3s ease;
        }

        [data-theme="light"] {
            --primary-color: #f5f5f5;
            --secondary-color: #ffffff;
            --text-color: #333333;
            --light-bg: #f0f0f0;
            --dark-bg: #e0e0e0;
            --accent-color: #007a63;
            --accent-dark: #005a48;
            --text-muted: #666666;
            --card-shadow: 0 10px 25px -3px rgba(0, 122, 99, 0.15);
            --card-hover-shadow: 0 15px 35px -5px rgba(0, 122, 99, 0.25);
        }

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--dark-bg);
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 212, 170, 0.3);
  position: relative;
  overflow: hidden;
}

.header-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
            pointer-events: none;
        }

        [data-theme="light"] .header-container::before {
            background: linear-gradient(45deg, rgba(0, 122, 99, 0.05) 0%, transparent 70%);
        }


header h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.5s ease;
}

.header-container:hover header h1::after {
  width: 100%;
}

header h1 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
}

.profile-pic {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem 0;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
  transition: var(--transition);
}

.profile-pic:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 212, 170, 0.5);
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
   gap: 1.5rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
  transition: var(--transition);
  font-size: 1.1rem;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

section {
  padding: 3rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

#hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, var(--primary-color), var(--light-bg));
  border-radius: 15px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 212, 170, 0.1), transparent 70%);
  pointer-events: none;
}

#hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-weight: 700;
}

.tagline {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted)
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn.primary {
  background: var(--accent-color);
  color: black;
   box-shadow: 0 5px 15px rgba(0, 212, 170, 0.4);
}

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

.btn.outline {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.btn.primary:hover {
  background: #00e6b8;
}

.btn.secondary:hover, .btn.outline:hover {
  background: var(--accent-color);
  color: black;
}

#featured-skills h2, 
#featured-projects h2,
#projects h2,
#cv h2,
#contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-color);
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#featured-skills h2::after, 
#featured-projects h2::after,
#projects h2::after,
#cv h2::after,
#contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-item {
            background: var(--secondary-color);
            padding: 2.5rem 2rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            border: 1px solid #333;
            position: relative;
            overflow: hidden;
        }

        [data-theme="light"] .skill-item {
            border: 1px solid #e0e0e0;
        }

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(0, 212, 170, 0.1), transparent);
  transition: height 0.5s ease;
}

.skill-item:hover::before {
  height: 100%;
}

.skill-item:hover {
    transform: translateY(-10px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(0, 212, 170, 0.3);
}

.skill-item i {
  font-size: 2.8rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

.skill-item h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.project-card {
            background: var(--secondary-color);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            border: 1px solid #333;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        [data-theme="light"] .project-card {
            border: 1px solid #e0e0e0;
        }

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(0, 212, 170, 0.1), transparent);
  transition: height 0.5s ease;
  z-index: 0;
}

.project-card:hover::before {
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(0, 212, 170, 0.3);
}

.project-card h3 {
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.project-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
  color: var(--text-muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.tech-tags span {
background: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.tech-tags span:hover {
  background: rgba(0, 212, 170, 0.1);
  transform: translateY(-2px);
}

.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.project-link:hover {
  color: #00e6b8;
  transform: translateX(5px);
}

.project-link::after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

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

.view-all {
  text-align: center;
  }


section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;

  
  margin-top: 2rem;
}


.cv-section {
            background: var(--secondary-color);
            padding: 2.5rem;
            border-radius: 15px;
            margin-bottom: 2.5rem;
            box-shadow: var(--card-shadow);
            border: 1px solid #333;
            transition: var(--transition);
        }

        [data-theme="light"] .cv-section {
            border: 1px solid #e0e0e0;
        }

.cv-section:hover {
            box-shadow: var(--card-hover-shadow);
            border-color: rgba(0, 212, 170, 0.2);
        }

        [data-theme="light"] .cv-section:hover {
            border-color: rgba(0, 122, 99, 0.2);
        }

.cv-section h3 {
            color: var(--accent-color);
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #333;
            padding-bottom: 0.8rem;
            font-size: 1.5rem;
        }

        [data-theme="light"] .cv-section h3 {
            border-bottom: 1px solid #e0e0e0;
        }

.cv-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.cv-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  height: 10px;
  width: 10px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
}

.cv-item:last-child {
  margin-bottom: 0;
}

.cv-item h4 {
            color: #f0f0f0;
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }

        [data-theme="light"] .cv-item h4 {
            color: #333;
        }


.cv-item .date {
  color: var(--accent-color);
  font-style: italic;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
            background: var(--secondary-color);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            border: 1px solid #333;
            transition: var(--transition);
        }

        [data-theme="light"] .contact-info {
            border: 1px solid #e0e0e0;
        }

.contact-info:hover {
  box-shadow: var(--card-hover-shadow);
}

.contact-info h3 {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1.8rem;
  transition: var(--transition);
  padding: 0.8rem;
  border-radius: 8px;
}

.contact-detail:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateX(5px);
}

.contact-detail i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1.5rem;
  width: 30px;
  transition: var(--transition);
}

.contact-detail:hover i {
  transform: scale(1.2);
}

.contact-form {
            background: var(--secondary-color);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            border: 1px solid #333;
            transition: var(--transition);
        }

        [data-theme="light"] .contact-form {
            border: 1px solid #e0e0e0;
        }

.contact-form:hover {
  box-shadow: var(--card-hover-shadow);
}

.contact-form h3 {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

        .form-group label {
            display: block;
            margin-bottom: 0.8rem;
            color: #f0f0f0;
            font-weight: 500;
        }
        [data-theme="light"] .form-group label {
            color: #333;
        }
        
        .form-group input, 
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid #333;
            background: var(--primary-color);
            color: var(--text-color);
            font-family: 'Poppins', sans-serif;
            transition: var(--transition);
        }

        [data-theme="light"] .form-group input, 
        [data-theme="light"] .form-group textarea {
            border: 1px solid #e0e0e0;
        }

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent-color);
  color: black;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.submit-btn:hover::before {
  transform: translateX(0);
}

.submit-btn:hover {
  background: #00e6b8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 212, 170, 0.4);
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--dark-bg);
  color: var(--text-color);
  border-top: 1px solid rgba(0, 212, 170, 0.3);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 212, 170, 0.05), transparent);
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.social-links {
 margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.social-links a {
            color: #ccc;
            font-size: 1.8rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
        }

        [data-theme="light"] .social-links a {
            background: rgba(0, 0, 0, 0.05);
            color: #666;
        }

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
  background: rgba(0, 212, 170, 0.1);
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1.2rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .profile-pic {
    width: 140px;
    height: 140px;
  }

  nav {
    gap: 1rem;

  }

  nav a {
    font-size: 1rem;
  }

  main {
    padding: 1.5rem;
  }

  #hero h2 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .skills-grid,
  .project-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
}

@media (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 2rem 0;
  }

  #hero {
    padding: 2.5rem 1rem;
  }

  #hero h2 {
    font-size: 1.8rem;
  }

  .skill-item, 
  .project-card,
  .cv-section,
  .contact-info,
  .contact-form {
    padding: 1.8rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}

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

.theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--secondary-color);
            border: 1px solid var(--accent-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
}

.theme-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
            font-size: 1.5rem;
            color: var(--accent-color);
            transition: var(--transition);
}

.theme-toggle {
                top: 10px;
                right: 10px;
                width: 40px;
                height: 40px;
}

.theme-toggle i {
                font-size: 1.2rem;
}