/* ===== CSS Variables ===== */
:root {
  /* Light Theme Colors */
  --primary: #3a86ff;
  --primary-dark: #2667cc;
  --primary-light: #a5d8ff;
  --secondary: #8338ec;
  --accent: #06d6a0;
  --accent-dark: #05b586;
  --text: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #edf2f7;
  --card-bg: #ffffff;
  --header-gradient: linear-gradient(135deg, #3a86ff, #8338ec);
  --footer-gradient: linear-gradient(135deg, #1a1f2c, #2d3748);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

/* Dark Theme Colors */
.dark-mode {
  --primary: #4dabf7;
  --primary-dark: #3a86ff;
  --secondary: #9c36ff;
  --accent: #20c997;
  --accent-dark: #1baa7e;
  --text: #f8f9fa;
  --text-light: #adb5bd;
  --text-muted: #6c757d;
  --bg: #121212;
  --bg-light: #1e1e1e;
  --bg-dark: #2d2d2d;
  --card-bg: #1e1e1e;
  --header-gradient: linear-gradient(135deg, #1a2530, #2c3e50);
  --footer-gradient: linear-gradient(135deg, #0f172a, #1e293b);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.4);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: inherit;
  text-align: center;
}

.primary-btn {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.secondary-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Header ===== */
header {
  background: var(--header-gradient);
  color: white;
  padding: 40px 20px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 Z"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(101, 98, 98, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(15deg) scale(1.1);
}

.profile-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 25px;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent), white);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

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

.profile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.3rem;
  margin-bottom: 20px;
  opacity: 0.95;
  color: white;
}

.typewriter-container {
  min-height: 60px;
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.typewriter {
  font-size: 1.4rem;
  font-weight: 500;
  display: inline-block;
  border-right: 3px solid white;
  white-space: nowrap;
  overflow: hidden;
  animation: blink 1s infinite;
  padding-right: 5px;
  color: white;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: white; }
}

.header-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  margin-top: 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Navigation ===== */
.main-nav {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 15px 0;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 30px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.nav-links a i {
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--bg-light);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--bg-dark);
}

.section:last-of-type {
  border-bottom: none;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--primary);
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Cards & Grids ===== */
.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

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

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-item {
  background: var(--card-bg);
  padding: 30px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 2rem;
  transition: var(--transition);
}

.service-item:hover .service-icon {
  transform: scale(1.05);
}

.service-item h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.3rem;
}

.service-item p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-more {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.service-more:hover {
  color: var(--accent);
  background: var(--bg-light);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.step-content h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.2rem;
}

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

.portfolio-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  padding: 30px 25px;
  border: 1px solid var(--bg-dark);
}

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

.portfolio-image {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2.5rem;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

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

.portfolio-item p {
  margin-bottom: 20px;
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

.testimonial-slide.active {
  display: block;
}

.testimonial {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid var(--bg-dark);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--bg-dark);
  padding-top: 20px;
}

.testimonial-author strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.slider-prev,
.slider-next {
  background: var(--primary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-dark);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-post {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bg-dark);
}

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

.blog-post-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
}

.blog-post-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.blog-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-post h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.blog-excerpt {
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
  margin-bottom: 20px;
}

.blog-excerpt.expanded {
  max-height: none;
}

.blog-excerpt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-excerpt.expanded::after {
  opacity: 0;
}

.blog-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-dark);
  flex-wrap: wrap;
}

.blog-stats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: 20px;
}

.blog-stats:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.read-more {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
  margin-left: auto;
}

.read-more:hover {
  background: var(--primary-dark);
}

.blog-archive-link {
  text-align: center;
  margin-top: 50px;
}

/* ===== Google Form Integration ===== */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.google-form-card {
  background: linear-gradient(135deg, var(--bg-light), var(--card-bg));
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-light);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.google-form-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.google-form-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary);
  opacity: 0.03;
  border-radius: 50%;
}

.google-form-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.03;
  border-radius: 50%;
}

.google-form-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(58, 134, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 134, 255, 0); }
}

.google-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.form-description {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-benefits {
  text-align: left;
  background: var(--bg);
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid var(--bg-dark);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text);
  font-size: 0.95rem;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-item i {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.google-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition);
  width: 100%;
  margin: 15px 0 20px;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.google-form-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.google-form-btn i:first-child {
  color: #4285F4;
  background: white;
  padding: 5px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.google-form-btn i:last-child {
  font-size: 1rem;
  opacity: 0.8;
}

.form-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
  padding: 15px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--bg-dark);
}

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

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Information */
.contact-info h3 {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 5px;
  min-width: 25px;
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--text-light);
}

.contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.response-time {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  margin: 30px 0;
  display: flex;
  gap: 15px;
  border-left: 4px solid var(--accent);
  align-items: center;
}

.response-time i {
  color: var(--accent);
  font-size: 2rem;
}

.response-time strong {
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}

.response-time p {
  margin: 0;
  color: var(--text);
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
  color: var(--text);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.social-icon i {
  font-size: 1.5rem;
}

.social-icon span {
  font-size: 0.85rem;
  font-weight: 500;
}

.quick-contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.quick-contact-item {
  background: var(--bg-light);
  border: 1px solid var(--bg-dark);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: var(--transition);
}

.quick-contact-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.quick-contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.quick-contact-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.quick-contact-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ===== Footer ===== */
footer {
  background: var(--footer-gradient);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: white;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: white;
}

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

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

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-column 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);
}

.footer-bottom p {
  margin-bottom: 10px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--primary);
  background: var(--bg-light);
  transform: rotate(90deg);
}

/* ===== Loading Spinner ===== */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.loading-spinner.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-dark);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Notification ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  max-width: 400px;
  border-left: 4px solid transparent;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left-color: var(--accent);
}

.notification.success i {
  color: var(--accent);
}

.notification.error {
  border-left-color: #ff4757;
}

.notification.error i {
  color: #ff4757;
}

.notification.info {
  border-left-color: var(--primary);
}

.notification i {
  font-size: 1.3rem;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 10px;
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  header {
    padding: 30px 20px 60px;
  }
  
  .profile-container {
    width: 120px;
    height: 120px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .typewriter {
    font-size: 1.1rem;
  }
  
  .header-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .social-icons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-contact-options {
    grid-template-columns: 1fr;
  }
  
  .form-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  
  .profile-container {
    width: 100px;
    height: 100px;
  }
  
  .services-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .google-form-card {
    padding: 30px 20px;
  }
  
  .google-form-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .google-form-btn {
    padding: 15px 25px;
    font-size: 1rem;
  }
  
  .social-icons {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}