/* ------------------------------------------------------------
   Fonts & Color System
------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Pacifico&display=swap');

:root {
  --bg-1: #eef6fb;
  --bg-2: #e6eef9;
  --accent-1: #0f3a7a;
  --accent-2: #2b7be9;
  --accent-3: #6bc5a5;
  --muted: #36495b;
  --card-bg: rgba(255,255,255,0.92);
}

/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  color: var(--muted);
  background:
    radial-gradient(circle at 20% 30%, #ffffff 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #d9e9ff 0%, transparent 40%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-position 0.2s ease;
}

/* ------------------------------------------------------------
   Layout
------------------------------------------------------------ */
.container {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* ------------------------------------------------------------
   3D Header
------------------------------------------------------------ */
.site-header {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.12));
  padding: 3.5rem 1rem 2rem;
  text-align: center;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(99, 88, 255, 0.1);
  animation: fadeInHeader 1.4s ease forwards;
  opacity: 0;
  transform: translateY(25px);
  perspective: 1000px;
}

@keyframes fadeInHeader {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated gradient wave + floating motion */
.site-title,
.site-subtitle {
  background: linear-gradient(
    270deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-3),
    var(--accent-2),
    var(--accent-1)
  );
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorWave 6s ease-in-out infinite, textFloat 3.5s ease-in-out infinite;
  display: block;
}

@keyframes colorWave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes textFloat {
  0%, 100% { transform: translateY(0px); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-2px); }
}

.site-title {
  font-family: 'Pacifico', 'Inter', sans-serif;
  font-size: 3.6rem;
  margin-bottom: 0.5rem;
  text-shadow:
    0 4px 10px rgba(0,0,0,0.15),
    0 0 25px rgba(43,123,233,0.2);
  transform: rotateX(5deg);
  transition: transform 0.6s ease;
}

.site-header:hover .site-title {
  transform: rotateX(0deg) scale(1.03);
}

.site-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation-delay: 0.3s;
}

/* ------------------------------------------------------------
   Section Depth & 3D Cards
------------------------------------------------------------ */
section {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.04) inset;
  backdrop-filter: blur(8px);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
  margin-top: 2rem;
}

section:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.08) inset;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.9rem;
  background-image: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 3px solid rgba(255,255,255,0.2);
}

/* ------------------------------------------------------------
   Timeline & Lists
------------------------------------------------------------ */
ul { list-style: none; }

.timeline li,
.education-list li {
  margin: 0.8rem 0;
}

.timeline li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: conic-gradient(var(--accent-1), var(--accent-2), var(--accent-3));
  vertical-align: middle;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}

a:hover {
  color: var(--accent-1);
}

a:hover::after {
  width: 100%;
}

/* ------------------------------------------------------------
   Social Buttons
------------------------------------------------------------ */
.socials {
  margin: 1rem 0;
}
.socials a {
  display: inline-block;
  margin-right: 0.6rem;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(107,139,255,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99,88,255,0.25);
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.site-footer {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem 0;
  color: #3b4a5a;
  font-size: 0.95rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
}

/* ------------------------------------------------------------
   Responsive Tweaks
------------------------------------------------------------ */
@media (min-width: 760px) {
  .site-header { padding: 4rem 2rem 2.25rem; }
  .site-title { font-size: 3.8rem; }
}
