@charset "utf-8";

/* Theme Colour Variables*/

/* Blue Theme (Default) */
[data-theme="blue"] {
  --bg-main: linear-gradient(180deg, #00aaff, #005f99);
  --text-color: #ffffff;
  --card-bg: #000000;
  --navbar-bg: #000000;
  --accent: #4E95D9;
}

[data-theme="blue"] button,
[data-theme="blue"] .btn {
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  border: none;
  border-radius: 14px;
  color: white;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-main: #000000;
  --text-color: #FFFFFF;
  --card-bg: #111111;
  --navbar-bg: #000000;
  --accent: #9B5CFF;
}

[data-theme="dark"] button,
[data-theme="dark"] .btn {
  background: linear-gradient(135deg, #9B5CFF, #C774FF);
  border: none;
  border-radius: 14px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

/* Light Theme (Frutiger Aero) */
[data-theme="light"] {
  --bg-main: #E6F7FF;
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text-color: #082B39;
  --card-bg: rgba(255, 255, 255, 0.68);
  --navbar-bg: rgba(210, 240, 255, 0.55);
  --accent: #1BC4FF;

  --shadow-soft: 0px 8px 20px rgba(0, 180, 255, 0.20);
  --shadow-strong: 0px 12px 30px rgba(0, 160, 255, 0.35);

  --glass-blur: blur(18px);

  --tagline-color: #fff;
  --clock-color: #1BC4FF;
}

body[data-theme="light"] {
  background: url('assets/images/Bliss.jpg'),
              linear-gradient(135deg, #CFF3FF, #E8FBFF);
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: lighten;
  color: var(--text-color);
  transition: all 0.3s ease;
}

[data-theme="light"] .navbar,
[data-theme="light"] .hero-section {
  background: var(--navbar-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  color: var(--text-color);
}

[data-theme="light"] .content-container .content-box,
[data-theme="light"] .card,
[data-theme="light"] .section-box {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-strong);
  transition: 0.25s ease;
}

[data-theme="light"] .content-box:hover,
[data-theme="light"] .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong), 0px 0px 20px rgba(0, 225, 255, 0.55);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  -webkit-background-clip: text;
  color: transparent;
}

[data-theme="light"] .navbar a,
[data-theme="light"] button,
[data-theme="light"] .btn {
  background: linear-gradient(135deg, #00C6FF, #1BC4FF);
  border: none;
  border-radius: 14px;
  color: white;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .navbar a:hover,
[data-theme="light"] button:hover {
  box-shadow: var(--shadow-strong);
}

[data-theme="light"] .footer {
  background: rgba(0, 40, 60, 0.35);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: none;
  color: white;
}

[data-theme="light"] .tagline {
  color: var(--tagline-color);
}

[data-theme="light"] #clock {
  color: var(--clock-color);
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}

#bgMotionOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styling - Everything */
body {
  font-family: Calibri, sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 2.2rem 5rem;
  background: black;
  color: white;
  border-bottom: 2px solid #fff;
  text-align: center;
}

.logo {
  position: absolute;
  left: 5rem;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
flex-shrink: 0;
}

.logo img {
  width: 200px;
  border-radius: 50%;
}

.hero-text {
  flex: 1;
  text-align: center;
}

.hero-text h1 {
  font-size: 60px;
  text-align: center;
}

/* Quote */
.tagline {
  font-size: 1.3rem;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--navbar-bg);
  padding: 0.7rem 0;
  gap: 1.5rem;
  border-bottom: 2px solid #fff;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border-radius: 7px;
  background: #4E95D9;
  transition: all 0.2s ease;
  font-weight: 500;
	border: 2px solid #FFFFFF;
	display: flex;
    align-items: center;
    gap: 8px;
}

.navbar a:hover,
.navbar a.active {
  background: #4ED977;
  transform: scale(1.05);
}

.nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
	position: relative;
}

/* Skills Grid */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3.5rem;
  padding: 3rem;
}

.skill-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
}

.skill-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.skill-card h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #FFFFFF;
  padding-bottom: 0.5rem;
}

.slide.setup-img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.slideshow-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.controller-img {
  width: 150px !important;
	height: 150px !important;
	border-radius: 10px !important;
}

.desktop-img {
  width: 150px !important;
	height: 150px !important;
	border-radius: 10px !important;
}

.special-logo {
    width: 300px !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
    border: 1px solid #FFF;
	border-radius: 10px !important;
}

.video-wrapper {
  border-radius: 1px;
  border: none;
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 2px solid #fff;
  padding: 30px 20px;
  color: white;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 16px;
}

