
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", serif;
    overflow-y: hidden;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    * {
        font-family: "Roboto", sans-serif;
    }
}

@media (max-width: 1024px) {
    * {
        font-family: "Roboto", sans-serif;
    }
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 0.5vw;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: black;
    border: 0.125vw solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.625vw;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
    cursor: pointer;
}

/* header */
header,
header .navbar,
header .navbar ul,
header .navbar ul li {
    overflow: visible !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    width: 100vw;
    height: 10vh;
    box-shadow: 0 0.3vw 0.6vw rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-in-out;
}

.hidden {
    transform: translateY(-100%);
}

nav {
    height: 100%;
}

header .navbar .nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4vw;
    list-style-type: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

header .navbar .nav-menu li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

header .navbar .nav-menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1vw;
}

header .navbar .nav-menu li a:hover {
    color: darkred;
}

/* Dropdown Styles */
header .dropdown {
    position: relative;
    overflow: visible;
}

header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 0 0 0.3vw 0.3vw;
    display: none;
    width: 10vw;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

header .dropdown-menu li {
    width: 100%;
    list-style: none;
    padding: 0.5vw;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header .dropdown-menu li a {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: black;
    font-size: 1vw;
    display: block;
    padding: 1vh 0;
    transition: color 0.3s ease-in-out;
}

header .dropdown-menu li a:hover {
    color: darkred;
}

header .dropdown a {
    display: flex;
    align-items: center;
}

header .dropdown a div {
    margin-left: 0.5vw;
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    header .dropdown:hover .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        height: auto !important;
    }

    header .dropdown:hover a div {
        transform: rotate(180deg);
    }
}

.aboutToggle {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    height: auto !important;
}

.rotateArrow {
    transform: rotate(180deg);
}

/* Logos */
header .acmLogo {
    height: 7vh;
    width: 7vh;
    margin-left: 3vw;
    cursor: pointer;
}

header .tiuLogo {
    height: 7vh;
    width: 7vh;
    margin-left: 1vw;
    cursor: pointer;
}

header .technoLogo {
    height: 5vh;
    width: 35vh;
    margin-right: auto;
    margin-left: 1vw;
    cursor: pointer;
}

/* Register Button */
header nav .reg {
    font-size: 1.1vw;
    font-weight: 700 !important;
    color: #fff !important;
    background-color: rgb(255, 35, 35) !important;
    padding: 1.55vh 2.25vw;
    margin-right: 4vw;
    border-radius: 0.25vw;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out,
        box-shadow 0.5s ease-in-out;
}

header nav .reg:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

header nav .active {
    color: rgb(255, 35, 35) !important;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 1vw;
}

.hamburger span {
    height: 2px;
    width: 20px;
    background: #000;
    margin: 2px 5px;
    transition: all 0.3s;
}

