@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --sky: #5bc4f0;
  --sky-light: #a8dff7;
  --sky-deep: #2a9fd6;
  --sky-pale: #e8f7fd;
  --navy: #0a1628;
  --navy-mid: #132040;
  --white: #ffffff;
  --accent: #ff6b35;
  --accent2: #f7c59f;
  --text-main: #1a2e45;
  --text-muted: #5a7a96;
  --glass: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.22);
  --shadow-sky: 0 8px 40px rgba(91,196,240,0.25);
  --shadow-deep: 0 20px 60px rgba(10,22,40,0.18);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sky-pale);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ── CUSTOM CURSOR ── */
.cursor { position: fixed; width: 12px; height: 12px; background: var(--sky-deep); border-radius: 50%; pointer-events: none; z-index: 9999; transition: transform 0.15s ease; mix-blend-mode: multiply; }
.cursor-ring { position: fixed; width: 36px; height: 36px; border: 2px solid var(--sky); border-radius: 50%; pointer-events: none; z-index: 9998; transition: transform 0.35s cubic-bezier(.16,1,.3,1); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(232,247,253,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91,196,240,0.2);
  transition: all 0.3s ease;
}
.navbar.scrolled { padding: 0.8rem 4rem; box-shadow: var(--shadow-sky); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--sky-deep), var(--navy));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-main); font-size: 0.9rem;
  font-weight: 500; position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--sky-deep); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--sky-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 25px; height: 2px; background: var(--text-main); transition: all 0.3s; border-radius: 2px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 8rem 4rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #e8f7fd 0%, #b8e8f9 40%, #d4f0fc 100%);
  z-index: 0;
}
.hero-orb1 {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,196,240,0.3) 0%, transparent 70%);
  top: -100px; right: -100px; animation: floatOrb 8s ease-in-out infinite;
}
.hero-orb2 {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,159,214,0.2) 0%, transparent 70%);
  bottom: 50px; left: -80px; animation: floatOrb 10s ease-in-out infinite reverse;
}
@keyframes floatOrb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.05); } }

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); border-radius: 50px;
  padding: 0.5rem 1.2rem; margin-bottom: 1.5rem;
  font-size: 0.82rem; font-weight: 500; color: var(--sky-deep);
  animation: fadeSlideUp 0.8s ease forwards; opacity: 0;
  box-shadow: 0 4px 15px rgba(91,196,240,0.2);
}
.badge-dot { width: 8px; height: 8px; background: var(--sky-deep); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(42,159,214,0.4); } 50% { box-shadow: 0 0 0 8px rgba(42,159,214,0); } }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.1;
  color: var(--navy); margin-bottom: 1rem;
  animation: fadeSlideUp 0.8s 0.2s ease forwards; opacity: 0;
}
.hero h1 span { color: var(--sky-deep); position: relative; display: inline-block; }
.hero h1 span::after {
  content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 8px;
  background: rgba(91,196,240,0.3); z-index: -1; border-radius: 4px;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 2.5rem; max-width: 500px;
  animation: fadeSlideUp 0.8s 0.4s ease forwards; opacity: 0;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.6s ease forwards; opacity: 0;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.9rem 2rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--sky-deep), var(--navy));
  color: white; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: all 0.3s; box-shadow: var(--shadow-sky);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(42,159,214,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.9rem 2rem; border-radius: 50px;
  background: var(--white); color: var(--sky-deep);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  border: 2px solid var(--sky-light); transition: all 0.3s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--sky-deep); transform: translateY(-3px); box-shadow: var(--shadow-sky); }

.hero-image { position: relative; z-index: 1; display: flex; justify-content: center; animation: fadeSlideRight 1s 0.3s ease forwards; opacity: 0; }
.hero-image-wrap {
  position: relative; width: 380px; height: 460px;
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  border: 4px solid white; box-shadow: var(--shadow-deep);
  animation: morphShape 8s ease-in-out infinite;
}
@keyframes morphShape {
  0%,100% { border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; }
  33% { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
  66% { border-radius: 60% 40% 60% 40% / 40% 55% 45% 60%; }
}
.hero-image-ring {
  position: absolute; inset: -15px; border-radius: inherit;
  border: 2px dashed rgba(91,196,240,0.4);
  animation: rotateSlow 20s linear infinite;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
}
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.floating-card {
  position: absolute; background: white; border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem; box-shadow: var(--shadow-deep);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-main);
  animation: floatCard 4s ease-in-out infinite;
}
.floating-card.card1 { top: 20px; left: -40px; animation-delay: 0s; }
.floating-card.card2 { bottom: 40px; right: -30px; animation-delay: 1.5s; }
.card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sky), var(--sky-deep)); }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  animation: fadeSlideUp 0.8s 0.8s ease forwards; opacity: 0;
}
.stat-item { }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--sky-deep); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── SECTIONS COMMON ── */
section { padding: 6rem 4rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(91,196,240,0.12); border: 1px solid rgba(91,196,240,0.3);
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; color: var(--sky-deep);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700;
  color: var(--navy); margin-bottom: 1rem; line-height: 1.2;
}
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 500px; line-height: 1.7; }

