* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Removed background from body, now in main-content */
    background-color: #121212;
    color: white;
}
header {
    padding: 15px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
    
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Logo image styles */
.logo-img {
    height: 75px; /* Adjust based on your logo's aspect ratio */
    width: auto;
    object-fit: contain;
}
/* Optional: hide the old icon if using logo image */
.logo-icon {
    display: none; /* Hide the old icon */
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}
.logo-text span {
    color: #1e88e5;
}
.main-content {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
/* Background image for main content */
.main-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/STTBackground01.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
}
/* Content wrapper to sit above background */
.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}
.welcome-text {
    margin-bottom: 50px;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}
.welcome-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.welcome-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
}
.button-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.portal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: rgba(30, 136, 229, 0.85);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.portal-btn:hover::before {
    transform: translateX(0);
}
.portal-btn:hover {
    transform: translateY(-10px);
    background: rgba(30, 136, 229, 0.95);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}
.portal-btn i {
    font-size: 4rem;
    margin-bottom: 15px;
}
.portal-btn span {
    font-size: 1.5rem;
    font-weight: 600;
}
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 10;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-right {
    text-align: right;
}
footer a {
    color: #1e88e5;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #64b5f6;
    text-decoration: underline;
}
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .logo-img {
        height: 40px; /* Smaller logo on mobile */
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .button-container {
        gap: 20px;
    }
    
    .portal-btn {
        width: 150px;
        height: 150px;
    }
    
    .portal-btn i {
        font-size: 3rem;
    }
    
    footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    /* Remove fixed background on mobile for better performance */
    .main-bg-image {
        background-attachment: scroll;
    }
}