﻿/* ========================================
   CSS Variables
   ======================================== */
:root {
  --primary-color: #2463eb;
  --primary-hover: #6696ff;
  --secondary-color: #b9227d;
  --accent-color: #ffb347;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --text-dark: #1d2837;
  --text-light: #8d8d8d;
  --text-white: #fff;
  --bg-dark: linear-gradient(90deg, #030304 10%, #0f1012 48.19%, #030304 90%);
  --bg-navbar: linear-gradient(90deg, #0f0f14 10%, #0f0f14 19.17%, #0f0f14 90%);
}

/* ========================================
   Base Styles
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #475569;
  background-image: var(--bg-dark);
  background-size: 100% 100%;
  zoom: 0.9; /* 90% of normal size */
}

/* ========================================
   Utility Classes
   ======================================== */

.text-red {
  color: #e03e2d;
}

.text-orange {
  color: #e0862d;
}

.text-yellow {
  color: #f1c40f;
}

.text-green {
  color: #2dc26b;
}

.text-blue {
  color: #2463eb;
}

.text-roblox-blue {
  color: #009FFF;
}

.text-purple {
  color: #586aea;
}

.text-light-purple {
  color: #8290ff;
}

.text-light-blue {
  color: #85adff;
}

.btn-primary {
  display: inline-block;
  max-width: 100%;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 5px;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  vertical-align: top;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn.btn-primary {
  background-color: var(--primary-color);
  transition: background 0.3s ease;
}

.btn.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgb(40, 40, 40);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(2, 77, 157);
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
  position: sticky;
  top: 15px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  padding: 0 20px;
}

.navbar-container {
  width: 100%;
  max-width: 1100px;
  padding: 5px 0;
}

.navbar-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background-color: rgba(29, 29, 29, 0.8);
  background-image: var(--bg-navbar);
  backdrop-filter: blur(13px);
  border-radius: 10px;
}

.nav-logo {
  flex: 0 1 auto;
  padding: 15px;
}

.nav-logo img {
  color: #000;
  max-height: 35px;
  padding-left: 30px;
}

.nav-menu {
  padding: 0;
  color: #818181;
  flex: 0 1 auto;
}

.nav-link {
  display: inline-block;
  padding: 10px 20px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-cta {
  flex: 0 1 auto;
  display: block;
  padding: 0 20px 0 10px;
}

/* ========================================
   Hero Section
   ======================================== */
#hero {
  display: flex;
  justify-content: center;
  padding: 60px 20px 50px;
  backdrop-filter: blur(3px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 1000px;
}

.hero-title {
  font-size: 4rem;
  text-align: center;
  color: #fff;
  margin: 0;
}

.hero-title strong {
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 64px;
}

.hero-title .text-blue {
  font-weight: 700;
  font-size: 64px;
}

.hero-description {
  font-size: 17px;
  color: var(--text-light);
  text-align: center;
}

.hero-cta {
  padding: 10px;
}

/* ========================================
   Section Styles
   ======================================== */
#past-projects,
#contacts,
#skills {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
}


.section-container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-left: 20px;
}

.section-title {
  font-size: 2.2rem;
  max-width: 750px;
  margin-bottom: 10px;
  padding-left: 20px;
  color: #fff;
}

#education .section-title {
  max-width: 900px;
  padding-bottom: 30px;
}

/* ========================================
   Desktop Carousel (Projects)
   ======================================== */
.carousel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 450px;
  padding: 20px;
  text-align: center;
  color: var(--text-white);
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-layout {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
}

.project-video {
  flex-basis: 50%;
  flex-grow: 1;
}

.project-video iframe {
  width: 100%;
  max-width: 615px;
  height: 320px;
}

.project-info {
  flex-basis: 50%;
  flex-grow: 1;
}

.project-title {
  padding: 10px 10px 10px 20px;
  text-align: left;
  font-size: 24pt;
}

.project-description {
  padding: 10px 10px 10px 20px;
  text-align: left;
  color: var(--text-light);
}

/* ========================================
   Mobile & Tablet Carousels
   ======================================== */
.mobile-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swipe-hint {
  text-align: center;
  padding: 15px 0 5px 0;
  opacity: 0.7;
}

.swipe-text {
  display: inline-block;
  color: #ffffff;
  font-size: 20px;
  animation: swipeAnimation 2s ease-in-out infinite;
}

@keyframes swipeAnimation {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(50px);
    opacity: 1;
  }
}

@keyframes swipeAnimationLeft {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50px);
    opacity: 1;
  }
}

.card-carousel-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgb(40, 40, 40);
}

.card-carousel-container::-webkit-scrollbar {
  height: 7px;
  background: transparent;
}

.card-carousel-container::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.7);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgb(40, 40, 40);
}

.card-carousel-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.card-carousel-container::-webkit-scrollbar-thumb:hover {
  background: rgb(2, 77, 157);
}

.card-carousel {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  min-width: min-content;
  box-sizing: border-box;
  scroll-padding: 0 1.5rem;
}

.carousel-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: calc(100vw - 3rem);
  max-width: 400px;
  padding: 1.5rem;
  scroll-snap-align: center;
  background: linear-gradient(to bottom,rgba(22, 27, 47, 0.6) 0%,rgba(0, 0, 0, 0) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  box-sizing: border-box;
}

.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(36, 99, 235, 0.3);
}


.carousel-card iframe,
.carousel-card .project-image {
  width: 100%;
  height: 200px;
  margin: 0;
  border-radius: 0.5rem;
  border: none;
  background: #0a0e1a;
  object-fit: cover;
}

.carousel-card .project-image {
  display: block;
}

.carousel-card h5 {
  margin: 1rem 0 0.75rem 0;
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.3;
  text-align: left;
  width: 100%;
}

