@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;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-main: #000000;
  --text-color: #ffffff;
  --card-bg: #111111;
  --navbar-bg: #000000;
  --accent: #FFFFFF;
}

[data-theme="dark"] .theme-switcher button {
  color: #000000;
}

[data-theme="dark"] .hero-text {
  color: #FFFFFF;
}

/* Light Theme */
[data-theme="light"] {
  --bg-main: #ffffff;
  --text-color: #FFFFFF;
  --card-bg: #f2f2f2;
  --navbar-bg: grey;
  --accent: #000000;
  --information-color: #000000;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styling - Everything */
body {
  font-family: Calibri, sans-serif;
  background: var(--bg-main);
  color: var(--text-color);
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
}

.tagline {
	font-size: 20px;
	margin-top: center;
}

/* 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;
  color: var(--text-color);
}

/* 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;
  color: var(--information-color);
}

.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;
}

/* 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 */
  .hero-section {
    padding: 2rem 2rem;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .logo {
    left: 2rem;
  }

  .logo img {
    width: 130px;
  }

  /* Navigation */
  .navbar {
    gap: 1rem;
  }

  .navbar a {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Skills grid */
  .skills-container {
    gap: 2.5rem;
    padding: 2rem;
  }

  /* Controls spacing */
  .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.9rem;
    line-height: 1.2;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .logo {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }

  .logo img {
    width: 95px;
  }

  /* Navigation */
  .navbar {
    flex-direction: column;
    gap: 0.8rem;
  }

  .navbar a {
    width: 90%;
    justify-content: center;
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  /* Skills grid – single column */
  .skills-container {
    grid-template-columns: 1fr;
    padding: 1.2rem;
    gap: 1.8rem;
  }

  .skill-card {
    padding: 1.4rem;
  }

  .skill-card img {
    height: 180px;
  }

  .skill-card h2 {
    font-size: 1.5rem;
  }

  /* Theme Switcher */
  .theme-switcher {
    position: static;
    justify-content: center;
    margin: 0.5rem 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;
  }

  /* Cookie Banner */
  .cookie-content {
    text-align: center;
    justify-content: center;
  }

  /* Footer Icons */
  .footer-right img {
    width: 30px;
    height: 30px;
  }
}
