/* 
  Sandeep Patel IT Consulting Website - Main Stylesheet
  Domain: sandeeppatel.co.in
  Author: Sandeep Patel
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Light / Dark Mode Integration */
:root {
  /* Color Palette (Light Mode Default) */
  --primary-color: #0f172a; /* Slate 900 */
  --secondary-color: #2563eb; /* Azure Blue 600 */
  --accent-color: #06b6d4; /* Cyan 500 */
  --bg-primary: #f8fafc; /* Slate 50 */
  --bg-secondary: #ffffff; /* White */
  --success-color: #10b981; /* Emerald 500 */
  --error-color: #ef4444; /* Red 500 */
  
  /* Text Colors */
  --text-main: #334155; /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #f1f5f9;
  
  /* Borders and Glassmorphism */
  --border-color: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --header-height: 80px;
}

/* Dark Mode Variables */
:root.dark {
  --primary-color: #f8fafc; /* Slate 50 */
  --secondary-color: #3b82f6; /* Blue 500 */
  --accent-color: #22d3ee; /* Cyan 400 */
  --bg-primary: #0b0f19; /* Deep Slate Blue */
  --bg-secondary: #111827; /* Slate 900 */
  --success-color: #34d399; /* Emerald 400 */
  
  /* Text Colors */
  --text-main: #cbd5e1; /* Slate 300 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-light: #0f172a;
  
  /* Borders and Glassmorphism */
  --border-color: rgba(51, 65, 85, 0.5);
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Typography Layout */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-color);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul {
  list-style: none;
}

/* Helper / Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-soft {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

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

.btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.05);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Sticky Header Styling */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.dark .header {
  background: rgba(11, 15, 25, 0.8);
}

.header.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Professional Tech Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* Navigation Link Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

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

/* Dark Mode Toggle Switch */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background-color: rgba(37, 99, 235, 0.05);
  color: var(--secondary-color);
}

.theme-toggle .moon-icon { display: block; }
.theme-toggle .sun-icon { display: none; }

.dark .theme-toggle .moon-icon { display: none; }
.dark .theme-toggle .sun-icon { display: block; }

/* Mobile Navigation Hamburger Menu */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

/* Responsive Mobile Layouts */
@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 260px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
  }
  .nav-menu.active {
    right: 0;
  }
  .header.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--secondary-color);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-text {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* Stats Section */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Section Header */
.section-header {
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

.section-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  display: inline-block;
}

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

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

/* Cards & Grid Utilities */
.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--secondary-color);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.card-feature-item svg {
  color: var(--success-color);
}

/* Service Detail Checklist */
.service-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-sub-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.service-sub-card:hover {
  border-color: var(--secondary-color);
}

/* Why Choose Me list formatting */
.feature-list-icon {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Testimonial card updates */
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 2.5rem;
  color: rgba(37, 99, 235, 0.15);
  font-family: serif;
}

/* FAQ Accordion Styling */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background-color: var(--bg-secondary);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-icon-arrow {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--secondary-color);
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0c1424 100%);
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.dark .cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner .section-title {
  color: #ffffff;
}

.cta-banner p {
  color: rgba(248, 250, 252, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

/* Modern Forms (Contact / Payments) */
.form-container {
  max-width: 650px;
  margin: 0 auto;
}

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

@media (min-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Success / Error Messages */
.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-message-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Payments Page Specific Styles */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .payment-layout {
    grid-template-columns: 3fr 2fr;
  }
}

/* trust badges details */
.trust-badges-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border-color);
}

.trust-badge svg {
  color: var(--success-color);
}

.payment-preview-card {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.preview-total {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: none;
  padding-top: 1.25rem;
  color: var(--primary-color);
}

/* Link output block */
.payment-link-output {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: rgba(37, 99, 235, 0.05);
  border: 1px solid var(--secondary-color);
  text-align: center;
}

.link-box {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.link-input-display {
  flex: 1;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Footer Section */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.footer-logo {
  color: var(--bg-primary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-title {
  color: var(--bg-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-social-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-social-btn:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Animations and Reveal triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Standard utilities for spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Breadcrumb nav */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--secondary-color);
}
.breadcrumb span {
  color: var(--text-muted);
}

/* Support pages specific */
.support-card {
  text-align: center;
  max-width: 500px;
  margin: 3rem auto;
  padding: 3rem 2rem;
}

.support-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  font-size: 2rem;
}

.support-icon-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.support-icon-failed {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}
