@import url("reset.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============ VARIABLES ============ */
:root {
  --color-primary: #888888;
  --color-primary-dark: #666666;
  --color-accent: #888888;
  --color-text: #E0E0E0;
  --color-text-light: #B0B0B0;
  --color-background: #0a0a0a;
  --color-background-light: #121212;
  --color-background-alt: #1a1a1a;
  --color-border: #444444;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 8rem;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --glow: 0 0 30px rgba(136, 136, 136, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

/* ============ UTILITIES ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.nav__logo:hover {
  color: var(--color-primary);
}

.nav__menu {
  display: flex;
  gap: 3rem;
}

.nav__link {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #E0E0E0 0%, #B0B0B0 100%);
  color: #121212;
  box-shadow: var(--glow);
  font-weight: 600;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%);
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(224, 224, 224, 0.5);
}

.btn--secondary {
  background: rgba(30, 41, 59, 0.8);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(136, 136, 136, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ============ SECTION STYLES ============ */
section {
  padding: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 20px rgba(136, 136, 136, 0.3);
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

/* ============ HERO SECTION ============ */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__name {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  background: linear-gradient(135deg, #FFFFFF 0%, #CCCCCC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.4));
}

.hero__subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-light);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUpCentered 0.6s ease-out 0.8s forwards, scrollPulse 2.5s ease-in-out 1.4s infinite;
  z-index: 3;
  cursor: pointer;
}

.scroll-indicator:hover {
  color: #FFFFFF;
  transform: translate(-50%, -5px);
  animation-play-state: paused;
}

.scroll-indicator__text {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: textFade 2.5s ease-in-out infinite;
}

.scroll-indicator__arrow {
  width: 32px;
  height: 32px;
  animation: arrowBounce 2.5s ease-in-out infinite, arrowGlow 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes arrowGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

@keyframes scrollPulse {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 10px) scale(1.05);
    opacity: 0.8;
  }
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-4px);
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ============ ABOUT SECTION ============ */
.about {
  background: var(--color-background);
  padding: var(--spacing-xl) 0 var(--spacing-2xl) 0;
}

.about__wrapper {
  display: flex;
  gap: var(--spacing-xxl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about__content {
  flex: 1;
  text-align: left;
  margin-left: -30px;
}

.about__image-wrapper {
  flex: 0 0 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -6rem;
  margin-left: 100px;
}

.about__profile-image {
  width: 450px;
  height: auto;
  object-fit: cover;
  border-radius:12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about__bio {
  margin-bottom: var(--spacing-xl);
}

.about__bio p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.about__bio p:last-child {
  margin-bottom: 0;
}

.about__bio strong {
  font-weight: 700;
  color: var(--color-text);
  font-family: "Inter", sans-serif;
}

.about__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: var(--spacing-2xl);
}

.about__skills {
  position: relative;
  z-index: 1;
  margin-top: var(--spacing-2xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about__skills h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.skill-item {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
  border: 1px solid rgba(40, 40, 40, 0.8);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.skill-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(35, 35, 35, 0.9) 100%);
}

.skill-category {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-item p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ============ WORK SECTION ============ */
.work {
  background: var(--color-background);
  padding: var(--spacing-2xl) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
  border: 1px solid rgba(40, 40, 40, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(35, 35, 35, 0.8) 100%);
}

.project-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
}

.project-card__description {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-card__tags span {
  font-size: 0.75rem;
  color: var(--color-primary);
  background: rgba(136, 136, 136, 0.15);
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid rgba(136, 136, 136, 0.3);
}

/* ============ EXPERIENCE SECTION ============ */
.experience {
  background: var(--color-background);
  padding: var(--spacing-2xl) 0;
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.experience-card {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
  border: 1px solid rgba(40, 40, 40, 0.8);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transition: var(--transition);
  box-shadow: var(--glow);
}

.experience-card:hover::before {
  height: 100%;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(35, 35, 35, 0.8) 100%);
}

.experience-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.experience-card__title-group {
  flex: 1;
}

.experience-card__role {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.experience-card__company {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

.experience-card__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  background: rgba(136, 136, 136, 0.15);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  border: 1px solid rgba(136, 136, 136, 0.3);
}

.experience-card__location {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.experience-card__description {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* ============ CONTACT SECTION ============ */
.contact {
  background: var(--color-background);
    text-align: center;
  padding: var(--spacing-2xl) 0;
}

.contact__content {
  max-width: 700px;
  margin: 0 auto;
}

.contact__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.contact__description {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.contact__methods {
  margin-bottom: var(--spacing-lg);
  display: flex;
    flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.contact__cta {
  font-size: 1.125rem;
  padding: 1rem 3rem;
}

.contact__social {
    display: flex;
    gap: 1.5rem;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-text-light);
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  color: var(--color-background);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--glow);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* ============ FOOTER ============ */
.footer {
  padding: var(--spacing-lg) 0;
    text-align: center;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .about__wrapper {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .about__content {
    text-align: center;
    margin-left: 0;
  }

  .about__actions {
    justify-content: center;
  }

  .about__image-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  .about__profile-image {
    width: 100%;
    max-width: 300px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .project--reverse {
    direction: ltr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav__container {
    padding: 1.25rem 1.5rem;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-background);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    gap: 2rem;
    border-left: 1px solid var(--color-border);
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero__name {
    font-size: 3rem;
  }

  .hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about__bio p {
    font-size: 1rem;
  }

  .about__profile-image {
    max-width: 280px;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .skills-grid {
    gap: 1rem;
  }

  .skill-item {
    padding: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .experience-card {
    padding: 1.25rem;
  }

  .experience-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-card__date {
    align-self: flex-start;
    margin-top: 0.5rem;
  }

  .experience-card__role {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav__menu {
    max-width: 100%;
  }

  .hero__name {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .scroll-indicator__text {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .contact__title {
    font-size: 1.75rem;
  }

  .about__profile-image {
    max-width: 240px;
  }

  .about__bio p {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .project-card__title {
    font-size: 1.1rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpCentered {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling offset for fixed nav */
section {
  scroll-margin-top: 80px;
}
