:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #ffba08;
  --gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
  --gradient-accent: linear-gradient(135deg, #f72585, #b5179e);
  --gradient-warning: linear-gradient(135deg, #ffba08, #faa307);
  --gradient-dark: linear-gradient(135deg, #212529, #343a40);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 5%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo img {
  height: 50px;
  transition: all 0.3s ease;
}

.header.scrolled .logo img {
  height: 40px;
}

.tagline h1 {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.tagline p {
  font-size: 0.8rem;
  color: #6c757d;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

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

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

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

/* Login nav button */
.login-nav {
  background: var(--primary);
  color: white !important;
  padding: 5px 15px !important;
  border-radius: 50px;
}
.login-nav:hover {
  background: var(--secondary);
}
.login-nav:after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 150px 5% 100px;
  text-align: center;
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,160C384,139,480,117,576,122.7C672,128,768,160,864,170.7C960,181,1056,171,1152,165.3C1248,160,1344,160,1392,160L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.4);
}

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

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

.highlight {
  color: var(--warning);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(255, 186, 8, 0.3);
  z-index: -1;
  border-radius: 2px;
}

/* Sections Common */
section {
  padding: 100px 5%;
  scroll-margin-top: 80px;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Services */
.services {
  background: #fff;
}

.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card i {
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card p {
  color: #6c757d;
  font-size: 1rem;
}

/* API Services Section */
.api-services {
  background: #fff;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.api-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

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

.api-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.api-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.api-card p {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Technology Stack */
.tech-stack {
  background: var(--gradient-dark);
  color: white;
}

.tech-stack .section-title h2 {
  color: white;
}

.tech-stack .section-title h2::after {
  background: var(--warning);
}

.tech-stack .section-title p {
  color: rgba(255,255,255,0.8);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.tech-item {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tech-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.tech-item i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tech-item span {
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  background: #fff;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.testimonial-card i.fa-quote-left {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
  font-style: normal;
}

.stars {
  color: #ffba08;
  margin-bottom: 15px;
}

/* Work Section */
.work {
  background: #f8f9fa;
}

.work .card {
  position: relative;
  padding: 0;
  overflow: hidden;
  height: 300px;
}

.work .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: rgba(255,255,255,0.95);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.work .card:hover .card-content {
  transform: translateY(0);
}

.work .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work .card:hover::after {
  opacity: 0.2;
}

/* Interactive Section */
.interactive {
  background: white;
  text-align: center;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.quiz-question {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.2rem;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.quiz-option {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e1e1e1;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-option:hover, .quiz-option.selected {
  background: var(--gradient);
  color: white;
  border-color: var(--primary);
}

.quiz-result {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  display: none;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.calculator-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.calculator-item h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.calculator-item p {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Contact */
.contact {
  background: #fff;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

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

.contact-item i {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Footer */
.footer {
  padding: 50px 5% 30px;
  background: var(--dark);
  color: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-column ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

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

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 1200px) {     
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .calculator {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 15px;
  }
  
  .nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .btn-container {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .calculator {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Dashboard & Login specific styles */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.dashboard {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
}
.project-card {
  background: #f8f9fa;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background: var(--primary);
  color: #1e1e2f;
}