/* Custom Styles for EmTeK CoE Portfolio */

/* =========== Base Styles =========== */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: transparent; 
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Hide scrollbar for a cleaner look */
body::-webkit-scrollbar { 
    display: none;
}
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* =========== Preloader =========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0c0c1d;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}
#preloader.fade-out {
    opacity: 0;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========== Starfield Background Canvas =========== */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* =========== Main Content Layout =========== */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.content-section {
    padding: 120px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* =========== Glassmorphism Effect =========== */
.glass-container {
    background: rgba(18, 16, 41, 0.6); /* Semi-transparent dark background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    position: relative;
}

/* =========== Typography =========== */
h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 10px;
    color: #eee;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: #c0c0c0;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* =========== UI Elements =========== */
.cta-button {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(90deg, #4f46e5, #c026d3);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(192, 38, 211, 0.4);
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Cards for About, Team, Mentors */
.about-card, .team-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.about-card:hover, .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Partner Logos */
.partner-logo {
    height: 60px;
    margin: 20px auto;
    filter: grayscale(100%) brightness(1.5) contrast(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}
.partner-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Form */
.contact-form input, .contact-form textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    width: 100%;
    transition: border-color 0.3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #888;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #8b5cf6; /* Indigo focus color */
}

/* =========== Scrolling Gallery (for Startups, Team, Mentors) =========== */
.scrolling-gallery {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.scrolling-gallery-inner {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}
.scrolling-gallery-inner:hover {
    animation-play-state: paused;
}
.scrolling-gallery .team-card {
    margin: 0 15px;
    width: 300px;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========== Header =========== */
header {
    background: rgba(12, 12, 29, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

/* =========== Social Sidebar =========== */
.social-sidebar {
    position: fixed;
    left: 40px;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social-sidebar a {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #c0c0c0;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-sidebar a:hover {
    color: #8b5cf6;
    transform: scale(1.2) translateY(-2px);
}
.social-sidebar::after {
    content: '';
    width: 1px;
    height: 90px;
    background-color: #c0c0c0;
    display: block;
}

/* =========== Responsive Adjustments =========== */
@media (max-width: 768px) {
    .content-section {
        padding: 80px 5%;
    }
    .glass-container {
        padding: 25px;
    }
    header nav ul {
        display: none;
    }
    .social-sidebar {
        display: none;
    }
    .scrolling-gallery .team-card {
        width: 250px;
    }
}