.footer-right {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-right img {
  width: 35px;
  height: 35px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.footer-right img:hover {
  transform: scale(1.3);
}

/* JavaScript - Font Resizer */
.font-resizer {
  position: fixed;
  top: 5px;
  right: 10px;
  z-index: 9999;
}

.font-resizer button {
  padding: 5px 10px;
  margin: 8px;
  font-size: 18px;
  cursor: pointer;
  color: white;
  background-color: #138DFF;
  border: 1px solid white;
  width: 50px;
  border-radius: 6px;
	  transform: scale(1.1);
	transition: 0.2s;
}

/* Hover Effects */
#DecreaseFont:hover {
  background: #FF0000;
  transform: scale(1.20);
}
#DefaultFont:hover {
  background: #FFC107;
  transform: scale(1.20);
}
#IncreaseFont:hover {
  background: #00C853;
  transform: scale(1.20);
}

/* JavaScript - Live Clock */
#clock {
  font-size: 40px;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #fff;
}

/* JavaScript - Background Colour Change */
.theme-switcher {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  display: flex;
  gap: 10px;
}

.theme-switcher button {
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.2s;
}

.theme-switcher button:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* JavaScript - Cursor Effect */
#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* JavaScript - Cookies Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg, #1e1e1e);
    border-top: 1px solid var(--border-color, #333);
    padding: 15px;
    display: none;
    z-index: 99999;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--text-color);
    font-size: 14px;
}

#accept-cookies {
    padding: 8px 18px;
    border: none;
    background: var(--accent, #2c7bff);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#accept-cookies:hover {
    background: var(--accent-hover, #1a5ed9);
}

/* Animation */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Responsiveness */

/* Tablets */
@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .logo img {
    width: 120px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-section {
    padding: 1.2rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .logo {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }

  .navbar {
    gap: 1rem;
  }

  .navbar a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .content-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  #clock {
    font-size: 28px;
  }
}

/* JavaScript - Image Slideshow */
.slideshow {
  position: relative;
  width: 100%;
	height: auto;
  max-width: 700px;
  margin: 0 auto 20px auto;
	object-fit: contain !important;
	overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 11px;
  cursor: pointer;
  font-size: 18px;
	object-fit: contain !important;
}

.prev { left: 0; }
.next { right: 0; }

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.popup img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
  border: 2px solid white;
}

/* JavaScript - Image Enlarger */
#bgMotionOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  z-index: 800;
  transition: opacity 0.45s ease;

}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
  border: 2px solid white;
}

#closePopup {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 50px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

/* Responsiveness */

/* Tablets */
@media (max-width: 900px) {

  /* Hero */
  .hero-section {
    padding: 2rem 2rem;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .logo {
    left: 2rem;
  }

  .logo img {
    width: 130px;
  }

  /* Navbar */
  .navbar {
    gap: 1rem;
  }

  .navbar a {
    padding: 0.6rem 1.3rem;
    font-size: 0.95rem;
  }

  /* Cards & sections */
  .skills-container {
    gap: 2.5rem;
    padding: 2rem;
  }

  .skill-card {
    padding: 1.6rem;
  }

  /* Slideshow */
  .slideshow {
    max-width: 90%;
  }

  /* Controls */
  .font-resizer button,
  .theme-switcher button {
    min-width: 44px;
  }
}

/* Mobile */
@media (max-width: 600px) {

  /* Hero */
  .hero-section {
    padding: 1.3rem;
  }

  .hero-text h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .logo {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }

  .logo img {
    width: 95px;
  }

  /* Navbar */
  .navbar {
    flex-direction: column;
    gap: 0.8rem;
  }

  .navbar a {
    width: 90%;
    justify-content: center;
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  /* Main content */
  .skills-container {
    grid-template-columns: 1fr;
    padding: 1.2rem;
    gap: 1.8rem;
  }

  .skill-card {
    padding: 1.4rem;
    border-radius: 16px;
  }

  .skill-card h2 {
    font-size: 1.5rem;
  }

  /* Images scale cleanly */
  .controller-img,
  .desktop-img {
    width: 120px !important;
    height: 120px !important;
  }

  .special-logo {
    width: 220px !important;
  }

  /* Slideshow */
  .slideshow {
    max-width: 95%;
  }

  .prev,
  .next {
    padding: 9px;
    font-size: 16px;
  }

  /* Theme buttons */
  .theme-switcher {
    position: static;
    justify-content: center;
    margin: 0.6rem auto;
  }

  /* Font resizer */
  .font-resizer {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .font-resizer button,
  .theme-switcher button {
    font-size: 16px;
    padding: 8px 12px;
    min-width: 48px;
  }

  /* Clock */
  #clock {
    font-size: 26px;
  }

  /* Popup image */
  .popup img {
    max-width: 92%;
    max-height: 75%;
  }

  #closePopup {
    font-size: 38px;
    top: 15px;
    right: 20px;
  }

  /* Footer */
  .footer-right img {
    width: 30px;
    height: 30px;
  }
}
