/* ======================
   MODERN PORTFOLIO 2025
   ====================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #e6cf78;
  --primary-dark: #c0a062;
  --accent: #00eaff;
  --accent-glow: rgba(0, 234, 255, 0.4);
  --bg-dark: #0a0a0f;
  --bg-card: rgba(15, 15, 25, 0.8);
  --text: #ffffff;
  --text-muted: #a0a0b0;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background - Optimized for performance */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-dark);
}

.bg-animation::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 0, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 234, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(230, 207, 120, 0.06) 0%, transparent 40%);
  /* Removed animation for better performance */
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: 'Rowdies', sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
}

.logo span { color: var(--primary); }

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text);
  background: var(--glass);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-family: 'Rowdies', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-proof {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  animation: fadeInUp 0.8s ease 0.35s both;
}

.hero-proof li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-proof strong {
  color: var(--text);
}

/* Hero Social Links */
.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.hero-socials a:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--primary);
  background: var(--primary);
}

.hero-socials svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: var(--transition);
}

.hero-socials a:hover svg {
  fill: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 207, 120, 0.3);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

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

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

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

/* SECTIONS */
section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Rowdies', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}


/* QUOTE */
.quote-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 150px;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.1;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.quote-author {
  color: var(--primary);
  font-weight: 600;
}

/* COUNTDOWN - DaisyUI Style */
.countdown-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.countdown-title {
  font-family: 'Rowdies', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown {
  display: inline-flex;
  position: relative;
}

.countdown > span {
  height: 5rem;
  width: 4rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.countdown > span::before {
  content: attr(style);
  content: var(--value);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rowdies', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(230, 207, 120, 0.3);
}

.countdown > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.countdown-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* Life countdown variant */
.life-countdown .countdown > span::before {
  color: #ff4757;
  text-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.life-countdown .countdown > span {
  background: linear-gradient(145deg, rgba(255, 71, 87, 0.15), rgba(255, 71, 87, 0.05));
  border-color: rgba(255, 71, 87, 0.2);
}

/* Hover effects */
.countdown-item:hover .countdown > span {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 207, 120, 0.2);
  transition: all 0.3s ease;
}

.life-countdown:hover .countdown > span {
  border-color: #ff4757;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.2);
}

/* Responsive countdown */
@media (max-width: 600px) {
  .countdown > span {
    height: 4rem;
    width: 3.2rem;
  }
  
  .countdown > span::before {
    font-size: 2rem;
  }
  
  .countdown-grid {
    gap: 0.75rem;
  }
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 234, 255, 0.08);
}

.skill-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-card .skill-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ACHIEVEMENTS */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.achievement-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 234, 255, 0.08);
}

.achievement-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.achievement-card h3 {
  font-size: 1.1rem;
}

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

/* Disable float animation to prevent lag */
.achievement-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  /* animation: float 3s ease-in-out infinite; - removed for performance */
  transition: transform 0.3s ease;
}

.achievement-card:hover img {
  transform: translateY(-8px);
}

/* STATS */
.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stats-grid img {
  border-radius: var(--radius-sm);
  transition: var(--transition);
  max-width: 100%;
}

.stats-grid img:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

/* CONTACT */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
}

.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info h3 {
  font-family: 'Rowdies', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

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

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 207, 120, 0.1);
}

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

.submit-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px);
}

/* Individual social link colors */
.social-link[aria-label="GitHub"]:hover {
  background: #333;
  border-color: #333;
}

.social-link[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link[aria-label="HackerRank"]:hover {
  background: #2ec866;
  border-color: #2ec866;
}

.social-link[aria-label="Email"]:hover {
  background: #ea4335;
  border-color: #ea4335;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
  transition: var(--transition);
}

.social-link:hover svg {
  fill: #fff;
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.social-link:hover img { filter: brightness(0) invert(1); }

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

.footer-text .heart {
  color: #ff4757;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* SCROLL TOP */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 207, 120, 0.22);
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header { padding: 1rem; }
  .menu-toggle { display: block; }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
  }
  
  nav.open { transform: translateY(0); opacity: 1; }
  nav ul { flex-direction: column; gap: 0.5rem; }
  nav a { display: block; text-align: center; }
  
  .hero { padding: 6rem 1rem 3rem; }
  .timer-block { padding: 1rem 1.5rem; min-width: 80px; }
  .timer-block span { font-size: 2.5rem; }
  section { padding: 4rem 1rem; }
  .contact-card { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* Minimal interaction mode */

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Project card filter animation */
.project-card.hidden {
  display: none;
}

.project-card.show {
  animation: fadeInUp 0.5s ease;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}
