body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Rubik", sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}




/* Hero section */
.hero {
    background: url('images/placeHolder2.jpg') no-repeat center center/cover;
    background-image: url('images/placeHolder2.jpg');
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    transition: background-image 0.5s ease-in-out; /* Smooth transition */

}


.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%; /* Adjust this to control how much of the image fades */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #222);
    pointer-events: none; /* So it doesn't interfere with other content */
}





.hero.fade {
    background-size: 110%;  /* Stretch the background slightly to make the transition smoother */
}

.hero-logo {
    width: 400px; /* Adjust the size of the logo */
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.5)); /* Apply shadow directly on the logo */
}


.hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.about-section {
    background: #222222;
    color: #f5f5f5;
    padding: 70px 20px 60px;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-inner h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.about-inner p {
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.8);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.about-card {
    background: #222;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.about-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.about-card p {
    margin: 0;
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.98rem;
}

.latest-update {
    background: #14161b;
    padding: 24px 20px;
}

.latest-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.latest-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: rgba(245, 245, 245, 0.6);
    font-weight: 600;
}

.latest-content h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: #f5f5f5;
}

.latest-content p {
    margin: 0;
    color: rgba(245, 245, 245, 0.7);
}

.latest-link {
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.latest-link:hover {
    background: #e0e0e0;
}

@media (max-width: 720px) {
    .latest-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.news-page {
    padding: 140px 6vw 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.news-hero {
    text-align: center;
    margin-bottom: 42px;
}

.news-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 10px;
}

.news-hero p {
    margin: 0 auto;
    max-width: 640px;
    color: rgba(247, 247, 247, 0.7);
    font-size: 1.1rem;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-card {
    background: #1a1c22;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(247, 247, 247, 0.6);
}

.news-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.news-card h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.news-card p {
    margin: 0;
    color: rgba(247, 247, 247, 0.7);
    line-height: 1.5;
}

@media (max-width: 720px) {
    .news-page {
        padding: 120px 6vw 60px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}





html {
    scroll-behavior: smooth;
}

/* Main content section */
.main-content {
    padding: 50px 20px;
    background-color: #f4f4f4; /* Light background color */
    text-align: center;
}

/* Container for website items */
.website-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items from the left */
    gap: 20px; /* Space between cards */
}

/* Website item section */
.website-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(50% - 10px); /* Ensures two items per row */
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 2s, transform 2s;
    box-sizing: border-box; /* Prevents layout issues */
}

.website-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.website-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.website-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.website-item h3 {
    margin: 15px 0;
    font-size: 2rem;
}

.website-item p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0056b3;
}

.btn.disabled {
    background-color: #666;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.8;
}

/* Make it responsive: 1 card per row on small screens */
@media (max-width: 768px) {
    .website-item {
        width: 100%;
    }
}




/* Dark Mode Styling */
.dark-mode {
    background: linear-gradient(135deg, #121212, #1e1e1e);
    color: #fff;
}


.dark-mode .hero {
    background: url('images/placeHolder2.jpg') no-repeat center center/cover;  /* Keeps the same image */
}


.dark-mode .main-content {
    background-color: #222;
}

.dark-mode .website-item {
    background: #333;
    color: #fff;
}

.dark-mode .btn {
    background-color: #444;
    color: #fff;
}

.dark-mode .btn:hover {
    background-color: #777;
}

 

/* Header and Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Spreads items evenly */
    align-items: center;
    padding: 10px 30px; /* Adds padding so text doesn't hug the screen */
}

/* Center the navigation */
nav {
    flex-grow: 1; /* Ensures the nav takes up enough space */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Keep the nav menu centered */
nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 10px 0;
    margin: 0;
}

nav li {
    margin: 0 20px;
    position: relative; /* Allows absolute positioning of the separator */
}

/* Add separator (|) between each item except the last one */
nav li:not(:last-child)::after {
    content: "|";  /* Separator */
    margin-left: 20px; /* Adds space before the separator */
    color: white; /* Set the color of the separator */
    font-size: 32px; /* Same font size as the links */
}

/* Link styles */
nav a {
    text-decoration: none;
    color: white;
    font-size: 30px;
}

.semi-bold-text {
    font-weight: 600;}


nav a:hover {
    text-decoration: underline;
}

 
  .left-text img {
    height: 50px;
    width: 50px;
    margin-right: 10px; /* Space between image and text */
}

.left-text {
    display: flex;
    align-items: center;
    justify-content: start; /* Ensures left content stays on the left */
}


.right-content img {
    height: 50px;
    width: 50px;
    margin-right: 100px; /* Space between image and text */
}

.right-content {
    display: flex;
    align-items: center;
    justify-content: end; /* Ensures left content stays on the left */
}






/* Mobile Responsiveness */
@media (max-width: 768px) {
    .website-item {
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
    }
}




* {
    transition: background-color 0.3s, color 0.3s;
}







footer {
    background-color: #151515;
    color: white;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left, Center, Right */
    align-items: center;
    text-align: center;
}

.left-content {
    display: flex;
    align-items: center;
    justify-content: start; /* Ensures left content stays on the left */
}

.left-content img {
    height: 50px;
    width: 50px;
    margin-right: 10px; /* Space between image and text */
}

.center-content {
    display: flex;
    justify-content: center; /* Ensures center text is truly centered */
}



footer img {
    height: 50px;
    width: 50px;
    margin-right: 10px; /* Space between image and text */
}

.center-content {
    flex-grow: 1; /* Allows it to take up remaining space */
    text-align: center; /* Ensures text stays centered */
}


footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}





