@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --primary: #FF1E56;
    --secondary: #FFAC41;
    --accent: #7A04EB;
    --background: #120458;
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.5s ease-in-out;
}

.splash-screen h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.start-button {
    padding: 1rem 3rem;
    font-size: 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.start-button:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

/* Main Content */
.main-content {
    opacity: 1;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(13, 1, 68);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.85);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--primary);
}

/* Add padding to create hover area */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

section > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    width: 80%;
    max-width: 1200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Update h1 and h2 styles to ensure proper centering */
h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

/* Ensure paragraphs are centered properly */
p {
    font-size: 1.5rem;
    max-width: 1000px;
    margin: 1rem auto;
    text-align: center;
}

/* Add smooth scrolling to html element */
html {
    scroll-behavior: smooth;
}

.card:hover {
    transform: translateY(-5px);
}

.explore-button {
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: var(--accent);
    border: none;
    border-radius: 1rem;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.explore-button:hover {
    transform: scale(1.1);
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-justified {
    text-align: justify;
}

#pca, #clustering, #arm, 
#decision-trees, #naive-bayes, #svm, #regression {
  scroll-margin-top: 140px; 
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}