/* Custom Color Palette: Navy Blue + Light Blue */
:root {
  --navy-dark: #0a142e;
  --navy-primary: #102044;
  --navy-light: #1a2a4f;
  --blue-light: #2758CC;
  --blue-lighter: #3B72E0;
  --card-blue: #eef2ff;
  --card-blue-hover: #e0e7ff;
  --beige-light: #faf7f2;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--beige-light);
  color: var(--navy-dark);
  overflow-x: hidden;
}

h1, h2, h3, .serif-font {
  font-family: 'Playfair Display', serif;
}

.bg-navy-dark { background-color: var(--navy-dark); }
.bg-navy-primary { background-color: var(--navy-primary); }
.bg-blue-light { background-color: var(--blue-light); }
.text-blue-light { color: var(--blue-light); }
.border-blue-light { border-color: var(--blue-light); }

/* Card Light Blue Style */
.card-light-blue {
  background: linear-gradient(135deg, #ffffff 0%, var(--card-blue) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.3s ease;
}

.card-light-blue:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, #ffffff 0%, var(--card-blue-hover) 100%);
  box-shadow: 0 20px 35px -12px rgba(16, 32, 68, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
}

/* Circular Image Style - Enhanced */
.circular-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 25px 45px -12px rgba(0,0,0,0.25);
  border: 4px solid white;
  transition: transform 0.4s ease, box-shadow 0.3s;
}

.circular-image:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 55px -15px rgba(96, 165, 250, 0.4);
}

/* Preloader Animation */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a142e 0%, #1a2a4f 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 1s ease, visibility 0.5s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-name {
  text-align: center;
  animation: fadeInUp 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-name .first-name {
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #ffffff, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  animation: glowPulse 2s infinite alternate;
}

.preloader-name .last-name {
  font-size: clamp(1rem, 4vw, 1.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Gradient Loading Line - Centered Horizontal */
.gradient-line {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #60a5fa, #93c5fd, #60a5fa, transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  margin-top: 1.5rem;
  border-radius: 3px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.click-hint {
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  animation: bounce 1.5s infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes bounce {
  0%,100%{ transform: translateY(0);}
  50%{ transform: translateY(8px);}
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 10px rgba(96, 165, 250, 0.3); }
  100% { text-shadow: 0 0 30px rgba(96, 165, 250, 0.6); }
}

/* Fullscreen Horizontal Navbar */
.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom right, #120F59, #2758CC);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.4s ease;
}

.fullscreen-nav.open {
  visibility: visible;
  opacity: 1;
}

.nav-links-horizontal {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
}

.nav-link-animated {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: white;
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
  display: inline-block;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .nav-link-animated { font-size: 1.8rem; }
  .nav-links-horizontal { gap: 1.5rem; flex-direction: column; align-items: center; }
}

.nav-link-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  transition: width 0.3s ease;
}

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

.nav-link-animated:hover {
  transform: translateY(-5px);
  color: #93c5fd;
}

.close-nav {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-nav:hover {
  transform: rotate(90deg);
  color: #60a5fa;
}

/* Hero Gradient - Navy Blue to Light Blue */
.hero-gradient {
  background: linear-gradient(to bottom right, #120F59, #2758CC);
}

/* Button Styles - Light Blue */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

/* Image placeholder for portfolio items */
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-img-wrapper:hover .portfolio-img {
  transform: scale(1.05);
}

/* Scroll animations */
.section-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--beige-light);
}
::-webkit-scrollbar-thumb {
  background: #60a5fa;
  border-radius: 10px;
}

/* ========== Contact Section Styles ========== */
.contact-card {
  background: linear-gradient(145deg, #ffffff, var(--beige-light));
  border: 1px solid rgba(96, 165, 250, 0.15);
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 25px 50px -12px rgba(16, 32, 68, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--navy-dark);
  background: white;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.form-input::placeholder {
  color: #a0aec0;
}

.form-select {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--navy-dark);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2360a5fa' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.25s ease;
  outline: none;
}

.form-select:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--navy-dark);
  background: white;
  resize: vertical;
  min-height: 110px;
  transition: all 0.25s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.form-textarea::placeholder {
  color: #a0aec0;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.25s ease;
}

.input-wrapper:focus-within .input-icon {
  color: var(--blue-light);
}

.contact-info-card {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-primary));
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.btn-submit {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.4);
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
}

.social-link.linkedin {
  background: #0A66C2;
  color: white;
}

.social-link.linkedin:hover {
  background: #004182;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(10, 102, 194, 0.35);
}

.social-link.email {
  background: transparent;
  color: var(--navy-dark);
  border-color: #e2e8f0;
}

.social-link.email:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(96, 165, 250, 0.2);
}