#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(49, 49, 49);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    font-size: 20px;
    z-index: 10000;
}

#backToTop:hover {
    background-color: #555;
}





 

.styled-wrapper {
    position: absolute;
    top: 50%;
    right: 20px; /* adjust how far from the right you want it */
    transform: translateY(-50%);
    z-index: 10; /* so it sits above the image */
}

.styled-wrapper .button {
    display: block;
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0;
    overflow: hidden;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    border: 0;
  }
  
  .styled-wrapper .button:before {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
    border: 3px solid rgb(255, 255, 255); /* Update dynamically for light/dark mode */
    transition:
      opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
      transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
  }
  
  .styled-wrapper .button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
    border: 4px solid #ffffff;
    transform: scale(1.3);
    transition:
      opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
      transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
  }
  
  .styled-wrapper .button:hover:before,
  .styled-wrapper .button:focus:before {
    opacity: 0;
    transform: scale(0.7);
    transition:
      opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
      transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .styled-wrapper .button:hover:after,
  .styled-wrapper .button:focus:after {
    opacity: 1;
    transform: scale(1);
    transition:
      opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
      transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
  }
  
  .styled-wrapper .button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .styled-wrapper .button-elem {
    display: block;
    width: 30px;
    height: 30px;
    margin: 24px 18px 0 22px;
    transform: rotate(360deg);
    fill: #f0eeef;
  }
  
  .styled-wrapper .button:hover .button-box,
  .styled-wrapper .button:focus .button-box {
    transition: 0.4s;
    transform: translateX(-69px);
  }

  .styled-wrapper .button-elem svg {
    transform: rotate(180deg);
  }
  
  
#hero-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.flip-wrapper {
    display: inline-block;
    position: relative;
    width: 6ch; /* shrunk from 7ch */
    height: 1em;
    perspective: 1000px;
    vertical-align: baseline;
}

.flip-text {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    text-align: left;
    top: 0;
    left: 0;
}

.front {
    transform: rotateX(0deg);
    margin-top: 2px;
}

.back {
    transform: rotateX(180deg);
    margin-top: 2px;
}

.flip-wrapper.flipped .front {
    transform: rotateX(-180deg);
}

.flip-wrapper.flipped .back {
    transform: rotateX(0deg);
}
