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

:root {
  /* Light Theme Colors */
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --border-color: #4b5563;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(17, 24, 39, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

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

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

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

.profile-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 5px;
  padding-top: 10px;
  box-shadow: var(--shadow-heavy);
  text-align: center;
}

.profile-img {
  width: 100%;
  max-width: 528px;
  height: 331px;
  object-fit: cover;
  border-radius: 15px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  text-decoration: none;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

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

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.skill-item i {
  font-size: 1.5rem;
}

/* Projects Section */
.projects {
  background: var(--bg-secondary);
}

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

.project-card {
  background: var(--bg-primary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  overflow: hidden;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

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

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

.project-link:hover {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

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

.author-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Main contact page container */
.contact-page {
  padding: 120px 0 80px; /* Top padding accounts for fixed navbar */
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* Contact page header section */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Two-column layout for contact content */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal width columns */
  gap: 3rem;
  margin-top: 2rem;
}

/* ========================================
   LEFT SIDE - CONTACT INFO SECTION
   ======================================== */

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Contact methods container */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Individual contact method styling */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.contact-method p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ========================================
   RIGHT SIDE - CONTACT FORM SECTION
   ======================================== */

/* Form container with background and shadow */
.contact-form-container {
  background-color: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.contact-form-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.contact-form-container h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

/* Main form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Space between form elements */
}

/* ========================================
   FORM TITLE SECTION (Get in touch + HR)
   ======================================== */

.contact-left-title {
  margin-bottom: 1rem;
}

.contact-left-title h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-left-title hr {
  border: none;
  height: 3px;
  background: var(--gradient-primary); /* Gradient line */
  border-radius: 2px;
  width: 60px;
}

/* ========================================
   FORM INPUT FIELDS STYLING
   ======================================== */

/* All input fields and textarea */
.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

/* Input focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); /* Subtle glow effect */
}

/* Placeholder text styling */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Textarea specific styling - Fixed alignment */
.contact-form textarea,
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
  font-family: inherit;
  line-height: 1.6;
  overflow-y: auto;
  word-wrap: break-word;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Auto-expand textarea on focus */
.contact-form textarea:focus,
.form-group textarea:focus {
  min-height: 150px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ========================================
   SUBMIT BUTTON STYLING
   ======================================== */

#submitBtn {
  padding: 15px 30px;
  background: var(--gradient-primary); /* Gradient background */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

/* Submit button hover effect */
#submitBtn:hover {
  transform: translateY(-2px); /* Lift effect */
  box-shadow: var(--shadow-heavy);
}

/* Submit button active/pressed state */
#submitBtn:active {
  transform: translateY(0);
}

/* Submit button disabled state (for loading) */
#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   CONTACT FORM RESET & OVERRIDE STYLES
   ENSURES PROPER DEPLOYMENT STYLING
   ======================================== */

/* Reset any potential conflicting styles */
.contact-form *,
.contact-form *::before,
.contact-form *::after {
  box-sizing: border-box !important;
}

/* Override any global input resets */
.contact-form input,
.contact-form textarea,
.contact-form button,
.contact-form select {
  all: unset !important;
  display: block !important;
}

/* Re-apply specific form styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: var(--bg-primary) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  color: var(--text-primary) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  line-height: 1.4 !important;
}

/* Button reset and styling */
.contact-form button[type="submit"],
.contact-form .btn {
  all: unset !important;
  display: inline-block !important;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
}

/* ========================================
   ENHANCED FORM LAYOUT - DESKTOP ALIGNED
   HIGH SPECIFICITY FOR DEPLOYMENT
   ======================================== */

/* Contact form container styling */
.contact-form-container {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.contact-form-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* Contact form specific styling with high specificity */
.contact-form {
  max-width: 100%;
  margin: 0 auto;
}

/* Form row for side-by-side inputs - IMPORTANT */
.contact-form .form-row,
.form-row {
  display: flex !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  align-items: flex-start !important;
  flex-wrap: wrap;
}

/* Form group container - Enhanced alignment with HIGH specificity */
.contact-form .form-group,
.form-group {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 1.5rem !important;
  flex: 1 !important;
  position: relative !important;
  min-width: 0;
}

/* Remove margin from form groups inside form rows */
.contact-form .form-row .form-group,
.form-row .form-group {
  margin-bottom: 0 !important;
  flex: 1 1 calc(50% - 0.75rem) !important;
}

/* Form labels - Consistent spacing */
.contact-form .form-group label,
.form-group label {
  margin-bottom: 0.75rem !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  display: block !important;
}

/* Form inputs and textareas - Better alignment with HIGH specificity */
.contact-form .form-group input,
.contact-form .form-group textarea,
.form-group input,
.form-group textarea {
  padding: 14px 16px !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  resize: vertical;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Textarea specific styling */
.contact-form .form-group textarea,
.form-group textarea {
  min-height: 120px !important;
  resize: vertical !important;
  font-family: inherit !important;
}

/* Button styling */
.contact-form .btn,
.contact-form button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact-form .btn:hover,
.contact-form button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3) !important;
}

/* Error message styling */
.contact-form .error-message,
.error-message {
  color: #dc2626 !important;
  font-size: 0.875rem !important;
  margin-top: 0.5rem !important;
  display: none !important;
  font-weight: 500 !important;
}

.contact-form .error-message.show,
.error-message.show {
  display: block !important;
}

/* Character counter */
.contact-form .char-count,
.char-count {
  text-align: right !important;
  font-size: 0.8rem !important;
  color: var(--text-secondary) !important;
  margin-top: 0.5rem !important;
}

/* Success/Error message styling */
.form-message {
  padding: 15px !important;
  border-radius: 8px !important;
  margin-top: 1rem !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.form-message.success {
  background: #d4edda !important;
  color: #155724 !important;
  border: 1px solid #c3e6cb !important;
}

.form-message.error {
  background: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb !important;
}

/* Honeypot field - HIDDEN */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Contact note styling */
.contact-note {
  margin-top: 1.5rem !important;
  padding: 15px !important;
  background: var(--bg-tertiary) !important;
  border-radius: 8px !important;
  border-left: 4px solid var(--primary-color) !important;
}

.contact-note p {
  margin: 0.5rem 0 !important;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
}

.contact-note a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.contact-note a:hover {
  text-decoration: underline !important;
}

/* Button styling improvements */
.form-group button {
  padding: 15px 30px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.form-group button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* Button loading state */
.btn-loading {
  display: none !important;
}

.btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Honeypot field (hidden) */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
}

/* Form success/error styling */
.form-success {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.form-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Contact note styling */
.contact-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.contact-note p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-note p:last-child {
  margin-bottom: 0;
}

.contact-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* Responsive form layout */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    margin-bottom: 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}

/* ========================================
   FORM MESSAGE (Success/Error) STYLING
   ======================================== */

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  display: none; /* Hidden by default */
}

/* Success message styling */
.form-message.success {
  background: #d1fae5; /* Light green background */
  color: #065f46; /* Dark green text */
  border: 1px solid #a7f3d0; /* Green border */
}

/* Error message styling */
.form-message.error {
  background: #fee2e2; /* Light red background */
  color: #991b1b; /* Dark red text */
  border: 1px solid #fecaca; /* Red border */
}

/* ========================================
   SOCIAL LINKS SECTION
   ======================================== */

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

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: 50%; /* Circular buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px); /* Lift effect on hover */
}

/* ========================================
   RESPONSIVE DESIGN FOR CONTACT PAGE
   ======================================== */

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 3rem;
  }

  .contact-header h1 {
    font-size: 2.5rem;
  }

  .contact-form-container {
    padding: 2rem;
  }
  
  .contact-method {
    padding: 1rem;
  }
  
  .contact-info h2 {
    font-size: 1.75rem;
  }
  
  /* Enhanced form responsiveness for tablets */
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group textarea {
    min-height: 140px;
    font-size: 1rem;
    padding: 15px;
  }
  
  .form-group textarea:focus {
    min-height: 160px;
  }
  
  /* Center form elements on tablet */
  .contact-form-container {
    text-align: center;
  }
  
  .form-group label {
    text-align: center;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-header p {
    font-size: 1rem;
  }
  
  .contact-info > p {
    font-size: 1rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-form-container h3 {
    font-size: 1.5rem;
  }
  
  .contact-method i {
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
  }
  
  .contact-method h3 {
    font-size: 1rem;
  }
  
  /* Enhanced mobile form styling with HIGH specificity */
  .contact-form .form-row,
  .form-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .contact-form .form-row .form-group,
  .form-row .form-group {
    flex: 1 1 100% !important;
    margin-bottom: 1rem !important;
  }
  
  .contact-form .form-group input,
  .contact-form .form-group textarea,
  .form-group input,
  .form-group textarea {
    padding: 12px 14px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
    border-radius: 10px !important;
  }
  
  .contact-form .form-group textarea,
  .form-group textarea {
    min-height: 120px !important;
    max-height: 250px !important;
    line-height: 1.5 !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  .contact-form .form-group textarea:focus,
  .form-group textarea:focus {
    min-height: 140px !important;
    transform: translateY(-1px) !important;
  }
  
  /* Mobile-optimized button */
  .contact-form .form-group button,
  .contact-form .btn,
  .form-group button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
    margin-top: 1.5rem !important;
  }
  
  /* Character counter for mobile */
  .contact-form .char-count,
  .char-count {
    font-size: 0.85rem !important;
    margin-top: 0.75rem !important;
  }
  
  /* Error messages for mobile */
  .contact-form .error-message,
  .error-message {
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
  }
}

/* Extra small devices (very small phones) */
@media (max-width: 320px) {
  .contact-form-container {
    padding: 1rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 16px;
  }
  
  .form-group textarea {
    min-height: 100px;
    max-height: 200px;
  }
  
  .form-group textarea:focus {
    min-height: 120px;
  }
  
  .contact-header h1 {
    font-size: 1.75rem;
  }
}

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

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

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

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .skill-items {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Smooth Transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
