/* style.css - Enhanced Both Themes */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #f59e0b;
  --accent: #ec4899;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --lighter: #ffffff;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Dark Mode Theme */
[data-theme="dark"] {
  --dark: #f8fafc;
  --darker: #0f172a;
  --light: #1e293b;
  --lighter: #334155;
  --gray: #94a3b8;
  --gray-light: #475569;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--light) 0%, var(--lighter) 100%);
  color: var(--dark);
  line-height: 1.6;
  transition: var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, var(--light) 0%, var(--darker) 100%);
}

/* Layout */
body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

/* Sidebar - Enhanced for Both Themes */
.sidebar {
  background: linear-gradient(180deg, var(--darker) 0%, #1e293b 100%);
  color: var(--light);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 320px;
  height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, var(--darker) 0%, #1e293b 100%);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.profile {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.profile::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.profile img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  position: relative;
}

.profile img:hover {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--secondary);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.profile h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.profile p {
  color: var(--gray);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.freelance-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

[data-theme="dark"] .freelance-status {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.freelance-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--success);
}

.dark-toggle {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.3rem;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
  font-weight: 600;
}

[data-theme="dark"] .dark-toggle {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(245, 158, 11, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-toggle:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(245, 158, 11, 0.3));
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow);
}

/* Navigation - Enhanced for Both Themes */
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.sidebar nav a {
  color: var(--gray);
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sidebar nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.sidebar nav a:hover,
.sidebar nav a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transform: translateX(10px);
}

.sidebar nav a:hover::before {
  transform: scaleY(1);
}

.sidebar footer {
  margin-top: auto;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content - Enhanced for Both Themes */
main {
  margin-left: 320px;
  padding: 4rem;
  max-width: none;
  width: calc(100vw - 320px);
  background: transparent;
}

/* Hero Section - Enhanced for Both Themes */
.hero {
  text-align: center;
  padding: 6rem 4rem;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.08) 0%, 
    rgba(245, 158, 11, 0.08) 50%, 
    rgba(236, 72, 153, 0.08) 100%);
  border-radius: var(--border-radius-lg);
  margin-bottom: 5rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.15) 0%, 
    rgba(245, 158, 11, 0.15) 50%, 
    rgba(236, 72, 153, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero h2 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -1px;
  position: relative;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.4rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Apps Section - Enhanced for Both Themes */
.apps {
  margin-bottom: 6rem;
}

.apps h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.apps h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.app-card {
  background: linear-gradient(135deg, var(--lighter) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(15px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .app-card {
  background: linear-gradient(135deg, var(--lighter) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: var(--transition-slow);
}

[data-theme="dark"] .app-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.app-card:hover::before {
  left: 100%;
}

.app-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-card img {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  margin-bottom: 2rem;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.app-card:hover img {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.app-card p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Buttons - Enhanced for Both Themes */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn:active {
  transform: translateY(-2px) scale(1.02);
}

/* Contact Section - Enhanced for Both Themes */
.contact {
  margin-bottom: 6rem;
}

.contact h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--dark);
  position: relative;
}

.contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.freelance-card {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.1) 0%, 
    rgba(99, 102, 241, 0.1) 50%, 
    rgba(245, 158, 11, 0.1) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .freelance-card {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.2) 0%, 
    rgba(99, 102, 241, 0.2) 50%, 
    rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.freelance-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--success), var(--primary), var(--secondary));
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.freelance-badge {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.freelance-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.freelance-card p {
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-size: 1.2rem;
}

/* Contact Form - Enhanced for Both Themes */
.contactForm {
  background: linear-gradient(135deg, var(--lighter) 0%, rgba(255, 255, 255, 0.95) 100%);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(20px);
  max-width: 700px;
  margin: 0 auto 4rem;
}

[data-theme="dark"] .contactForm {
  background: linear-gradient(135deg, var(--lighter) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contactForm label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
}

.contactForm input,
.contactForm textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  font-family: inherit;
  color: var(--dark);
  font-size: 1rem;
  resize: vertical;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .contactForm input,
[data-theme="dark"] .contactForm textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gray-light);
  color: var(--dark);
}

.contactForm input:focus,
.contactForm textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: white;
  transform: translateY(-2px);
}

[data-theme="dark"] .contactForm input:focus,
[data-theme="dark"] .contactForm textarea:focus {
  background: rgba(255, 255, 255, 0.15);
}

/* Social Links - Enhanced for Both Themes */
.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social a {
  color: var(--gray);
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  background: var(--lighter);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .social a {
  border: 1px solid var(--gray-light);
  background: var(--lighter);
}

.social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: var(--transition);
}

.social a:hover::before {
  left: 100%;
}

.social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Rest of the CSS remains the same for animations and responsive design... */

/* Animations */
.animate-fadein {
  animation: fadeIn 1s ease-out;
}

.animate-up {
  animation: slideUp 0.8s ease-out;
}

.animate-btn {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}
/* Social Links - icon-only style */
.social {
    display: flex;
    justify-content: center;
    gap: 1rem; /* space between icons */
    margin-top: 2rem;
}

.social a {
    padding: 0;          /* remove padding */
    border: none;        /* remove border */
    background: none;    /* remove background */
    box-shadow: none;    /* remove shadow */
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social i {
    font-size: 1.8rem;       /* adjust icon size */
    color: var(--gray);      /* default icon color */
    transition: color 0.3s;
}

.social i:hover {
    color: var(--primary);   /* change color on hover */
    cursor: pointer;
}



/* Enhanced Responsive Design */
/* Large Desktops (1440px+) */
@media (min-width: 1440px) {
  .sidebar {
    width: 360px;
  }
  
  main {
    margin-left: 360px;
    width: calc(100vw - 360px);
    padding: 5rem;
  }
  
  .hero h2 {
    font-size: 4.5rem;
  }
  
  .app-list {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
  }
}

/* Standard Desktops (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .sidebar {
    width: 300px;
  }
  
  main {
    margin-left: 300px;
    width: calc(100vw - 300px);
    padding: 3rem;
  }
  
  .hero h2 {
    font-size: 3.5rem;
  }
}

/* Tablets and Small Laptops (768px - 1023px) */
@media (max-width: 1023px) {
  body {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  main {
    margin-left: 0;
    width: 100%;
    padding: 2rem;
  }
  
  .hero h2 {
    font-size: 3rem;
  }
  
  .app-list {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  main {
    padding: 1rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .app-list {
    grid-template-columns: 1fr;
  }
  
  .apps h2,
  .contact h2 {
    font-size: 2.5rem;
  }
  
  .contactForm {
    padding: 2rem;
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =====================
   Form Styles
   ===================== */
form {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 2rem auto;
}

form h2 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

label {
  display: block;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--dark);
  background: var(--light);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  outline: none;
}

button {
  display: inline-block;
  width: 100%;
  background: var(--primary);
  color: var(--light);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--primary-dark);
}

