
.bg-container{
  background-color: #D6F0E2;
}
.about-container{
  background-color: #ECE7F0;

}

/* Base CSS */
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #06b6d4;
  --secondary-hover: #0891b2;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --secondary: #06b6d4;
    --secondary-hover: #22d3ee;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --card: #1e293b;
    --card-foreground: #f8fafc;
    --border: #334155;
    --input: #334155;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Classes */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.title-line {
  width: 4rem;
  height: 0.25rem;
  background: var(--primary);
  margin: 0 auto 1.5rem;
}

.section-subtitle {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

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

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

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

.btn-outline:hover {
  background-color: var(--muted);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--background);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-nav {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 3rem;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.hero-text {
  flex: 1;
  margin-bottom: 3rem;
}

.hero-subtitle {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-heading {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.hero-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  flex: 1;
}

.profile-image-container {
  position: relative;
  width: 18rem;
  height: 18rem;
}

.profile-background {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--primary), var(--secondary));
  opacity: 0.2;
  filter: blur(1rem);
}

.profile-background-inner {
  position: absolute;
  inset: 0.75rem;
  border-radius: 50%;
  background-color: var(--background);
}

.profile-photo-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.profile-photo {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--background);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

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

.bounce {
  animation: bounce 2s infinite;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--muted);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  max-width: 26rem;
}

.image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, var(--primary), var(--secondary));
  opacity: 0.2;
  border-radius: var(--radius);
  transform: rotate(6deg);
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-heading {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.about-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.1);
}

.stat-icon i {
  color: var(--primary);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Skills Section */
.skills {
  padding: 5rem 0;
}

.skills-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.5rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.card-icon i {
  color: var(--primary);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.skill-item {
  margin-bottom: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.skill-bar {
  height: 0.5rem;
  background-color: var(--muted);
  border-radius: 0.25rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0.25rem;
  width: 0;
  transition: width 1.5s ease;
}

.tech-stack {
  margin-top: 4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.tech-icon span {
  font-weight: 600;
  font-size: 1rem;
}

.tech-name {
  font-size: 0.875rem;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background-color: var(--muted);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  background-color: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-image {
  height: 14rem;
  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.1);
}

.project-details {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background-color: var(--muted);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.info-heading {
  margin-bottom: 2rem;
}

.info-heading h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-heading p {
  color: var(--muted-foreground);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.1);
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--primary);
}

.contact-details h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--muted-foreground);
}

.contact-details a:hover {
  color: var(--primary);
}

.contact-form-container {
  flex: 1;
}

.contact-form {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: none;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #94a3b8;
  margin-top: 0.5rem;
  max-width: 24rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .social-links {
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* Media Queries */
@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .hero-content {
    flex-direction: row;
    gap: 2rem;
  }

  .hero-text {
    margin-bottom: 0;
  }
  
  .about-content {
    flex-direction: row;
  }

  .skills-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    flex-direction: row;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links {
    align-items: flex-end;
  }

  .scroll-indicator {
    display: block;
  }
}

@media (min-width: 1024px) {
  .skills-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Customize color variables for dark mode */
@media (prefers-color-scheme: dark) {
  .about {
    background-color: rgba(30, 41, 59, 0.3);
  }
  
  .projects {
    background-color: rgba(30, 41, 59, 0.3);
  }
  
  .skill-card, .contact-form {
    background-color: rgba(30, 41, 59, 0.7);
  }
}

/* Additional helper for dark mode specificity */
:root.dark {
  --primary-rgb: 59, 130, 246;
}
