:root {
    --body-bg: #e0e0e0db;
    --header-footer-bg: #f5f5f5;
    --card-bg: #f5f5f5;
    --text-color: #343434;
    --card-shadow: 0 2px 5px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--header-footer-bg);
}

/* Prevents transitions on load */
.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Dark mode variables */
[data-theme="dark"] {
    --body-bg: #222;
    --header-footer-bg: #343434;
    --card-bg: #343434;
    --text-color: #f0f0f0;
    --card-shadow: 0 2px 5px rgba(0,0,0,0.3);
    --card-hover-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Reset: Removes default messy spacing */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-color);
}

header {
    display: flex;
    background-color: var(--header-footer-bg);
    font-family: Arial, sans-serif;
    color: var(--text-color);
    padding: 25px 50px; 
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 85px; /* Header size */
}



.title-nav a {
    text-decoration: none;
    color: inherit;
}
.header-nav {
    display: flex;
    gap: 10px; /* Gap between buttons */
}

.nav-button {

    display: flex;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem; 
    padding: 10px 15px; 
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 800;
}

.logo-button {

    display: flex;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.5rem; 
    padding: 10px 15px; 
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 800;
}

.nav-button:hover, .logo-button:hover {
    display: flex;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Dark mode toggle button */
#darkModeToggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem; /* Size */
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; 
    height: 50px; 
}

#darkModeToggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] #darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.subheading-container {
    align-self: center;  /* Align */
    margin: 10px 0 2px 0; /* Top right bottom left */
    font-size: medium;
    transition: all 0.3s ease; /* Dark mode card transition time (FIXED) */
    padding-left : 10px;
    padding-right : 5px;

    
}

.container {
    flex: 1;
    max-width: 800px; /* Card width */
    margin: 30px 0 30px 10px; /* Top right bottom left */
    padding: 0 10px;
    align-self: left;  /* Align cards */

    
}

.paragraph-container {
   display: flex;
   flex-direction: column;
  justify-content: center;  /* horizontal */
  align-items: center;      /* vertical */
    max-width: auto; /* width */
    margin: 0 0 5px 0; /* Top right bottom left */
    padding-left: 10px;

    
    transition: all 1s ease; /* Dark mode card transition time (FIXED) */
}

.footer-button-container {
    align-self: left;  /* Align */
    margin: 10px 0 2px 0; /* Top right bottom left */
    font-size: medium;
    transition: all 0.3s ease; /* Dark mode card transition time (FIXED) */

    
}
.subheading-container-about {
    align-self: left;  /* Align */
    margin: 10px 0 2px 0; /* Top right bottom left */
    font-size: medium;
    transition: all 0.3s ease; /* Dark mode card transition time (FIXED) */
    padding-left: 10px;
    padding-right: 10px;

    
}

.about-container {
   display: flex;
   flex-direction: column;
  justify-content: left;  /* horizontal */
  align-items: left;      /* vertical */
    max-width: auto; /* width */
    padding-left: 10px;
    padding-right: 10px;

    transition: all 0.75s ease; /* Dark mode card transition time (FIXED) */
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease; /* Dark mode card transition time (FIXED) */
}

footer, header {
    background-color: var(--header-footer-bg);
    font-family: Arial, sans-serif;
    color: var(--text-color);
    text-align: right;
    padding: 10px;
    transition: all 0.25s ease; /* Dark mode footer + header transition time (FIXED) */
}



.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.card-link:active .card {
    transform: translateY(0);
}



[data-theme="dark"] .header-nav::after {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  header {
    width: 100%;
    max-width: 100%;
    height: 20px;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .header-nav {
    display: none;
  }

  .title-nav{
    font-size: 0.8rem;
    padding: 0;
    margin: 0;
    line-height: 1;
  }
  

  #toggleDarkMode {
    height: 20px;
    width: 20px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}


