/* Importing Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== Base Styles ===== */
body {
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
    background: #f9fafb;
    color: #1f2937;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* ===== Navigation Links ===== */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #1f2937;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

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

/* ===== Project Cards ===== */
.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== Skill Bars ===== */
.skill-bar {
    border-radius: 8px;
    height: 10px;
    background: #e5e7eb;
    overflow: hidden;
}

.skill-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 1.5s ease-in-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ===== Hero Section ===== */
.project-hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* ===== Badges & Tech Tags ===== */
.tech-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: linear-gradient(90deg, #764ba2, #667eea);
}

/* ===== Images & Gallery ===== */
.project-image,
.gallery-item {
    border-radius: 12px;
    transition: transform 0.5s ease, box-shadow 0.3s;
}

.project-image:hover,
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== Back Button Animation ===== */
.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-5px);
}

/* ===== Fade-in Animation ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== Dark Mode ===== */
.dark {
    background-color: #1a202c;
    color: #e2e8f0;
}

.dark .nav-link {
    color: #e2e8f0;
}

.dark .project-card {
    background-color: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark .tech-badge {
    background: linear-gradient(90deg, #9f7aea, #667eea);
}

/* ===== Eye Comfort Mode ===== */
.eye-comfort {
    background-color: #f0ecd1;
    color: #333;
    filter: brightness(0.95) contrast(0.95);
}

/* .eye-comfort a {
    color: #1d81af;
} */

/* Make buttons more visible in eye comfort (light) mode */
.eye-comfort a.bg-blue-400 {
  background-color: #3b82f6 !important; /* a bit darker blue */
  color: #fff !important;
}

.eye-comfort a.bg-blue-400:hover {
  background-color: #2563eb !important; /* even darker on hover */
  color: #fff !important;
}

.eye-comfort .project-card {
    background-color: #fff9e5;
}

.eye-comfort .tech-badge {
    background: linear-gradient(90deg, #f3e7e9, #e3eeff);
    color: #064663;
}

/* ===== Ensure Dark Mode Correct on HTML ===== */
html.dark {
    color-scheme: dark;
}

html.dark body {
  background-color: #1a202c;
  color: #e2e8f0;
}

html.dark .nav-link {
  color: #e2e8f0;
}

html.eye-comfort body {
  background-color: #f0ecd1;
  color: #333;
}

/* assets/styles.css */
.eye-comfort .mobile-menu {
  background: linear-gradient(to bottom, #f8eabd, #c5be92);
  color: #333;
}
/* 🔹 Common active link style */
#mobile-menu .nav-link.active {
  color: #4f46e5; /* indigo-600 */
  font-weight: 600;
}

/* 🌙 Dark mode */
.dark #mobile-menu .nav-link.active {
  color: #facc15; /* yellow-400 */
}

/* 🌤️ Eye comfort mode */
.eye-comfort #mobile-menu .nav-link.active {
  color: #1e40af; /* blue-800 */
}


