/* ============================================
   DURGA BHAVANI | Digital Marketing Portfolio
   Premium Light Theme Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #f8f9fc;
  --bg-secondary: #f0f1f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6fd;
  --bg-nav: rgba(248, 249, 252, 0.9);
  --text-primary: #1a1a2e;
  --text-secondary: #555577;
  --text-muted: #8888aa;
  --accent-1: #6c63ff;
  --accent-2: #00b4d9;
  --accent-3: #ff6b6b;
  --accent-gold: #d4a017;
  --gradient-1: linear-gradient(135deg, #6c63ff, #00b4d9);
  --gradient-2: linear-gradient(135deg, #ff6b6b, #d4a017);
  --gradient-3: linear-gradient(135deg, #6c63ff, #ff6b6b);
  --gradient-hero: linear-gradient(135deg, #f8f9fc 0%, #e8ecf8 50%, #f8f9fc 100%);
  --font-primary: 'Space Grotesk', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
  --border-glow: 1px solid rgba(108, 99, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

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

::selection {
  background: rgba(108, 99, 255, 0.2);
  color: #fff;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.05);
}

/* --- Loader --- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(108, 99, 255, 0.1);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loader-text {
  font-family: var(--font-primary);
  color: var(--text-muted);
  letter-spacing: 2px;
  font-size: 0.85rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections --- */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-subtitle {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-2);
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent-2);
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 3px;
  margin: 20px auto 0;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-glow);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-icon {
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.logo-dot {
  color: var(--accent-1);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s;
  border-radius: 2px;
}

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

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

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link i {
  font-size: 0.65rem;
  margin-left: 4px;
  transition: transform 0.3s;
}

.nav-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.08);
  padding-left: 24px;
}

/* Active nav link */
.nav-link.active {
  color: var(--accent-2);
}

.btn-nav-cta {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-1);
  padding: 8px 20px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 180, 217, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 160, 23, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  margin-bottom: 24px;
}

.greeting {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.name {
  display: block;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.tagline-wrapper {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.tagline-static {
  margin-right: 8px;
}

.tagline-dynamic {
  color: var(--accent-3);
  border-bottom: 2px solid var(--accent-3);
  padding-bottom: 2px;
}

.tagline-dynamic::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: var(--accent-3);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #1a1a2e;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

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

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.scroll-indicator span {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-2), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(1.5); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); }
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-frame {
  width: 320px;
  height: 380px;
  position: relative;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  background: var(--gradient-1);
  z-index: 0;
  animation: gradient-rotate 4s ease infinite;
}

@keyframes gradient-rotate {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.about-image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.about-image-placeholder:hover .about-img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.1);
}

.about-floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  animation: float 6s ease-in-out infinite;
}

.about-floating-card i {
  color: var(--accent-1);
  font-size: 1rem;
}

.card-1 { top: 20px; right: -30px; animation-delay: 0s; }
.card-2 { bottom: 40px; left: -30px; animation-delay: 2s; }
.card-3 { bottom: -10px; right: 20px; animation-delay: 4s; }

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

.about-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-timeline {
  margin: 32px 0;
  position: relative;
  padding-left: 24px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--accent-1);
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--accent-1);
}

.timeline-content h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  color: var(--accent-1);
}

.skill-card h3 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-percent {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Modules Section --- */
.modules {
  background: var(--bg-secondary);
  overflow: hidden;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.module-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  transition: var(--transition);
}

.module-card:hover::after {
  top: -20%;
  right: -20%;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}

.module-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(108, 99, 255, 0.1);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}

.module-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-1);
  margin-bottom: 20px;
  transition: var(--transition);
}

.module-card:hover .module-icon-wrap {
  background: var(--gradient-1);
  color: #fff;
  transform: scale(1.05);
}

.module-card h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.module-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.module-topics span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
}

.module-cta {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.module-cta i {
  font-size: 0.65rem;
  transition: transform 0.3s;
}

.module-card:hover .module-cta {
  color: var(--accent-2);
}

.module-card:hover .module-cta i {
  transform: translateX(4px);
}

/* Remove text decoration from linked module cards */
a.module-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- Projects Slider --- */
.project-slider {
  position: relative;
  overflow: hidden;
  padding: 0 56px;
}

.slider-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.project-card {
  min-width: calc(33.333% - 19px);
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--gradient-1);
  transform: scale(1.1);
}

.project-info {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-2);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.project-info h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Slider Controls --- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots span.active {
  background: var(--accent-1);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.2);
}

/* --- Certifications Section --- */
.certifications {
  background: var(--bg-secondary);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.cert-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.1), rgba(255, 107, 107, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.cert-body h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--accent-1);
  font-weight: 500;
  margin-bottom: 12px;
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cert-status {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 50px;
}

.cert-status.in-progress {
  color: var(--accent-gold);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.2);
}

.cert-status.completed {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

/* --- Contact Section --- */
.contact {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: var(--transition);
}

.contact-card-info:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 1rem;
}

.contact-card-info h4 {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card-info p,
.contact-card-info a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-card-info a:hover {
  color: var(--accent-2);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 1rem;
}

.social-link:hover {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* --- Contact Form --- */
.contact-form {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.02);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-highlight {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s;
}

.form-group input:focus ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight {
  width: 100%;
}

/* --- Footer --- */
.footer {
  background: var(--bg-primary);
  border-top: var(--border-glow);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-1), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--accent-2);
}

.footer-newsletter h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social .social-link {
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: var(--border-glow);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom i {
  color: var(--accent-3);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

/* --- WhatsApp CTA --- */
.whatsapp-cta {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-tooltip {
  position: absolute;
  left: 64px;
  background: var(--bg-card);
  border: var(--border-glow);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: var(--transition);
}

.whatsapp-cta:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { min-width: calc(50% - 14px); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  .name { font-size: 2.8rem; }
  .tagline-wrapper { font-size: 1.2rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: right 0.4s ease;
    border-left: var(--border-glow);
  }

  .nav-links.active { right: 0; }
  .hamburger { display: flex; }
  .btn-nav-cta { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-frame {
    width: 240px;
    height: 300px;
  }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: 1fr; }
  .project-slider { padding: 0 40px; }
  .project-card { min-width: calc(100% - 0px); }
  .certs-grid { grid-template-columns: 1fr; }

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

  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.6rem; }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p { margin: 0 auto; }
  .footer-social, .contact-social { justify-content: center; }

  .about-floating-card { display: none; }
  .cursor { display: none; }
}

@media (max-width: 480px) {
  .name { font-size: 2.2rem; }
  .tagline-wrapper { font-size: 1rem; }
  .hero-desc { font-size: 0.9rem; }
  .btn { padding: 12px 24px; font-size: 0.8rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .skill-card { padding: 20px 16px; }
  .section-title { font-size: 1.7rem; }
  .contact-form { padding: 24px; }
  .project-slider { padding: 0 32px; }
  .slider-btn { width: 36px; height: 36px; font-size: 0.8rem; }
  .whatsapp-cta { width: 48px; height: 48px; font-size: 1.3rem; bottom: 20px; left: 20px; }
  .whatsapp-tooltip { display: none; }
}

/* --- Smooth scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}
