:root {
  --primary-color: #8b5cf6;
  --secondary-color: #a855f7;
  --accent-color: #c084fc;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-secondary: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --glow: 0 0 20px rgba(139, 92, 246, 0.3);
  --whatsapp-green: #25d366;
}

[data-theme="dark"] {
  --text-color: #f9fafb;
  --text-light: #d1d5db;
  --bg-color: #111827;
  --bg-secondary: #1f2937;
  --border-color: #374151;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
}

.motto {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  display: none;
}

/* Show motto on larger screens */
@media (min-width: 640px) {
  .motto {
    display: block;
  }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle,
.menu-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover,
.menu-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-color);
  border-right: 1px solid var(--border-color);
  z-index: 1001;
  transition: left 0.3s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

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

.nav-links {
  list-style: none;
  padding: 1rem 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding-left: 2rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
main {
  margin-top: 80px;
}

section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Improved responsive typography */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* Glow Effects */
.glow-text {
  text-shadow: var(--glow);
  animation: glow 2s ease-in-out infinite alternate;
}

.glow-icon {
  color: var(--primary-color);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
  }
  to {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
  padding: 6rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* Better mobile layout for hero */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Responsive hero text */
@media (max-width: 768px) {
  .hero-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.75rem;
  }
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .hero-text p {
    font-size: 1rem;
  }
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-images {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: var(--glow);
}

.profile-pic.large {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Roots Section */
.roots {
  background: var(--bg-secondary);
}

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

.highlight-text {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* Responsive highlight text */
@media (max-width: 768px) {
  .highlight-text {
    font-size: 1.25rem;
  }
}

.roots-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Story Section */
.story-intro {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.story-inspiration {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-style: italic;
}

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

.founder-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.founder-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.founder-title {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.founder-quote {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
}

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

.skills-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Updated skills grid for icon-only layout */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }
}

/* New skill-icon-only styling for simplified icon display */
.skill-icon-only {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background: var(--bg-color);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  min-height: 120px;
}

.skill-icon-only:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-icon-only i {
  font-size: 4rem;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.skill-icon-only:hover i {
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .skill-icon-only {
    padding: 1.5rem 0.5rem;
    min-height: 100px;
  }

  .skill-icon-only i {
    font-size: 3rem;
  }
}

/* Projects Section */
/* Added intro text styling */
.projects-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Improved projects grid responsiveness */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Coming soon card styling */
.project-card.coming-soon {
  opacity: 0.8;
}

.project-image {
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

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

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.project-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Better button responsiveness */
@media (max-width: 480px) {
  .project-buttons {
    flex-direction: column;
  }

  .project-buttons button {
    width: 100%;
  }
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  flex: 1;
  min-width: 120px;
}

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

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

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Services Section */
.services {
  background: var(--bg-secondary);
}

.services-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Better services grid responsiveness */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card.featured {
  border: 2px solid var(--primary-color);
}

/* Remove scale transform on mobile for featured card */
@media (min-width: 769px) {
  .service-card.featured {
    transform: scale(1.05);
  }

  .service-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
  }
}

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

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.extra-services {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.extra-services h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

/* Better extra services grid */
.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .extra-services-grid {
    grid-template-columns: 1fr;
  }
}

.extra-service {
  text-align: center;
  padding: 1rem;
}

.extra-service h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.extra-service p {
  color: var(--text-light);
  font-weight: 500;
}

/* Team Section */
.team {
  text-align: center;
}

.team-caption {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.team-photo {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

/* Better contact content layout */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

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

.contact-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* WhatsApp specific icon color */
.contact-item .fa-whatsapp {
  color: var(--whatsapp-green);
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
  word-break: break-word;
}

/* WhatsApp link styling */
.whatsapp-link {
  color: var(--whatsapp-green);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-link:hover {
  color: #128c7e;
  text-decoration: underline;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Form status message styling */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Footer */
.footer {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Better footer responsiveness */
@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo h3 {
  color: var(--primary-color);
}

.footer-logo p {
  color: var(--text-light);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* WhatsApp social link color */
.social-link:has(.fa-whatsapp) {
  background: var(--whatsapp-green);
}

.social-link:has(.fa-whatsapp):hover {
  background: #128c7e;
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

/* Additional responsive improvements */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 2rem 0;
  }

  .hero {
    padding: 3rem 0;
  }
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-secondary,
  .cta-btn,
  .theme-toggle,
  .menu-btn,
  .close-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-links a {
    padding: 1.25rem 1.5rem;
  }
}
