/* 
   Modern Cinematic Developer Portfolio Styles
   Theme: Dark Cinematic, Orange Accents, Blue Glow
*/

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

/* --- Design System / Variables --- */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0d0d0d;
  --bg-tertiary: #161616;
  
  --accent-primary: #FF8A3D;      /* Warm Orange */
  --accent-secondary: #5DA9FF;    /* Monitor Blue */
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  
  --glass-bg: rgba(13, 13, 13, 0.6);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-width: 1200px;
  --nav-height: 80px;
  --border-radius: 12px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --- UI Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #FFB88C 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #A8D1FF 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.glow-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(93, 169, 255, 0.05);
}

/* --- Floating Navigation Bar --- */
.header-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 900px;
  height: 60px;
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
}

.nav-logo span {
  color: var(--accent-primary);
  margin-left: 2px;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 0.5rem 0.8rem;
  border-radius: 15px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- Hero Section & Video Layer --- */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #020202;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Three.js canvas layer overlay */
#three-canvas-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Split Columns Container */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100vh;
}

.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-left: max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem));
  padding-right: 4rem;
  width: 100%;
  box-sizing: border-box;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.8rem;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: #81c784;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #4caf50;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #4caf50;
  animation: pulse-green 1.5s infinite alternate;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title .first-name {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: var(--text-primary);
}

.hero-title .last-name {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-secondary);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-intro {
  max-width: 580px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-tech-pills span {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Right Column Video Frame */
.hero-video-right {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100vh;
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-left: 1px solid var(--glass-border);
  overflow: hidden;
}

/* Ambient blurred background layer inside frame */
.bg-video-blur {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(20px) brightness(0.35);
  opacity: 0.85;
  z-index: 0;
  transform: translateZ(0);
}

/* Crispy foreground video inside frame */
.fg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Glassmorphic Media Control Panel overlay */
.hero-control-panel {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  background: rgba(13, 13, 13, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Mute Hint */
.tap-sound-hint {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(255, 138, 61, 0.15);
  border: 1px solid rgba(255, 138, 61, 0.3);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.5s ease;
  animation: pulse-orange 2s infinite alternate;
}

.tap-sound-hint svg {
  animation: wave-motion 1.2s infinite;
}

@keyframes wave-motion {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.4); }
  100% { box-shadow: 0 0 0 10px rgba(255, 138, 61, 0); }
}

/* Scroll indicator button */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--text-primary);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.5s infinite;
}

@keyframes scroll-wheel-anim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* --- Section Layouts --- */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.section-header {
  margin-bottom: 4rem;
  text-align: left;
}

.section-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-heading);
  font-weight: 800;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
  margin-top: 1rem;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 3rem;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
}

.profile-name {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.profile-title {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.profile-details {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.profile-item {
  display: flex;
  justify-content: space-between;
}

.profile-label {
  color: var(--text-secondary);
}

.profile-value {
  color: var(--text-primary);
  font-weight: 500;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  padding: 2.5rem;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--text-primary);
}

.grid-cards-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sub-card {
  padding: 1.8rem;
}

.sub-card h3 {
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.sub-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.skill-card:nth-child(even) .skill-icon-wrapper {
  color: var(--accent-secondary);
}

.skill-category-title {
  font-size: 1.15rem;
  font-family: var(--font-heading);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.skill-item {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.skill-card:hover .skill-item {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.skill-item:hover {
  background: rgba(255, 138, 61, 0.08);
  border-color: rgba(255, 138, 61, 0.3);
  color: #fff !important;
}

.skill-card:nth-child(even) .skill-item:hover {
  background: rgba(93, 169, 255, 0.08);
  border-color: rgba(93, 169, 255, 0.3);
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.8), transparent);
  z-index: 1;
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-grow: 1;
}

.project-title {
  font-size: 1.4rem;
  font-family: var(--font-heading);
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.project-tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(93, 169, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.btn-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.btn-link.primary {
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
}

.btn-link.primary:hover {
  background: transparent;
  color: var(--accent-primary);
  box-shadow: 0 5px 15px rgba(255, 138, 61, 0.2);
}

.btn-link.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-link.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Experience & Education Timeline --- */
.timeline-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Timeline central circuit line */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 4rem;
}

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

/* Timeline nodes */
.timeline-dot {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
  background: #fff;
}

.timeline-card {
  padding: 2.2rem;
}

.timeline-date {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--accent-secondary);
}

.timeline-role {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.timeline-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.2rem;
}

.timeline-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.timeline-item:nth-child(even) .timeline-details li::before {
  color: var(--accent-secondary);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.info-text p {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-form-wrapper {
  position: relative;
}

.contact-form-card {
  padding: 3rem;
}

/* Styled Inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

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

.form-label {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #fff;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.15);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-input.is-invalid {
  border-color: #ff5252 !important;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.1) !important;
}

.error-message {
  font-size: 0.75rem;
  color: #ff5252;
  margin-top: 0.2rem;
  display: none;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, var(--accent-primary), #FF6D0A);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition-fast);
  box-shadow: 0 5px 15px rgba(255, 138, 61, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 61, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner */
.submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: none;
}

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

/* Alert response */
.form-alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  display: none;
}

.form-alert.success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.form-alert.error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #e57373;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  text-align: center;
  z-index: 2;
  position: relative;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-logo span {
  color: var(--accent-primary);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link:hover {
  color: #fff;
  border-color: var(--accent-primary);
  background: rgba(255, 138, 61, 0.08);
  transform: translateY(-2px);
}

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    height: auto;
    min-height: 100vh;
    padding: 6rem 0 4rem 0;
    display: flex;
    align-items: center;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    height: auto;
  }
  
  .hero-content-left {
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-title .first-name, .hero-title .last-name {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-intro {
    text-align: center;
  }
  
  .hero-tech-pills, .hero-actions {
    justify-content: center;
  }
  
  .hero-video-right {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
  }
  
  .video-frame-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .header-nav {
    width: calc(100% - 2rem);
  }
  
  .nav-links {
    display: none; /* JS will handle menu display */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .grid-cards-sub {
    grid-template-columns: 1fr;
  }
  
  .scroll-indicator {
    bottom: 1.5rem;
  }
}
