@import url('https://fonts.googleapis.com/css2?family=Sofia&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&family=Sofia&display=swap');

:root {
  --primary: #2563eb;
  --secondary: #3b82f6;
  --dark: #0f172a;
  --light: #f8fafc;
  --success: #10b981;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.7;
}

.navbar {
  padding: 1.2rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
}

.first-name {
  color: var(--primary);
  font-weight: 700;
}

.last-name {
  color: var(--dark);
  font-weight: 400;
  margin-left: 5px;
}

.brand-title {
  font-size: 0.8rem;
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  color: var(--dark) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.navbar-scrolled .nav-link {
  color: var(--light) !important;
}

.navbar-scrolled .last-name,
.navbar-scrolled .brand-title {
  color: var(--light);
}

.hero-section {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
  position: relative;
  overflow: hidden;
}

.hero-image {
  border: 4px solid var(--primary);
  padding: 0.5rem;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 10s ease-in-out infinite;
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.skill-card, .timeline-item, .contact-form {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.skill-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  left: -40px;
  top: 2rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-type {
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.project-content {
  padding: 1.5rem;
}

.tech-stack {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-stack span {
  padding: 0.3rem 0.8rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  border: none;
}

.project-links .btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
}

.project-card:hover, .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-type {
  transform: translateY(0);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.bg-light {
  background-color: #f8f9fa !important;
}
.main-font {
  font-family: 'Sofia', serif, system-ui;
}
.contact-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.contact-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  background: #198754;
  color: white;
  font-size: 1.5rem;
}

.contact-icon i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}