/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Basic Resets & Variables */
:root {
  --primary-color: #0d6efd;
  --primary-hover: #0a58ca;
  --secondary-color: #f8f9fc;
  --accent-color: #00e5ff;
  --text-dark: #2b2d42;
  --text-light: #8d99ae;
  --nav-link-color: #ffffff;
  --nav-link-hover: #00e5ff;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

/* Custom Navbar */
.custom-navbar {
  background: transparent;
  transition: all 0.4s ease;
  padding: 1.2rem 0;
}

.custom-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 1.5rem;
}

.custom-navbar .navbar-brand i {
  color: var(--accent-color);
}

.custom-navbar .navbar-brand span {
  color: var(--accent-color);
}

.custom-navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
  color: var(--nav-link-hover) !important;
}

.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0px;
  left: 0;
  background-color: var(--nav-link-hover);
  transition: width 0.3s ease-in-out;
}

.custom-navbar .nav-link:hover::after, .custom-navbar .nav-link.active::after {
  width: 100%;
}

/* Scrolled Navbar */
.custom-navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background: url("https://images.unsplash.com/photo-1550439062-609e1531270e?q=80&w=2070&auto=format&fit=crop") no-repeat center center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

/* Profile Image */
.profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  margin-bottom: 25px;
}

.profile-img:hover {
  transform: scale(1.05) translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4);
}

/* Hero Texts */
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.typing-name {
  color: var(--accent-color);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 1px;
}

/* Button Custom */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #00d2ff);
  border: none;
  border-radius: 30px;
  padding: 12px 35px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(13, 110, 253, 0.4);
  background: linear-gradient(45deg, #00d2ff, var(--primary-color));
}

/* About Section */
#about {
  padding: 100px 0;
  background-color: #fff;
}

.card {
  border-radius: 20px;
  border: none;
  background: #ffffff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#about .card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

#about h2 {
  color: var(--text-dark);
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

#about h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

#about img {
  border-radius: 20px !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.02);
}

/* Projects Section */
#projects {
  padding: 100px 0;
  background-color: var(--secondary-color);
}

#projects h2 {
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 3.5rem !important;
  position: relative;
  display: inline-block;
}

#projects h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

#projects .card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
}

#projects .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

#projects .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#projects .card:hover .card-img-top {
  transform: scale(1.05);
}

#projects .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

#projects .card-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

#projects .card-text {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-preview {
  border-radius: 20px;
  padding: 8px 24px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-preview:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(13, 110, 253, 0.2);
}

/* Contact Section */
#contact {
  padding: 100px 0;
  background-color: #fff;
}

#contact h2 {
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem !important;
}

#contact h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

#contact p {
  color: var(--text-light);
  font-size: 1.1rem;
}

#contact .btn {
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#contact .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background: #0f172a !important;
  padding: 1.5rem 0 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .profile-img { animation: fadeUp 1s ease-out 0.2s both; }
.hero h1 { animation: fadeUp 1s ease-out 0.4s both; }
.hero p { animation: fadeUp 1s ease-out 0.6s both; }
.hero .btn { animation: fadeUp 1s ease-out 0.8s both; }
