/* Custom Styles for Graphic Designer Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --color-accent: #2563EB;
  --color-secondary: #3B82F6;
  --color-bg: #FFFFFF;
  --color-card: #F8FAFC;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg);
  color: #1E293B;
  overflow-x: hidden;
}

/* Display Font */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Glassmorphism Effect */
.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Floating Shapes Animations */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(180deg);
  }
}

@keyframes float-medium {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotate(-90deg) scale(1.1);
  }
}

.animate-float-1 {
  animation: float-slow 15s infinite ease-in-out;
}

.animate-float-2 {
  animation: float-medium 12s infinite ease-in-out;
}

.animate-float-3 {
  animation: float-slow 18s infinite ease-in-out;
}

/* Typing Cursor Animation */
.cursor-blink::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--color-secondary);
}

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

/* Zoom Image on Hover */
.zoom-img-container {
  overflow: hidden;
}

.zoom-img-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Hover Animation */
.hover-card-trigger {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card-trigger:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

/* Reveal on Scroll Transitions */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Button Pulse/Ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

/* Education Timeline Styles */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline-item::before {
    left: 15px;
  }
}

/* LIGHT THEME WHITE & BLUE GLOBAL OVERRIDES */
body {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
}

/* Base Headings & Text Overrides */
h1, h2, h3, h4, h5, h6, .font-display {
  color: #0F172A !important;
}

.text-gray-100, .text-slate-100, .text-gray-200, .text-slate-200, .text-white {
  color: #0F172A !important;
}

.text-gray-300, .text-slate-300, .text-gray-400, .text-slate-400, .text-slate-500 {
  color: #475569 !important;
}

/* Background Overrides for Container and Section Blocks */
.bg-bgDark, .bg-slate-950, .bg-slate-900, .bg-slate-900\/40, .bg-slate-900\/30, .bg-slate-900\/20, .bg-slate-950\/95, .bg-slate-950\/80 {
  background-color: #FFFFFF !important;
}

.bg-cardDark, .glass-panel {
  background-color: #F8FAFC !important;
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* Soft blurs in background */
.bg-accent\/10 {
  background-color: rgba(37, 99, 235, 0.08) !important;
  color: #2563EB !important;
}

.bg-secondary\/10 {
  background-color: rgba(59, 130, 246, 0.08) !important;
  color: #3B82F6 !important;
}

/* Active buttons and solid-color badge text preservation */
a.bg-accent, 
button.bg-accent, 
a.bg-accent *, 
button.bg-accent *,
.bg-accent,
.bg-accent * {
  color: #FFFFFF !important;
}

.bg-accent {
  background-color: #2563EB !important;
}

.bg-accent:hover {
  background-color: #1D4ED8 !important;
}

/* Header Links navigation styling */
.nav-link {
  color: #475569 !important;
}
.nav-link:hover, .nav-link:focus {
  color: #2563EB !important;
}

/* Secondary Button styling */
.bg-slate-800, #cta-contact, button.bg-slate-800 {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}

.bg-slate-800:hover, #cta-contact:hover, button.bg-slate-800:hover {
  background-color: #E2E8F0 !important;
}

/* Gradient and mixed colors cleanup */
.bg-gradient-to-tr, .bg-gradient-to-r {
  background-image: none !important;
}

/* Highlight badge */
.bg-slate-900\/90 {
  background-color: rgba(241, 245, 249, 0.95) !important;
  border-color: #CBD5E1 !important;
}
.bg-slate-900\/90 * {
  color: #2563EB !important;
}

/* Timeline items for education timeline */
.timeline-item::before {
  background: #2563EB !important;
  border-color: #FFFFFF !important;
}

/* Input Fields on Contact Page */
input, textarea, select {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #2563EB !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

/* Gradient Text to Blue Solid Text */
.bg-gradient-to-r.from-accent, .bg-gradient-to-r.from-white {
  background-image: none !important;
  background: none !important;
  -webkit-text-fill-color: #2563EB !important;
  color: #2563EB !important;
}
.bg-gradient-to-r.from-white.to-gray-400 {
  -webkit-text-fill-color: #0F172A !important;
  color: #0F172A !important;
}

/* Glass navigation bar */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* Call to Action Container Section */
.bg-gradient-to-tr.from-accent\/90 {
  background-color: #1E40AF !important;
  background: #1E40AF !important;
}
.bg-gradient-to-tr.from-accent\/90 * {
  color: #FFFFFF !important;
}
.bg-gradient-to-tr.from-accent\/90 a.bg-white {
  background-color: #FFFFFF !important;
  color: #1E40AF !important;
}
.bg-gradient-to-tr.from-accent\/90 a.bg-white * {
  color: #1E40AF !important;
}
.bg-gradient-to-tr.from-accent\/90 a.bg-slate-950\/40 {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile navigation overlay menu */
#mobile-menu {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}
#mobile-menu a {
  color: #475569 !important;
  border-bottom-color: rgba(15, 23, 42, 0.05) !important;
}
#mobile-menu a:hover {
  color: #2563EB !important;
}

