/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f5a623;
  --text-dark: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #2c3e50;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-brand i {
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   MAIN CONTENT & SECTIONS
   ============================================ */
main {
  margin-top: 70px;
}

.section {
  padding: 80px 20px;
  min-height: 100vh;
}

.section-alt {
  background: var(--bg-light);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   HOME SECTION
   ============================================ */
#home {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding-top: 100px;
}

.main-title {
  text-align: center;
  color: var(--text-white);
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CARDS CONTAINER
   ============================================ */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
}

/* ============================================
   INDIVIDUAL CARDS
   ============================================ */
.card {
  background: var(--text-white);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.card-icon i {
  font-size: 35px;
  color: var(--text-white);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.card:hover .card-title {
  color: var(--primary-color);
}

.card-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--text-white);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.card-btn:active {
  transform: scale(0.95);
}
.card#cart-1:hover {
  background-image: url(images/development.jpg);
  background-repeat: none;
  background-position: center;
  background-size: cover;
}
.card#cart-2:hover {
  background-image: url(images/Front\ End.jpg);
  background-repeat: none;
  background-position: center;
  background-size: cover;
}
.card#cart-3:hover {
  background-image: url(images/backend.jpg);
  background-repeat: none;
  background-position: center;
  background-size: cover;
}
.card#cart-4:hover {
  background-image: url(images/graphic_designing.jpg);
  background-repeat: none;
  background-position: center;
  background-size: cover;
}
.card#cart-5:hover {
  background-image: url(images/Ms_Office.jpg);
  background-repeat: none;
  background-position: center;
  background-size: cover;
}

/* ============================================
   CARD DETAILS (HIDDEN BY DEFAULT)
   ============================================ */
.card-details {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    padding 0.5s ease;
  background: var(--bg-light);
  border-radius: 10px;
  margin-top: 0;
}

.card-details.active {
  max-height: 300px;
  padding: 15px;
  margin-top: 20px;
}

.card-details ul {
  list-style: none;
  text-align: left;
}

.card-details li {
  padding: 8px 0;
  color: var(--text-light);
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.card-details li:last-child {
  border-bottom: none;
}

.card-details li::before {
  content: "✓";
  color: var(--primary-color);
  margin-right: 10px;
  font-weight: bold;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 15px auto 0;
  border-radius: 2px;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  gap: 20px;
}

.stat-item {
  background: var(--text-white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--text-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card i {
  font-size: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

#contact .section-title {
  color: var(--text-white);
}

#contact .section-title::after {
  background: var(--text-white);
}

#contact .subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background: var(--text-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.2rem;
}

.contact-info-item div h4 {
  color: var(--text-dark);
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-info-item div p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Social Media Links */
.social-links {
  margin-top: 30px;
}

.social-links h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* Contact Form */
.contact-form {
  background: var(--text-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  color: var(--text-dark);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  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(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  display: block;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 20px;
}
.submit-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--text-white);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Success Message */
.success-message {
  background: #d4edda;
  border: 2px solid #28a745;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

.success-message i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 15px;
}

.success-message h3 {
  color: #155724;
  margin-bottom: 10px;
}

.success-message p {
  color: #155724;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    transform: translateY(-150%);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .nav-link {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .cards-container {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .card {
    padding: 25px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .contact-info,
  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon i {
    font-size: 25px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .service-card {
    padding: 30px 20px;
  }

  .contact-info,
  .contact-form {
    padding: 25px;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}
.card:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.nav-brand:hover i {
  animation: pulse 1s ease infinite;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-info,
.contact-form {
  animation: slideIn 0.8s ease forwards;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-4 {
  margin-top: 40px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mb-4 {
  margin-bottom: 40px;
}

.p-1 {
  padding: 10px;
}
.p-2 {
  padding: 20px;
}
.p-3 {
  padding: 30px;
}
.p-4 {
  padding: 40px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--text-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */
.form-group input.valid,
.form-group textarea.valid {
  border-color: #28a745;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .nav-toggle,
  .card-btn,
  .submit-btn {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}
