:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --primary: #0ea5e9;
  --primary-hover: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}


#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 15px 0;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}


main {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-main);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 1rem;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px var(--primary);
}

.secondary-btn {
  background: transparent;
  color: var(--text-main);
  border-color: var(--glass-border);
}

.secondary-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}


.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 85vh;
}

.hero-left, .hero-right {
  flex: 1;
}

.img-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.img-wrapper::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: linear-gradient(45deg, var(--primary), #a855f7);
  border-radius: 50%;
  z-index: -1;
  filter: blur(25px);
  opacity: 0.6;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

#profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.greeting {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

#name {
  font-size: 4.5rem;
  line-height: 1.1;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
}

#role {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.summary {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 550px;
}

.links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}


.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  font-size: 1.05rem;
}

.skill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -10px rgba(14, 165, 233, 0.5);
}


.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 35px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), #a855f7);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  flex-grow: 1;
  font-size: 1.05rem;
}

.card-links {
  margin-top: auto;
}


.contact-text {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

form {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group {
  display: flex;
  gap: 25px;
}

input, textarea {
  width: 100%;
  padding: 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

textarea {
  height: 180px;
  resize: vertical;
}

form button {
  align-self: center;
}


footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  margin-top: 80px;
  background: rgba(15, 23, 42, 0.8);
}


.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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


@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }
  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #name {
    font-size: 3.5rem;
  }
}

@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
    gap: 25px;
  }
  .nav-links {
    display: none; 
  }
  #name {
    font-size: 2.8rem;
  }
  .links {
    justify-content: center;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 320px;
  margin: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #111;
  border: 1px solid #00f7ff;
  color: white;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 10px #00f7ff;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  background: #00f7ff;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  box-shadow: 0 0 20px #00f7ff;
  transform: scale(1.05);
}
#form-status {
  margin-top: 10px;
  color: #00f7ff;
  font-size: 0.9rem;
}

.education {
  padding: 50px;
  text-align: center;
}

.education-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.edu-card {
  background: #111;
  border: 1px solid #00f7ff;
  margin: 15px;
  padding: 20px;
  width: 260px;
  transition: 0.3s;
}

.edu-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00f7ff;
}

.edu-card h3 {
  color: #00f7ff;
  margin-bottom: 10px;
}

.edu-card p {
  color: #ccc;
  font-size: 0.9rem;
}

.edu-card span {
  color: #aaa;
  font-size: 0.8rem;
}