/* === Base Styles === */
body {
    margin: 0;
    font-family: 'Work Sans', sans-serif; 
    scroll-behavior: smooth;
    background-color: #1E1E1E;
    color: white;
}

/* === Header + Navigation === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.9); /* semi-transparent header */
    padding: 15px 0;
    text-align: center;
    z-index: 1000; /* ensures it stays on top */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.logo img {
    height: 50px; 
    width: auto; 
}

/* === Navigation Links === */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
    position: relative;
}

nav ul li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 25px;
    transition: color 0.3s ease;
}

/* Underline hover animation */
nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 2px;
    background-color: red;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

nav ul li a:hover {
    color: red;
}

/* === Responsive Menu Toggle === */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Dropdown menu for small screens */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    width: 200px;
    text-align: left;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.dropdown a:hover {
    background: red;
    color: black;
}

.show-dropdown {
    display: block;
}

/* === Responsive Styles === */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        background: rgba(0, 0, 0, 0.9);
        top: 60px;
        width: 100%;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }
    nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* === Hero Section (Animated Name) === */
.name {
    padding: 60px 20px;
    background-color: #111;
    color: white;
}

.animated-left {
    font-size: 150px;
    font-weight: bold;
    text-align: left;
    width: 100%;
    display: block;
}

.animated-right {
    font-size: 140px;
    font-weight: bold;
    text-align: right;
    width: 100%;
    display: block;
}

/* Cursor animation for typewriter effect */
.cursor {
    display: inline-block;
    animation: blinkCursor 0.75s step-end infinite;
    color: white;
    font-weight: 100;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === About Section === */
.about {
    background-color: #222;
    padding: 50px 20px;
}

.about h3 {
    font-size: 50px;
    margin-bottom: 10px;
}

.underline-index {
    width: 1470px;
    height: 1px;
    background-color: white;
}

.underline {
    width: 1350px;
    height: 1px;
    background-color: white;
}

.underline-lo{
    width:1120px;
    height: 1px;
    background-color: white;
}

/* Flexbox layout for about content */
.about-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    gap: 250px;
}

.about-left, .about-right {
    font-size: 25px;
    font-family: 'Work Sans', serif;
}

.about-left {
    flex: 1;
    margin-left: 20px;
}

.about-right {
    flex: 2;
}

/* === Highlighted Animated Text === */
.highlight {
    position: relative;
    color: white;
    cursor: default;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: red;
    transform-origin: left;
    animation: underlineAnim 2.5s ease-in-out infinite;
}

@keyframes underlineAnim {
    0%, 100% {
        transform: scaleX(0);
        opacity: 0.3;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* === Contact Section === */
.contact-section {
    padding: 20px;
    border-radius: 10px;
    margin: auto;
}

.contact-section h2 {
    margin-bottom: 10px;
    font-size: 45px;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info img {
    width: 50px; 
    height: auto;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-size: 25px;
}

/* === Learning Outcomes Page === */
h1, h2 {
    padding-top: 80px;
    padding-bottom: 5px;
}

.lo-section {
    margin-left: 200px;
    margin-right: 200px;
    font-size: 20px;
    margin-bottom: 150px;
}

/* Section layout with images and text */
.section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.section-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.text {
    width: 60%;
}

.photo-grid, .photo-grid-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 35%;
}

.photo-grid-left {
    margin-left: 10px;
}

.photo-grid {
    margin-right: 25px;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

.photo-grid-left img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-grid-left img:hover {
    transform: scale(1.05);
}

/* === Image Popup Modal === */
.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup img {
    max-width: 80%;
    max-height: 80%;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* === Link Styling === */
.link {
    color: red;
}
