/* ============================================
   SKILL LINKR - COMPLETE ENHANCED STYLESHEET
   Modern, Responsive, Professional Freelancer Platform
============================================ */

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

:root {
  --primary-color: #4facfe;
  --secondary-color: #00f2fe;
  --accent-color: #ff6b6b;
  --dark-color: #2c3e50;
  --light-bg: #f8f9ff;
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
  --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Header & Navigation */
header {
  background: var(--white);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-light);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  height: 80px;
}

.logo img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

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

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

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
  z-index: 1001;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #ff8e8e);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

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

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

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

.btn-large {
  padding: 20px 40px;
  font-size: 1.15rem;
}

/* Hero Sections */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-student {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-student::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
  max-width: 700px;
  animation: slideInUp 1s ease-out;
}

.hero-content h1 {
  background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

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

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

.stat {
  text-align: center;
  animation: slideInUp 1s ease-out 0.3s both;
}

.stat h3 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Sections */
section {
  padding: 100px 0;
}

section h2 {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  position: relative;
}

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

.alt-bg {
  background: var(--light-bg);
}

/* Cards & Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.card-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.popular {
  border: 3px solid var(--accent-color);
  transform: scale(1.05);
}

.popular::before {
  content: '🔥 MOST POPULAR';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

/* Steps */
.step-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 300px;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-color), #ff8e8e);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 25px rgba(255,107,107,0.3);
}

/* Testimonials */
.testimonials {
  background: var(--light-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 6rem;
  color: var(--primary-color);
  font-family: serif;
  opacity: 0.1;
  line-height: 1;
}

.stars {
  color: #ffd700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

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

.author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(400%) translateY(-100%) rotate(45deg); }
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

input, textarea {
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-left h4 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

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

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

.social-icons a {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 2rem;
    transition: left 0.4s ease;
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(20px);
  }

  nav ul.active { left: 0; }
  
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .step-container { flex-direction: column; }
  
  .cards { grid-template-columns: 1fr; }
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

