/* ===== CSS VARIABLES ===== */
:root {
  --background: hsl(210, 25%, 3%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(210, 20%, 6%);
  --card-foreground: hsl(0, 0%, 98%);
  --primary: hsl(199, 89%, 48%);
  --primary-foreground: hsl(210, 25%, 3%);
  --secondary: hsl(210, 20%, 10%);
  --muted: hsl(210, 20%, 12%);
  --muted-foreground: hsl(0, 0%, 55%);
  --accent: hsl(199, 75%, 38%);
  --border: hsl(210, 20%, 12%);
  --radius: 0.75rem;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 10, 0.6);
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--primary);
}

.logo-info h1 {
  margin: 0;
  font-size: 14px;
  color: var(--foreground);
}

.logo-info span {
  font-size: 12px;
  color: var(--muted-foreground);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  flex-grow: 1;
}

.nav-link-item {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link-item:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

.nav-link-item.active {
  color: var(--primary);
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  border-radius: 1px;
}

.mobile-btn {
  display: none;
}

.mobile-btn button {
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 8, 10, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  z-index: 9999;
}

.mobile-dropdown.active {
  display: flex;
}

.mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-link {
  color: var(--foreground);
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--primary);
}

/* ===== HOME PAGE ===== */
.home-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  padding: 3rem 2rem 1rem;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.08), transparent 80%);
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 1250px;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Photo */
.photo-container {
  position: relative;
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-ring {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  opacity: 0.3;
  animation: rotate 25s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.photo-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  width: 300px;
  height: 300px;
  box-shadow: 0 0 45px rgba(14, 165, 233, 0.25);
  border: 3px solid var(--primary);
  animation: float 4s ease-in-out infinite;
}

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

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Info Section */
.home-info {
  flex: 1;
  min-width: 360px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.home-name {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.typing-effect {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.4rem;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid var(--primary);
  animation: typing 3.5s steps(40, end) forwards, blink 0.8s infinite;
  max-width: 15ch;
}

@keyframes typing {
  from { width: 0; }
  to { width: 15ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Profession Tags */
.profession-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.profession-tag {
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: default;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.profession-tag:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
}

/* Info Cards */
.info-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.08);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px) scale(1.05);
}

.info-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.info-card-header strong {
  font-size: 0.9rem;
}

.info-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.info-icon {
  width: 16px;
  height: 16px;
}

.info-icon.red { color: #f87171; }
.info-icon.yellow { color: #facc15; }
.info-icon.primary { color: var(--primary); }

/* Quick Links */
.quick-links {
  text-align: center;
  margin-top: 1.5rem;
  width: 100%;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.quick-links-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.quick-links-title {
  font-size: 1rem;
  font-weight: 600;
}

.quick-links-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: all 0.3s ease;
}

.social-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
  transform: scale(1.15) rotate(5deg);
}

/* ===== PAGE CONTAINERS ===== */
.page-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.1);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ===== PROJECTS PAGE ===== */
.projects-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  background: linear-gradient(145deg, var(--card), var(--background));
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.08);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-image {
  border-radius: 12px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

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

.project-content {
  margin-top: 12px;
}

.project-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tech-tag {
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: rgba(14, 165, 233, 0.8);
}

.project-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.project-btn:hover {
  transform: scale(1.08);
}

.project-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.1);
}

.project-btn.primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
}

/* ===== SKILLS PAGE ===== */
.skills-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-header {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.skills-header .underline {
  width: 112px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto 24px;
}

.skills-header p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.skills-stage {
  width: 100%;
  height: 550px;
  border-radius: 25px;
  background: radial-gradient(circle at 50% 50%, var(--card), var(--background));
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(14, 165, 233, 0.07);
  position: relative;
  margin-bottom: 3rem;
}

.skill-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.3s ease;
}

.skill-circle:hover {
  transform: scale(1.3);
  box-shadow: 0 0 35px 10px rgba(14, 165, 233, 0.6);
  background: rgba(14, 165, 233, 0.12);
}

.skill-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4)) brightness(1.2);
  margin-bottom: 5px;
}

.skill-name {
  color: rgba(14, 165, 233, 0.9);
  font-size: 13px;
  font-weight: 500;
}

.skills-table {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease;
}

.skill-box:hover {
  transform: scale(1.05);
}

.skill-box h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.skill-box li {
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-box li:last-child {
  border-bottom: none;
}

.skill-box li:hover {
  transform: translateX(6px);
  color: var(--primary);
}

/* ===== RESUME PAGE ===== */
.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 20px;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.resume-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.resume-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.resume-section {
  margin-bottom: 2rem;
}

.resume-section.summary {
  background: rgba(14, 165, 233, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title svg {
  width: 20px;
  height: 20px;
}

.resume-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.resume-item h5 {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.resume-item p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== ABOUT PAGE ===== */
.about-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, var(--card), var(--background));
  padding: 3rem 1rem;
}

.about-card {
  width: 100%;
  max-width: 1100px;
  text-align: left;
  margin-top: 1rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3rem 3.5rem;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.08);
  backdrop-filter: blur(10px);
}

.about-title {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--foreground);
}

.education-section {
  margin-top: 3rem;
}

.education-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.education-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.education-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.05);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.15);
}

.education-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex-shrink: 0;
}

.education-card-title {
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.education-institution {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.2rem;
}

.education-details,
.education-year {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.contact-card {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.contact-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.contact-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.social-icons-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-input {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-input:focus {
  border-color: var(--primary);
}

.contact-input::placeholder {
  color: var(--muted-foreground);
}

textarea.contact-input {
  resize: none;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-btn {
    display: block;
  }
  
  .home-top {
    flex-direction: column;
    text-align: center;
  }

  .home-info {
    min-width: unset;
    align-items: center;
  }

  .home-title {
    font-size: 2rem;
  }

  .typing-effect {
    font-size: 1rem;
    white-space: normal;
    border-right: none;
    animation: none;
  }

  .profession-tags {
    justify-content: center;
  }

  .info-cards {
    justify-content: center;
  }

  .photo-container {
    flex: 0 0 auto;
  }

  .photo-frame {
    width: 200px;
    height: 200px;
  }

  .photo-ring {
    width: 230px;
    height: 230px;
  }

  .about-card {
    padding: 2rem 1.5rem;
  }

  .education-card {
    flex-direction: column;
    text-align: center;
  }

  .skills-stage {
    height: 400px;
  }

  .skill-circle {
    width: 80px;
    height: 80px;
  }

  .skill-logo {
    width: 35px;
    height: 35px;
  }

  .skill-name {
    font-size: 11px;
  }
}
