/* =====================================================
   EXECUTIVE PORTFOLIO SYSTEM — ETHAN SMITH
   ===================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg-primary: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-hero: linear-gradient(145deg, #d86f20, #000000);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #fff;

  --accent: #d86f20;
  --accent-soft: rgba(29, 78, 216, 0.1);

  --border-soft: rgba(15, 23, 42, 0.08);

  --shadow-xs: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}


body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 700;
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  color: #ffffff;
  z-index: 1000;
  background: #000000;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-container {
  max-width: 1240px;
  margin: auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
}

/* ---------- RESUME BUTTON ---------- */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- NAVBAR LINK RESET --- */
.nav-links a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-links a:hover {
  text-decoration: none !important;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

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

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

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1240px;
  margin: auto;
  padding: 6rem 2rem;
}

.alt {
  background: var(--bg-surface);
}

/* ---------- HERO / ABOUT ---------- */
.about {
  background: var(--bg-hero);
  color: white;
  padding: 7rem 2rem;
}

.about-grid {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #fff;
  max-width: 560px;
  font-size: 1.05rem;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 200%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  top: -80px;               /* 👈 overlap amount */
  z-index: 5;
  transform: translateX(-120px); /* 👈 move left */
  transition: transform 0.5s ease;
}

.about-img img {
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 100%
  );
}

.about-img img {
  box-shadow:
    -20px 0 40px rgba(0, 0, 0, 0.15),
    var(--shadow-md);
}


/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.skill {
  background: var(--bg-surface);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1.2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.skill i {
  font-size: 1.6rem;
  color: var(--accent);
}

.skill:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* ---------- TIMELINE ---------- */
.timeline {
  max-width: 920px;
  margin: auto;
}

.timeline .item {
  background: var(--bg-surface);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: all 0.35s ease;
}

.timeline .item:hover {
  border-left-color: var(--accent);
  transform: translateX(6px);
}

.timeline i {
  font-size: 1.7rem;
  color: var(--accent);
}

.timeline span {
  font-size: 0.85rem;
  color: #000000;
}

/* ---------- ACHIEVEMENTS ---------- */
.achievements {
  max-width: 700px;
  margin: auto;
  list-style: none;
}

.achievements li {
  background: var(--bg-surface);
  padding: 1.6rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}

.achievements i {
  font-size: 1.5rem;
  color: #f59e0b;
}

/* ---------- VIDEO ---------- */
.video-frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FOOTER ---------- */
footer {
  background: #020617;
  color: #94a3b8;
  padding: 4rem 2rem;
  text-align: center;
}

.socials a {
  font-size: 1.6rem;
  margin: 0 0.7rem;
  color: #94a3b8;
  transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
  color: white;
  transform: translateY(-5px);
}

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

  .about-text p {
    margin: auto;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 960px) {
  .about-img img {
    top: -40px;
  }
}

.footer {
    background-color: #121212;
    color: #f5f5f5;
    padding: 50px 0;
    font-size: 14px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Footer Top Section */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.footer-logo img {
    width: 120px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav ul li a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #b3001b;
}

/* Footer Middle Section */
.footer-middle {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 30px 0;
}

.contact-info, .social-icons, .contact-form {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.contact-info h3,
.social-icons h3,
.contact-form h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #d86f20;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #f5f5f5;
    text-decoration: none;
}

.contact-info a:hover {
    color: #d86f20;
    transition: 0.3s;
}

/* Social Icons */
.social-icons a {
    font-size: 20px;
    color: #f5f5f5;
    margin-right: 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d86f20;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    background: #1e1e1e;
    color: #fff;
}

.contact-form button {
    background: #d86f20;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #d87020d4;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}