/* ============================================================
   PORTFOLIO – style.css
   Shaik Sami Hassan | Cybersecurity Portfolio
   Color Palette:
     Background   : #0f172a
     Surface       : #1e293b
     Accent        : #38bdf8  (soft cyan-blue)
     Accent Hover  : #0ea5e9
     Text Primary  : #f1f5f9
     Text Secondary: #94a3b8
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0f172a;
  color: #f1f5f9;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #0ea5e9;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  color: #38bdf8;
  font-weight: 600;
}

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

.btn-primary:hover {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.btn-outline {
  background: transparent;
  color: #38bdf8;
  border-color: #38bdf8;
}

.btn-outline:hover {
  background-color: #38bdf8;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: #f1f5f9;
}

.logo-dot {
  color: #38bdf8;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #f1f5f9;
  border-radius: 2px;
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #f1f5f9;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger active state */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.1rem;
  color: #38bdf8;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #94a3b8;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-description {
  max-width: 640px;
  margin: 0 auto 40px;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS (Shared)
   ============================================================ */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: #111827;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: #f1f5f9;
}

.section-subtitle-line {
  width: 56px;
  height: 3px;
  background: #38bdf8;
  border-radius: 4px;
  margin: 0 auto 56px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: #cbd5e1;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.85;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #1e293b;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.08);
}

.about-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #38bdf8;
  font-weight: 600;
}

.about-value {
  font-size: 0.95rem;
  color: #e2e8f0;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-card {
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 14px;
  padding: 36px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.skill-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.skill-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f1f5f9;
}

.skill-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 0.925rem;
}

.skill-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
}

/* ============================================================
   EXPERIENCE – TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 30px;
  height: 30px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
}

.timeline-content {
  background: #1e293b;
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.08);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 0.925rem;
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.project-card-header {
  margin-bottom: 20px;
}

.project-icon {
  color: #38bdf8;
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.project-card-subtitle {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 500;
  margin-bottom: 16px;
}

.project-card-desc {
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  letter-spacing: 0.5px;
}

.cert-category-title:not(:first-of-type) {
  margin-top: 48px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cert-icon {
  color: #38bdf8;
  margin-bottom: 20px;
}

.cert-icon svg {
  margin: 0 auto;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.cert-issuer {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.cert-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.cert-details li {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ============================================================
   LEARNING ROADMAP
   ============================================================ */
.roadmap {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 2px;
}

.roadmap-step {
  position: relative;
  margin-bottom: 48px;
}

.roadmap-step:last-child {
  margin-bottom: 0;
}

.roadmap-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
}

.roadmap-content {
  background: #1e293b;
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.08);
}

.roadmap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 14px;
}

.roadmap-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 0.925rem;
}

.roadmap-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #1e293b;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.08);
  transition: border-color 0.3s ease;
}

.contact-item:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.contact-item svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.contact-item a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: #38bdf8;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #f1f5f9;
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #475569;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0b1120;
  padding: 32px 0;
  border-top: 1px solid rgba(56, 189, 248, 0.06);
}

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

.footer-text {
  font-size: 0.875rem;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #64748b;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .section {
    padding: 72px 0;
  }

  .section-subtitle-line {
    margin-bottom: 40px;
  }

  /* Navbar mobile */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #111827;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(56, 189, 248, 0.08);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Certifications */
  .certs-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline {
    padding-left: 36px;
  }

  .timeline-marker {
    left: -36px;
    width: 26px;
    height: 26px;
  }

  .timeline-marker::after {
    width: 8px;
    height: 8px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-content {
    padding: 22px 20px;
  }

  /* Roadmap mobile */
  .roadmap {
    padding-left: 50px;
  }

  .roadmap::before {
    left: 22px;
  }

  .roadmap-marker {
    left: -50px;
    width: 46px;
    height: 46px;
  }

  .roadmap-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .roadmap-content {
    padding: 22px 20px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-name {
    font-size: 1.9rem;
  }

  .hero-greeting {
    font-size: 0.95rem;
  }
}
