/* --- Variables & Reset --- */
:root {
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-color: #22d3ee; /* Cyan */
  --accent-hover: #06b6d4;
  --blue-color: #2563eb;
  --border-color: rgba(59, 130, 246, 0.2);
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Container & Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-btn {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--accent-color);
}

.hamburger-btn {
  display: none;
  color: var(--text-primary);
}

/* --- Mobile Menu --- */
.mobile-menu {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 10px 20px;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu.block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn-mobile {
  text-align: left;
  padding: 10px;
  color: var(--text-secondary);
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-btn-mobile:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.nav-btn-mobile.active {
  color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
  padding-top: 120px;
  padding-bottom: 50px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    to bottom right,
    var(--blue-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 5px;
}

.subtitle {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.description {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 20px;
}

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

.social-btn {
  background: var(--blue-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
}

/* --- Main Content Cards --- */
.main-content {
  padding-bottom: 80px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

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

.card {
  background: var(--bg-card);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--accent-color);
}

.text-content p {
  margin-bottom: 15px;
  color: #cbd5e1;
}

/* --- Grids (Info, Projects, Skills) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.info-box {
  background: rgba(15, 23, 42, 0.5);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  transition:
    transform 0.3s,
    border-color 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.project-card h4 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 15px;
}

/* --- Tags --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tags span {
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.large-tags span {
  padding: 8px 15px;
  background: rgba(15, 23, 42, 0.5);
  cursor: default;
}

.large-tags span:hover {
  background: rgba(37, 99, 235, 0.4);
  color: white;
}

.skill-title {
  color: var(--accent-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Links --- */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-color);
  font-weight: bold;
}

.link-btn:hover {
  color: #fff;
}

.link-btn i {
  width: 16px;
  height: 16px;
}

/* --- Contact Section --- */
.contact-card {
  max-width: 700px;
  margin: 0 auto;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.contact-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent-color);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
  margin-top: auto;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .social-links {
    justify-content: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
