/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0a1f36; /* Dark navy professional */
  color: #e0e6eb;       /* Light readable text */
  line-height: 1.6;
  transition: background 0.5s, color 0.5s;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  background: rgba(10, 31, 54, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  color: #1abc9c; /* teal accent */
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #f1c40f; /* gold accent */
}

nav a {
  margin: 0 1rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #f1c40f;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0a1f36, #0d2b4f, #1abc9c);
}

.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
}

.hero-content h2 {
  font-size: 2.5rem;
  animation: fadeInUp 1s ease forwards;
}

.hero-content span {
  color: #f1c40f;
}

.hero-content p {
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeInUp 1.3s ease forwards;
  animation-delay: 0.2s;
}

.btn {
  background: linear-gradient(90deg, #1abc9c, #f1c40f);
  color: #0a1f36;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn:hover {
  background: linear-gradient(90deg, #f1c40f, #1abc9c);
  transform: scale(1.05);
}

/* Logo Animation */
.logo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #0a1f36;
  padding: 10px;
  z-index: 2;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#1abc9c, #f1c40f, #0d2b4f, #1abc9c);
  animation: spin 8s linear infinite;
  box-shadow: 0 0 20px #1abc9c, 0 0 40px #f1c40f;
}

.logo-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: #0a1f36;
  border-radius: 50%;
}

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

@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Sections */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section h2 {
  color: #1abc9c;
  margin-bottom: 1rem;
  font-size: 2rem;
  position: relative;
}

.section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #f1c40f;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

/* Cards */
/* PROJECT GRID FIX */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

/* CARD FIX */
.card {
  background: linear-gradient(145deg, #0d2b4f, #0a1f36);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 100%;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(241,196,15,0.6);
}

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

/* BUTTON ALIGNMENT */
.card-buttons .btn {
  margin-top: 1rem;
  margin-right: 0.5rem;
}

/* NAVBAR MOBILE FIX */
@media (max-width: 768px) {

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 220px;
    background: #0a1f36;
    flex-direction: column;
    padding-top: 4rem;
    transition: right 0.3s ease;
  }

  nav a {
    padding: 1rem;
    border-bottom: 1px solid #1abc9c;
  }

  nav.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1100;
  }

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

/* OVERLAY (click outside close effect) */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 900;
}

.nav-overlay.active {
  display: block;
}

.card h3 {
  color: #f1c40f;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(241,196,15,0.6);
}

/* View Live Button */
.view-live-container {
  text-align: center;
  margin-top: 1.5rem;
}

/* Contact */
.email {
  color: #1abc9c;
  text-decoration: none;
}

.email:hover { text-decoration: underline; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: #f1c40f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.social-links a i {
  margin-right: 0.4rem;
}

.social-links a:hover {
  color: #1abc9c;
}

/* Footer */
footer {
  background: #0a1629;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
  }
  nav.active { display: flex; }
  .menu-toggle { display: block; }
  .hero-inner { flex-direction: column; text-align: center; }
}
.small-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}
.card .btn {
  margin-top: 0.8rem;
  margin-right: 0.5rem;
}
.card a {
  display: inline-block;
}
.card {
  background: linear-gradient(145deg, #0d2b4f, #0a1f36);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* key line */

  height: 100%; /* ensures equal height */
}
/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #9fb3c8;
}

.about-text span {
  color: #1abc9c;
  font-weight: 600;
}

.about-text strong {
  color: #f1c40f;
}

/* SKILLS BOX */
.about-skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 14px;
  transition: 0.3s;
}

.skill-box:hover {
  transform: translateY(-5px);
  border-color: #1abc9c;
}

.skill-box h3 {
  color: #1abc9c;
  margin-bottom: 0.8rem;
}

.skill-box ul {
  list-style: none;
}

.skill-box li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #c9d1d9;
}

/* MOBILE */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}