.carousel-card p {
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  color: var(--text-light);
  line-height: 1.5;
  text-align: left;
  width: 100%;
}

.carousel-card .btn-primary {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.carousel-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(36, 99, 235, 0.4);
}

/* ========================================
   Skills Section
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 100%;
  padding: 20px;
  gap: 15px;
}

.skill-card {
  padding: 20px 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: /*100px;*/ auto;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(36, 99, 235, 0.3);
}

#roblox-skill {
  background-image: linear-gradient(135deg, rgba(35, 46, 52, 0.9) 0%, rgba(17, 37, 55, 0.432) 100%);
}

#discord-skill {
  background-image: linear-gradient(135deg, rgba(25, 12, 41, 0.9) 0%, rgba(47, 6, 144, 0.432) 100%);
}

#godot-skill {
  background-image: linear-gradient(135deg, rgba(0, 12, 39, 0.9) 0%, rgba(17, 114, 188, 0.432) 100%);
}

#webdev-skill {
  background-image: linear-gradient(135deg, rgba(39, 23, 0, 0.9) 0%, rgba(6, 144, 107, 0.432) 100%);
}

#python-skill {
  background-image: linear-gradient(135deg, rgba(39, 33, 0, 0.9) 0%, rgba(6, 73, 144, 0.432) 100%);
}

#cpp-skill {
  background-image: linear-gradient(135deg, rgba(14, 0, 39, 0.9) 0%, rgba(3, 88, 179, 0.432) 100%);
}

.skill-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#roblox-skill .skill-logo svg {
  color: #2463eb;
}

#discord-skill .skill-logo svg {
  color: #5865F2;
}

#godot-skill .skill-logo svg {
  color: #478CBF;
}

#webdev-skill .skill-logo svg {
  color: #2dc26b;
}

.skill-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-card h5 {
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.skill-card p {
  color: rgba(206, 206, 206, 1);
  font-size: 13px;
  margin: 0;
}

/* ========================================
   Contacts Section Styling
   ======================================== */
.gjs-plg-flex-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 20px;
}

.gjs-plg-flex-column {
  flex: 1 1 300px;
  min-width: 280px;
  margin: 5px;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gjs-plg-flex-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(36, 99, 235, 0.3);
}

#whatsapp-bg {
  background-image: linear-gradient(70deg, rgba(0, 154, 100, 1) 10%, rgba(0, 47, 97, 1) 90%);
}

#discord-bg {
  background-image: linear-gradient(90deg, rgba(64, 22, 137, 1) 10%, rgba(0, 40, 84, 1) 90%);
}

#instagram-bg {
  background-image: linear-gradient(70deg, rgba(69, 2, 181, 1) 10%, rgba(119, 13, 109, 1) 36.79%, rgba(159, 58, 14, 1) 76.17%, rgba(153, 107, 0, 1) 90%);
}

.gjs-plg-flex-column h1:first-of-type {
  color: rgba(255, 255, 255, 1);
  font-size: 30px;
  padding-top: 10px;
  font-weight: 600;
  margin: 0;
}

.gjs-plg-flex-column h1:nth-of-type(2) {
  color: rgba(206, 206, 206, 1);
  font-size: 12px;
  margin: 5px 0 15px 0;
}

.gjs-plg-flex-column .hero-cta {
  padding: 0 0 8px 0;
}

.gjs-plg-flex-column .btn-primary {
  background-color: rgba(118, 118, 118, 0.4);
  font-size: 0.8rem;
  text-align: center;
}

.gjs-plg-flex-column .btn-primary:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   Footer
   ======================================== */
#footer {
  display: flex;
  justify-content: center;
  padding: 60px 20px 50px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
}

.footer-content {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  align-self: center;
}

.footer-logo a {
  display: block;
  padding: 0;
}

.footer-logo img {
  color: #000;
  max-height: 50px;
  padding-left: 0;
}

.footer-links {
  display: flex;
  flex: 0 1 auto;
  gap: 30px;
  justify-content: center;
  margin: 30px 0;
  color: #8d8d8d;
}

/* ========================================
   Media Queries
   ======================================== */
@media (max-width: 992px) {
  .carousel-card {
    min-width: 0;
  }

  .carousel-content {
    height: auto;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-title strong,
  .hero-title .text-blue {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-logo img {
    padding-left: 15px;
    max-height: 30px;
  }

  .project-layout {
    flex-direction: column;
  }

  .project-video iframe {
    max-width: 100%;
    height: 250px;
  }

  .gjs-plg-flex-row {
    padding: 10px;
  }

  .gjs-plg-flex-column {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .skills-grid {
    padding: 10px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .skill-card {
    padding: 15px 20px;
    gap: 15px;
  }

  .skill-logo {
    width: 50px;
    height: 50px;
  }

  .skill-card h5 {
    font-size: 16px;
  }

  .skill-card p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title strong,
  .hero-title .text-blue {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 1.5rem;
    padding-left: 10px;
  }

  .section-subtitle {
    padding-left: 10px;
  }

  #past-projects,
  #contacts,
  #skills {
    padding: 60px 10px;
  }

  .nav-cta {
    padding: 0 10px 0 5px;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .carousel-card {
    width: calc(100vw - 2.5rem);
  }

  .gjs-plg-flex-row {
    padding: 5px;
  }

  .gjs-plg-flex-column {
    margin: 3px;
    padding: 15px;
  }

  .gjs-plg-flex-column h1:first-of-type {
    font-size: 24px;
  }

  .skills-grid {
    padding: 5px;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 15px 18px;
    gap: 12px;
  }

  .skill-logo {
    width: 45px;
    height: 45px;
  }

  .skill-card h5 {
    font-size: 15px;
  }

  .skill-card p {
    font-size: 11px;
  }
}
