/* ============================================================
   style.css — Dranoj James A. Sorongon Portfolio
   Location: /portfolio/css/style.css
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #16161f;
  --border:    #ffffff12;
  --accent:    #5b7fff;
  --accent2:   #7c5cfc;
  --text:      #e8e8f0;
  --text-mute: #7a7a96;
  --card:      #13131c;
  --radius:    12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ---------- Layout Helpers ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 3rem;
}

/* ---------- Grain Overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

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

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-mute);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--accent); }

/* ============================================================
   HERO / HOME
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Background glow blobs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91,127,255,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* Text side */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(91,127,255,0.12);
  border: 1px solid rgba(91,127,255,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-mute);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 30px rgba(91,127,255,0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91,127,255,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item { }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-mute);
  font-weight: 400;
}

/* Image side */
.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: calc(var(--radius) * 2);
  z-index: 0;
  opacity: 0.25;
  filter: blur(24px);
}

.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* Placeholder if no image */
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg3);
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-mute);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.hero-img-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(91,127,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.about-img-wrap {
  position: sticky;
  top: 6rem;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 0.85rem;
}

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
  color: var(--text-mute);
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.info-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.info-label {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   SKILLS PAGE
   ============================================================ */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color var(--transition), transform var(--transition);
}

.skill-category-card:hover {
  border-color: rgba(91,127,255,0.3);
  transform: translateY(-4px);
}

.skill-cat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-cat-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(91,127,255,0.1);
  border: 1px solid rgba(91,127,255,0.2);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--transition);
}

.skill-tag:hover {
  background: rgba(91,127,255,0.2);
}

.skill-tag.learning {
  background: rgba(250,204,21,0.08);
  border-color: rgba(250,204,21,0.2);
  color: #facc15;
}

/* ============================================================
   EXPERIENCE PAGE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91,127,255,0.2);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.timeline-role {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-mute);
  line-height: 1.6;
}

.timeline-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(91,127,255,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 0.8rem;
  flex-direction: column;
  gap: 0.5rem;
}

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-mute);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition);
}

.day-card.available { border-color: rgba(74,222,128,0.3); }
.day-card.unavailable { opacity: 0.5; }

.day-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.day-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}

.day-card.available .day-status {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
}

.day-card.unavailable .day-status {
  background: rgba(255,255,255,0.05);
  color: var(--text-mute);
}

.day-hours {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 0.5rem;
}

.timezone-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.tz-item { }
.tz-label {
  font-size: 0.75rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.tz-value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}

.contact-info { }

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-mute);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.contact-item:hover { border-color: rgba(91,127,255,0.3); }

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(91,127,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-item-value {
  font-size: 0.9rem;
  font-weight: 500;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-mute); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,127,255,0.12);
}

.form-group textarea { min-height: 140px; }

.form-status {
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  color: #4ade80;
}

.form-status.error {
  display: block;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  transition: opacity var(--transition);
}

footer a:hover { opacity: 0.75; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-up:nth-child(2)  { transition-delay: 0.08s; }
.fade-up:nth-child(3)  { transition-delay: 0.16s; }
.fade-up:nth-child(4)  { transition-delay: 0.24s; }
.fade-up:nth-child(5)  { transition-delay: 0.32s; }
.fade-up:nth-child(6)  { transition-delay: 0.40s; }

/* ============================================================
   PAGE HEADER (reusable for inner pages)
   ============================================================ */
.page-hero {
  padding: 8rem 0 4rem;
  position: relative;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero-sub {
  color: var(--text-mute);
  font-size: 1rem;
  max-width: 560px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid       { grid-template-columns: 1fr; }
  .hero-image-wrap { max-width: 320px; margin: 0 auto; order: -1; }
  .hero-title      { text-align: center; }
  .hero-subtitle   { text-align: center; margin: 0 auto 2rem; }
  .hero-cta        { justify-content: center; }
  .hero-stats      { justify-content: center; }
  .about-grid      { grid-template-columns: 1fr; }
  .about-img-wrap  { position: static; max-width: 300px; margin: 0 auto; }
  .contact-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links     { display: none; }
  .hamburger     { display: flex; }
  .section       { padding: 4rem 0; }
  .about-info-grid { grid-template-columns: 1fr; }
  .timezone-info { flex-direction: column; gap: 1rem; }
}