/* Tablet styles: Devices between 769px and 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    header {
        height: 10vh;
        padding: 0 4vw;
    }

    header .acmLogo,
    header .tiuLogo {
        height: 6vh;
        width: 6vh;
        margin-left: 2vw;
    }

    header .technoLogo {
        height: 4.5vh;
        width: auto;
    }

    header .navbar .nav-menu {
        gap: 2vw;
    }

    header .navbar .nav-menu li a {
        font-size: 1.5vw;
    }

    header nav .reg {
        font-size: 1.5vw;
        padding: 1vh 2vw;
    }

    header .dropdown-menu {
        width: 20vw;
    }
}

/* Mobile styles: Devices up to 1024px */
@media screen and (max-width: 1024px) {
    header {
        flex-direction: row;
        height: auto;
        padding: 1vh 2vw;
    }

    /* Show hamburger and hide nav-menu initially */
    .hamburger {
        display: flex;
    }

    header .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 6.5vh;
        /* Adjust based on header height */
        right: 0;
        flex-direction: column;
        gap: 2vw;
        width: 40%;
        height: auto;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
        z-index: 999;
    }

    .navbar .nav-menu.active {
        display: flex;
    }

    /* Adjust logos for mobile */
    header .acmLogo,
    header .tiuLogo {
        height: 4vh;
        width: 4vh;
        margin-left: 2vw;
    }

    header .acmLogo {
        margin-right: -5vw;
    }

    header .tiuLogo {
        margin-left: auto;
    }

    header .technoLogo {
        height: 2.5vh;
        width: auto;
        margin: 1vh auto;
        margin-left: 2vw;
        display: block;
    }

    /* Center nav items and adjust spacing */
    header .navbar .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1vh 0;
    }

    header .navbar .nav-menu li a {
        font-size: 3vw;
        font-weight: 400;
    }

    /* Adjust register button for mobile */
    header nav .reg {
        font-size: 3vw;
        padding: 0.8vh 6vw;
        border-radius: 0.5vw;
        margin: 1vh auto;
    }

    /* Dropdown adjustments */
    header .dropdown-menu {
        width: 40vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40, #3c3c55);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #d6d6d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero button {
    margin-top: 2rem;
    padding: 12px 28px;
    background: linear-gradient(to right, #0072ff, #00c6ff);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 114, 255, 0.4);
}


/* Video Section (fixed width & height) */
.video {
  position: relative;
  width: 80%;          /* control width */
  height: 700px;       /* fixed height */
  margin: 50px auto;   /* center on page */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Video fully fits the box */
.video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ensures full fit without distortion */
  z-index: 0;
  filter: brightness(65%);
}

/* Overlay text */
.video-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.video-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.video-overlay p {
  font-size: 1.2rem;
  color: #e0e0e0;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* More space between images */
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Heading */
.heading {
    text-align: center;
    margin: 50px 0;
}

.heading p {
    font-size: 2.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.heading p::after {
    content: "";
    display: block;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, #0077ff, #00c3ff, #0077ff);
    margin: 10px auto 0;
    border-radius: 3px;
    animation: gradient-move 3s linear infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Image Cards */
.gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

/* Hover Zoom + Overlay Effect */
.gallery img:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    filter: brightness(0.85);
}

/* Overlay Caption */
.gallery img::after {
    content: "View Photo";
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 119, 255, 0.85);
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery img:hover::after {
    opacity: 1;
}


/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.lightbox span {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 20px;
}


.footer {
    background-color: #0d1128;
    color: #fff;
    padding: 15vh 10vw;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    width: max-content;
    margin-bottom: 2vh;
}

.footer-column:nth-last-of-type(1) {
    align-items: flex-end;
}

.footer-column:nth-last-of-type(1)>div {
    width: 100%;
    display: flex;
    justify-content: center !important;
}

.footer-column .title {
    font-size: 1.5vw;
    font-weight: 500;
    margin-bottom: 1.5vh;
    margin-top: 5vh;
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-column a {
    text-decoration: none;
    color: #fff;
    margin-bottom: 1vh;
    font-size: 1vw;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-column:nth-of-type(1) .title {
    font-size: 2vw;
}

.footer-column:nth-of-type(1) a {
    font-size: 1.5vw;
}

.footer-column .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 0;
    color: #fff;
}

.footer-column .social-icons img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: invert(1);
}

.footer-column .social-icons img:hover {
    transform: scale(1.1);
}

.footer-column .title .svg {
    width: 100%;
    height: auto;
    margin-right: 0.5vw;
    margin-bottom: 1vh;
}

.footer-column .title .logo,
.footer-column .title .acmlogo {
    width: 5vw;
    margin-right: 0.5vw;
}

.footer-column .title .name {
    filter: invert(1);
}

.footer-column .email,
.footer-column .address {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    color: #fff;
    margin: 0.5vh 0.25vw;
}

.footer-column .email i,
.footer-column .address i {
    font-size: 1.5vw;
    margin-right: 0.5vw;
    margin-top: 0.5vh;
    color: #fff;
}

#map {
    width: 90%;
    height: 40vh;
    margin-top: 4vh;
}

#map * {
    overflow: visible !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .footer {
        padding: 12vh 8vw;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        align-items: center;
    }

    .footer-column:nth-last-of-type(1) {
        align-items: center;
    }

    .footer-column .title {
        font-size: 2.5vw;
        margin-top: 4vh;
        justify-content: center;
    }

    .footer-column a {
        font-size: 1.75vw;
    }

    .footer-column:nth-of-type(1) .title {
        font-size: 3vw;
    }

    .footer-column:nth-of-type(1) a {
        font-size: 2vw;
    }

    .footer-column .social-icons img {
        width: 32px;
        height: 32px;
    }

    .footer-column .title .logo,
    .footer-column .title .acmlogo {
        width: 7vw;
    }

    .footer-column .email i,
    .footer-column .address i {
        font-size: 2vw;
    }

    #map {
        width: 95%;
        height: 35vh;
        margin-top: 3vh;
    }
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .footer {
        padding: 8vh 4vw;
        flex-direction: column-reverse;
        align-items: center;
        text-align: start;
    }

    .footer-column {
        width: 90%;
        align-items: center;
    }

    .footer-column .title {
        font-size: 5vw;
        margin-top: 3vh;
        justify-content: center;
    }

    .footer-column a {
        font-size: 3vw;
        font-weight: 300;
    }

    .footer-column:nth-of-type(1) .title {
        font-size: 5vw;
    }

    .footer-column:nth-of-type(1) a {
        font-size: 4vw;
    }

    .footer-column .social-icons {
        justify-content: center;
    }

    .footer-column .social-icons img {
        width: 24px;
        height: 24px;
    }

    .footer-column .title .logo,
    .footer-column .title .acmlogo {
        width: 15vw;
    }

    .footer-column .email i,
    .footer-column .address i {
        font-size: 4vw;
    }

    #map {
        width: 80%;
        height: 25vh;
        margin-top: 3vh;
    }
}

.openInPC {
    display: none;
}

@media (max-width: 1024px) {
    .openInPC {
        display: block;
        color: #000;
        font-size: 1.5vw;
        font-weight: 600;
        text-align: center;
        background-color: #cfff41;
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 10000000;
    }
}