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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: #3C4858;
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #3C4858;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

a {
  color: #e91e63;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #c2185b;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.transparent {
  background: transparent;
}

.navbar.solid {
  background: #363537;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar.scrolled {
  background: #363537;
  padding: 5px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.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);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #fff;
  padding: 8px 15px;
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #e91e63;
}

/* Dropdown */
.dropdown > a::after {
  content: ' \25BE';
  font-size: 0.7em;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 100;
}

.dropdown-menu a {
  color: #3C4858;
  padding: 8px 20px;
  font-size: 0.8rem;
  text-transform: none;
}

.dropdown-menu a:hover {
  color: #e91e63;
  background: #f9f9f9;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #363537;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(45deg, rgba(168,29,132,1) 0%, #ea396f 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
}

/* ===== MAIN CONTENT ===== */
.main-raised {
  background: #fff;
  margin: -60px 30px 0;
  border-radius: 6px;
  box-shadow: 0 16px 24px 2px rgba(0,0,0,0.14),
              0 6px 30px 5px rgba(0,0,0,0.12),
              0 8px 10px -5px rgba(0,0,0,0.2);
  padding: 60px 40px;
  position: relative;
  z-index: 3;
}

.page-header + .main-raised {
  margin-top: -60px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #e91e63;
  color: #fff;
  box-shadow: 0 2px 2px 0 rgba(233,30,99,0.14),
              0 3px 1px -2px rgba(233,30,99,0.2),
              0 1px 5px 0 rgba(233,30,99,0.12);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(233,30,99,0.42),
              0 4px 23px 0 rgba(0,0,0,0.12),
              0 8px 10px -5px rgba(233,30,99,0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #e91e63;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #e91e63;
  border-radius: 2px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content h3 {
  margin-top: 1.5em;
  color: #e91e63;
}

.social-icons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.social-icons a {
  display: block;
  width: 60px;
  height: 60px;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.15);
}

.social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.portfolio-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-card .card-body {
  padding: 20px;
}

.portfolio-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: #666;
}

.portfolio-card .card-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.portfolio-card .card-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* ===== PORTFOLIO SECTIONS (Main Portfolio Page) ===== */
.portfolio-section {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.portfolio-section:last-child {
  border-bottom: none;
}

.portfolio-section h3 {
  color: #e91e63;
  margin-bottom: 5px;
  text-align: center;
}

.portfolio-section h3 a {
  color: #e91e63;
}

.portfolio-section h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.portfolio-section h4 a {
  color: #3C4858;
}

.portfolio-section p {
  color: #666;
  max-width: 700px;
}

.portfolio-section .btn {
  margin-top: 10px;
}

/* ===== IMAGE SLIDER ===== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  margin-top: 20px;
  background: #000;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-track img {
  width: 100%;
  flex-shrink: 0;
  height: 400px;
  object-fit: contain;
  background: #111;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  line-height: 1;
}

.slider-btn:hover {
  background: rgba(233,30,99,0.8);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

/* ===== CERT BADGES ROW ===== */
.cert-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.cert-badges a {
  display: block;
  width: 100px;
  height: 100px;
  transition: transform 0.3s;
}

.cert-badges a:hover {
  transform: scale(1.1);
}

.cert-badges img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes flipInX {
  0% {
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotateX(-20deg);
  }
  60% {
    transform: perspective(400px) rotateX(10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotateX(-5deg);
  }
  100% {
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
  }
}

.flip-in-v {
  opacity: 0;
  animation: flipInX 1s ease-out forwards;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.video-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-item .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-item .video-info {
  padding: 15px 20px;
}

.video-item h4 {
  font-size: 0.95rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.video-item p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

/* ===== YOUTUBE GALLERY ===== */
.yt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.yt-gallery .video-item {
  transition: transform 0.3s;
}

.yt-gallery .video-item:hover {
  transform: translateY(-3px);
}

/* ===== GRAPHIC DESIGN GALLERY ===== */
.design-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.design-gallery img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.design-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== DESIGN SECTION ===== */
.design-section {
  margin-bottom: 50px;
}

.design-section h3 {
  color: #e91e63;
  margin-bottom: 10px;
}

.design-section p {
  color: #666;
  margin-bottom: 15px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-intro {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 400;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #666;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e91e63;
  background: #fff;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group .spam-check {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 5px;
}

.contact-form .btn {
  width: 100%;
}

/* ===== RESUME PAGE ===== */
.resume-social {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
}

.resume-social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s;
}

.resume-social a:hover {
  transform: scale(1.1);
}

.resume-social img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}

.resume-social span {
  font-size: 0.8rem;
  color: #666;
}

/* ===== GAMES PAGE ===== */
.game-section {
  margin-bottom: 50px;
}

.game-section h3 {
  color: #e91e63;
  margin-bottom: 10px;
}

.game-section p {
  color: #666;
  margin-bottom: 15px;
}

.game-section .game-controls {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
  margin-bottom: 10px;
}

.game-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: #363537;
  color: #999;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer .container {
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
}

.footer a {
  color: #e91e63;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}

/* ===== FLIP-IN ANIMATION (social icons) ===== */
@keyframes flipInY {
  0% {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotateY(-20deg);
  }
  60% {
    transform: perspective(400px) rotateY(10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotateY(-5deg);
  }
  100% {
    transform: perspective(400px) rotateY(0deg);
    opacity: 1;
  }
}

.flip-in {
  opacity: 0;
  animation: flipInY ease-out forwards;
}

.flip-in:nth-child(1) { animation-duration: 1s; }
.flip-in:nth-child(2) { animation-duration: 1.2s; }
.flip-in:nth-child(3) { animation-duration: 1.4s; }
.flip-in:nth-child(4) { animation-duration: 1.6s; }
.flip-in:nth-child(5) { animation-duration: 1.8s; }
.flip-in:nth-child(6) { animation-duration: 2s; }

/* ===== FADE-IN ANIMATION (profile photo) ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

/* ===== ABOUT PAGE LAYOUT ===== */
.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.about-photo {
  flex-shrink: 0;
  width: 300px;
}

.about-photo img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text h3 {
  margin-top: 1.5em;
  color: #e91e63;
}

/* ===== PORTFOLIO SECTION WITH IMAGE ===== */
.portfolio-section-grid {
  display: flex;
  gap: 25px;
  align-items: center;
}

.portfolio-section-img {
  flex-shrink: 0;
  width: 250px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolio-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-section-info {
  flex: 1;
}

.portfolio-section-info h3 {
  color: #e91e63;
  margin-bottom: 10px;
}

.portfolio-section-info p {
  color: #666;
}

.portfolio-section-info .btn {
  margin-top: 10px;
}

/* ===== HERO MOUSE PARALLAX ===== */
.hero-bg {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .main-raised {
    margin: -40px 15px 0;
    padding: 40px 25px;
  }

  h1 { font-size: 2.2rem; }
  .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #363537;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 10px 20px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #2a2a2c;
    display: none;
    padding-left: 15px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .main-raised {
    margin: -30px 10px 0;
    padding: 30px 15px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

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

  .yt-gallery {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .hero-bg {
    background-attachment: scroll;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .about-photo {
    width: 220px;
  }

  .portfolio-section-grid {
    flex-direction: column;
  }

  .portfolio-section-img {
    width: 100%;
    height: 200px;
  }

  .slider-track img {
    height: 250px;
  }

  .cert-badges a {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
  }

  .resume-social img {
    width: 60px;
    height: 60px;
  }
}