/* Footer Section Overrides */
footer.bg-slate-950 {
  background-color: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
}
footer h4 {
  color: #0F172A !important;
}
footer *, footer p, footer a, footer span, footer li {
  color: #475569 !important;
}
footer a:hover {
  color: #2563EB !important;
}
footer .bg-slate-900 {
  background-color: #E2E8F0 !important;
  color: #475569 !important;
}
footer .bg-slate-900 i {
  color: #475569 !important;
}
footer .bg-slate-900:hover {
  background-color: #2563EB !important;
}
footer .bg-slate-900:hover i {
  color: #FFFFFF !important;
}

/* Global light-theme cleanup for remaining dark elements */
header,
.glass-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 10px 35px rgba(148, 163, 184, 0.12) !important;
}

main section,
main article,
main aside {
  color: #1E293B;
}

.bg-slate-950\/40,
.bg-slate-950\/60,
.bg-slate-950\/20 {
  background-color: rgba(255, 255, 255, 0.72) !important;
}

.border-white\/5,
.border-white\/10,
.border-white\/20 {
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.shadow-slate-950\/30,
.shadow-2xl,
.shadow-xl {
  --tw-shadow-color: rgba(148, 163, 184, 0.16) !important;
}

#nav-logo > div,
footer a.flex.items-center.space-x-3 > div {


  /* box-shadow: 0 12px 30px rgba(148, 163, 184, 0.18) !important; */
}

#nav-logo img,
footer a.flex.items-center.space-x-3 img {
  filter: brightness(0) saturate(100%) !important;
}

.lightbox {
  background: rgba(248, 250, 252, 0.92) !important;
}

.lightbox-content,
.lightbox-content .bg-slate-950,
.lightbox-content.bg-slate-900 {
  background: #FFFFFF !important;
  border-color: #D7E3F4 !important;
}

#lightbox-close,
#lightbox-title,
#lightbox-desc {
  color: #1E293B !important;
}

/* Contact page cleanup: two-color, no shadow, no border look */
.contact-page {
  --contact-accent: #2563EB;
  --contact-text: #0F172A;
}

.contact-page .bg-secondary\/10,
.contact-page .text-secondary,
.contact-page .text-indigo-400,
.contact-page .bg-indigo-500\/10 {
  background-color: rgba(37, 99, 235, 0.1) !important;
  color: var(--contact-accent) !important;
}

.contact-page .contact-card,
.contact-page .contact-map-card,
.contact-page .contact-form-shell {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.contact-page .contact-map-frame,
.contact-page input,
.contact-page textarea,
.contact-page #form-success-msg {
  border: none !important;
  box-shadow: none !important;
}

.contact-page input,
.contact-page textarea {
  background: #ffffff !important;
  color: var(--contact-text) !important;
}

.contact-page input:focus,
.contact-page textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: none !important;
}

.contact-page .contact-card i,
.contact-page .contact-card a,
.contact-page .contact-map-card i,
.contact-page footer .text-secondary {
  color: var(--contact-accent) !important;
}

.contact-page .shadow-xl,
.contact-page .shadow-lg,
.contact-page .shadow-2xl,
.contact-page .shadow-accent\/20,
.contact-page .shadow-slate-950\/30 {
  box-shadow: none !important;
}

.contact-page .border-white\/5,
.contact-page .border-white\/10,
.contact-page .border-secondary\/30 {
  border-color: transparent !important;
}

.contact-page #form-success-msg {
  background: rgba(255, 255, 255, 0.96) !important;
}

.contact-page #form-success-msg h3,
.contact-page #form-success-msg p {
  color: var(--contact-text) !important;
}

.project-card {
  border: none !important;
  box-shadow: none !important;
}
