/* ============================================================
   ALBERT GEORGE — Portfolio Styles
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a25;
  --text: #e8e6e3;
  --text-muted: #8a8a9a;
  --accent: #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.35);
  --accent-2: #ff6b6b;
  --gradient: linear-gradient(135deg, #6c63ff 0%, #a855f7 50%, #ff6b6b 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 {
  transition-delay: 0.15s;
}
.reveal--delay-2 {
  transition-delay: 0.3s;
}
.reveal--delay-3 {
  transition-delay: 0.45s;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 25px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}
.nav__link:hover {
  color: var(--text);
}
.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  color: #fff;
  background: var(--gradient);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}
.nav__link--cta::after {
  display: none;
}
.nav__link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* --- Mobile toggle --- */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.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(5px, -5px);
}

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

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    black 20%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    black 20%,
    transparent 70%
  );
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.05);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__rotating-text {
  color: var(--text);
  font-weight: 600;
  display: inline;
}
.hero__cursor {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

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

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: 120px 0;
}

.section__header {
  margin-bottom: 60px;
}

.section__number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.about__lead {
  font-size: 1.25rem !important;
  color: var(--text) !important;
  font-weight: 400;
}
.about__text em {
  color: var(--accent);
  font-style: italic;
}

.about__skills-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.work__intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 50px;
}

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

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.project-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px var(--accent-glow);
}

.project-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__btn {
  padding: 12px 28px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.project-card__btn:hover {
  transform: scale(1.05);
}
.project-card__btn--coming {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: default;
}
.project-card__btn--coming:hover {
  transform: none;
}

.project-card__info {
  padding: 28px;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.project-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
  line-height: 1.65;
}
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-card__tags span {
  padding: 5px 14px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-card);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(108, 99, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process__timeline {
  position: relative;
  padding-left: 60px;
}
.process__timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(168, 85, 247, 0.3),
    transparent
  );
}

.process__step {
  position: relative;
  margin-bottom: 48px;
}
.process__step:last-child {
  margin-bottom: 0;
}

.process__step-number {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.process__step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process__step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 550px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
  padding: 140px 0;
}

.contact__content {
  max-width: 600px;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}

.contact__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* --- Contact Form --- */
.contact__form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form__required {
  color: var(--accent-2);
}

.form__optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.form__input {
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form__input::placeholder {
  color: rgba(138, 138, 154, 0.5);
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  align-self: center;
  margin-top: 8px;
  cursor: pointer;
  border: none;
}

.form__status {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 8px;
  min-height: 1.4em;
}

.form__status--success {
  color: #4ade80;
}

.form__status--error {
  color: var(--accent-2);
}

.form__privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form__privacy-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__privacy-link:hover {
  color: var(--text);
}

.contact__links {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact__social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: var(--transition);
}
.contact__social svg {
  width: 20px;
  height: 20px;
}
.contact__social:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__link:hover {
  color: var(--accent);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy__content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.privacy__content p,
.privacy__content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy__content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.privacy__content li {
  list-style: disc;
  margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav__links.open {
    right: 0;
  }
  .nav__link {
    font-size: 1.1rem;
  }

  .hero {
    padding: 100px 24px 80px;
  }
  .hero__scroll-indicator {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }
  .contact {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: 2.5rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }
}
