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

:root {
    --bg-main: #0b1220;
    --bg-elevated: #141826;

    --text-main: #e6e6eb;
    --text-muted: #b5b7c2;

   --accent-primary: #38bdf8;     /* teal-blue */
--accent-secondary: #22d3ee;   /* soft cyan */

--gradient-accent: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
);

    
}

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

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
  circle at top center,
  rgba(56, 189, 248, 0.12),
  transparent 75%
);
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      600px circle at 20% 30%,
      rgba(56, 189, 248, 0.12),
      transparent 60%
    ),
    radial-gradient(
      500px circle at 80% 70%,
      rgba(34, 211, 238, 0.10),
      transparent 65%
    );
  pointer-events: none;
  z-index: -2;
}



/* Navigation */

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Sections */
section {
     padding: 100px 60px;
    max-width: 1100px;
    margin: auto;
    position: relative;
}
section:not(#hero)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 18px;
  z-index: -1;
}

/* Hero */
#hero {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-top: 110px;
}

#hero h2 {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(
        180deg,
        #ffffff,
        rgba(255, 255, 255, 0.75)
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
     max-width: 900px;
}
.hero-subtext {
  max-width: 900px;   /* wider, cleaner line length */
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.hero-highlight {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #777;
}


.btn-primary {
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--gradient-accent);
  color: #0e1016;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);

}

.btn-secondary {
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(13, 116, 213, 0.18);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
  border-color: var(--accent-primary);

}



/* Projects */
.project-card {
    background: var(--bg-elevated);
    padding: 24px;
    margin-top: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
transition: transform 0.25s ease, box-shadow 0.25s ease;

}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.18);
  border-color: var(--accent-primary);
}


.project-link {
     display: inline-block;
    margin-top: 12px;
    color: var(--accent-primary);
    font-weight: 500;
}
/* Skills */
#skills {
  padding-top: 80px;
}

.skills-grid {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill {
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
}
.skill.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    border-color 0.3s ease;
}

.skill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
   box-shadow: 0 6px 18px rgba(56, 189, 248, 0.2);
}

/* About section: make intro paragraphs clean and aligned (justified) */
#about .about-intro {
  max-width: 980px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

#about .about-intro p {
  text-align: left;
  hyphens: auto;
  margin-bottom: 1rem;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

/* Responsive: ensure intro uses full width on narrow screens */
@media (max-width: 760px) {
  #about .about-intro {
    max-width: 100%;
    padding-right: 10px;
  }
}

/* === LOGO === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  z-index: 100;
  pointer-events: none;

  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.icon-nav {
  margin-left: auto;
  display: flex;
  gap: 32px; /* was 28px */
  pointer-events: auto;
}


.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-icon i {
  width: 26px;
  height: 26px;
}

.nav-icon span {
  position: absolute;
  bottom: -140%;
  background: var(--bg-elevated);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.nav-icon:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.nav-icon:hover span {
  opacity: 1;
  transform: translateY(0);
}



.logo-mark {
 width: 50px;
  height: 42px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--gradient-accent);
  border: 1px solid rgba(56, 189, 248, 0.35);

  cursor: pointer;
  pointer-events: auto;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
    text-decoration: none;
}
.logo-letter {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;

  color: #0b1220; /* dark, readable */

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35);
}
.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;

  /* subtle depth so it doesn’t look flat */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}


.logo-mark:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(56, 189, 248, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* === BRAND (Logo + Name) === */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  pointer-events: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


/* === Section Dividers === */  
section + section {
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 1100px;
  height: 3px;
  background: var(--gradient-accent);
  transform: translateX(-50%);
  opacity: 0.25;
}

/* === Section Reveal Animation === */
section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.reveal {
  opacity: 1;
  transform: translateY(0);
}
section:not(#hero) {
  padding-top: 90px;
  padding-bottom: 90px;
}

#about,
#skills {
  padding-top: 80px;
}

/* ===== ABOUT SECTION ===== */

.about-intro {
  margin-top: 24px;
  max-width: 920px;
}

.about-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-intro p + p {
  margin-top: 16px;
}


/* Grid holding the cards */
.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* About cards (same visual language as projects) */
.about-card {
  background: var(--bg-elevated);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.18);
  border-color: var(--accent-primary);
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Experience items */
.experience-item + .experience-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.role {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.company {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.experience-item p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* === CONTACT PAGE FORM === */

#contact {
  padding-top: 200px;
  text-align: center;
}
#contact .hero-subtext {
  margin: 0 auto;

}
#contact::after {
  top: 80px;
}


.contact-form {
  margin: 32px auto 0 auto; /* ← THIS CENTERS IT */
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}
.form-row input {
  flex: 1;
}
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  /*outline: none;*/
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.contact-form input:hover,
.contact-form textarea:hover {
  
  border-color: var(--accent-primary);
}

.contact-form textarea {
  resize: vertical;
}

.contact-links {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.back-home {
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--gradient-accent);
  color: #0e1016;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.back-home:hover {
 transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}


/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-status.show {
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  color: #22c55e; /* green */
}

.form-status.error {
  color: #ef4444; /* red */
}