/* ── ABOUT ── */
.about { background: white; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.about-text { }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.about-card {
  background: var(--sky-pale); border-radius: var(--radius-sm); padding: 1.3rem;
  border: 1px solid rgba(91,196,240,0.2); transition: all 0.3s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sky); border-color: var(--sky-light); }
.about-card-icon { margin-bottom: 0.7rem; }
.about-card h4 { font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.about-card p { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

.about-visual { position: relative; }
.about-img-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-deep); }
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.about-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.8), transparent);
  padding: 2rem; color: white;
}
.about-img-overlay h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.about-img-overlay p { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* ── SKILLS ── */
.skills { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: white; }
.skills-inner { max-width: 1200px; margin: 0 auto; }
.skills .section-title { color: white; }
.skills .section-subtitle { color: rgba(255,255,255,0.6); }
.skills .section-tag { background: rgba(91,196,240,0.15); border-color: rgba(91,196,240,0.3); }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.skill-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-deep));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.skill-card:hover { background: rgba(91,196,240,0.1); transform: translateY(-6px); border-color: rgba(91,196,240,0.3); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.skill-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(91,196,240,0.2), rgba(42,159,214,0.3)); display: flex; align-items: center; justify-content: center; }
.skill-name { font-weight: 600; font-size: 1.05rem; }
.skill-percent { font-size: 0.82rem; color: var(--sky-light); }
.skill-bar-wrap { height: 6px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden; }
.skill-bar { height: 100%; background: linear-gradient(90deg, var(--sky), var(--sky-deep)); border-radius: 6px; width: 0; transition: width 1.5s cubic-bezier(.16,1,.3,1); }

/* ── PROJECTS ── */
.projects { background: var(--sky-pale); }
.projects-inner { max-width: 1200px; margin: 0 auto; }
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.project-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.4s ease;
  border: 1px solid rgba(91,196,240,0.1);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-sky); }
.project-thumb {
  height: 200px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky-light));
  display: flex; align-items: center; justify-content: center;
}
.project-thumb-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.project-thumb svg { opacity: 0.5; transition: all 0.3s; }
.project-card:hover .project-thumb svg { opacity: 1; transform: scale(1.1); }
.project-overlay {
  position: absolute; inset: 0; background: linear-gradient(135deg, rgba(42,159,214,0.9), rgba(10,22,40,0.9));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.4s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link { color: white; font-weight: 600; text-decoration: none; font-size: 0.9rem; border: 2px solid white; padding: 0.6rem 1.5rem; border-radius: 50px; transition: all 0.3s; }
.project-link:hover { background: white; color: var(--sky-deep); }

.project-body { padding: 1.5rem; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.project-tag { font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 50px; background: rgba(91,196,240,0.12); color: var(--sky-deep); }
.project-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.project-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── CONTACT ── */
.contact { background: white; }
.contact-inner { max-width: 900px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--sky-pale); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-main);
  border: 1px solid rgba(91,196,240,0.15); transition: all 0.3s;
}
.contact-link:hover { background: var(--sky-light); transform: translateX(6px); border-color: var(--sky); }
.contact-link-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--sky), var(--sky-deep)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link-text span { display: block; }
.contact-link-text .cl-label { font-size: 0.72rem; color: var(--text-muted); }
.contact-link-text .cl-val { font-size: 0.88rem; font-weight: 600; color: var(--navy); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group textarea {
  padding: 0.85rem 1rem; border: 1.5px solid rgba(91,196,240,0.25);
  border-radius: var(--radius-sm); background: var(--sky-pale);
  font-family: inherit; font-size: 0.9rem; color: var(--text-main);
  transition: all 0.3s; resize: none; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--sky-deep); box-shadow: 0 0 0 3px rgba(91,196,240,0.15); background: white; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  text-align: center; padding: 2.5rem 4rem;
}
footer p { font-size: 0.85rem; }
footer span { color: var(--sky); }

/* ── ANIMATIONS ── */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sky-pale); }
::-webkit-scrollbar-thumb { background: var(--sky-light); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky-deep); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: -300px; height: 100vh; width: 260px; background: white; box-shadow: -10px 0 40px rgba(0,0,0,0.1); padding: 5rem 2rem 2rem; gap: 1.5rem; transition: right 0.4s ease; z-index: 999; }
  .nav-links.open { display: flex; right: 0; }
  .nav-toggle { display: flex; z-index: 1000; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; text-align: center; }
  .hero-image { order: -1; }
  .hero-image-wrap { width: 260px; height: 310px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .floating-card.card1 { left: -10px; top: 10px; }
  .floating-card.card2 { right: -10px; bottom: 20px; }
  section { padding: 4rem 1.5rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  footer { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .about-cards { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}
