@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@100..900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  /* POWER PALETTE: Premium Light & Electric Precision */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  /* Slate 50 */

  --fg: #0f172a;
  /* Slate 900 */
  --fg-muted: #64748b;
  /* Slate 500 */

  /* Resumate Blue Brand Palette */
  --accent: #0091FF;
  --accent-glow: rgba(0, 145, 255, 0.15);
  --accent-deep: #0070C5;

  --secondary: #0EA5E9;
  /* Sky 500 - Secondary Action */
  --cyan: #06B6D4;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --surface: rgba(255, 255, 255, 0.7);
  /* Frosted White */
  --surface-highlight: rgba(241, 245, 249, 0.8);
  --surface-active: rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);


  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 999px;

  /* Shadows - Clear & Soft */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -3px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);

  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dark-mode {
  --bg: #020617;
  /* Slate 950 */
  --bg-soft: #0b1120;
  /* Slate 900 */
  --fg: #f1f5f9;
  /* Slate 100 */
  --fg-muted: #94a3b8;
  /* Slate 400 */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --surface: rgba(15, 23, 42, 0.8);
  --surface-highlight: rgba(30, 41, 59, 0.9);
  --surface-active: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-md: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* subtle light noise */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(2.2rem, 8vw, 2.8rem) !important;
  }

  h2 {
    font-size: clamp(1.8rem, 6vw, 2.3rem) !important;
  }

  h3 {
    font-size: clamp(1.4rem, 5vw, 1.7rem) !important;
  }
}

/* Utilities */

.text-gradient {
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  will-change: transform, opacity;
  transform: translateZ(0);
}

.glass-pill {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-md);
  will-change: transform;
  transform: translateZ(0);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hover-glow:hover {
  filter: drop-shadow(0 0 8px var(--accent-glow));
  opacity: 1 !important;
}

/* Button Reset & Styles */

button {
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 145, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: 0.6s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 145, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--fg);
  border: 1.5px solid var(--border);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background: white;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 145, 255, 0.15);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Elements */

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--accent);
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: white;
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-soft);
}

/* Grid & Layout Utilities */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  width: 100%;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .responsive-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .responsive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.mobile-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .mobile-stack {
    flex-direction: row;
    align-items: center;
  }
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .sidebar-layout {
    grid-template-columns: 1fr 350px;
  }
}

.desktop-only {
  display: none !important;
}

@media (min-width: 1024px) {
  .desktop-only {
    display: flex !important;
  }
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1023px) {
  .mobile-only {
    display: flex !important;
  }
}

.text-center-mobile {
  text-align: center;
}

@media (min-width: 769px) {
  .text-center-mobile {
    text-align: left;
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations */

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

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

::selection {
  background: var(--accent);
  color: white;
}

.mobile-stack {
  display: flex !important;
  flex-direction: column !important;
}

@media (min-width: 769px) {
  .mobile-stack {
    flex-direction: row !important;
  }
}