* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #1e1e1e;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* HEADER */
header {
    height: 100vh;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
}

header h1 {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: fadeInDown 1.2s ease-in-out;
}

header p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-in-out;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-top: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #88d3ce;
}

/* Scroll down arrow */
.scroll-down {
    position: absolute;
    bottom: 20px;
    animation: bounce 2s infinite;
}

.scroll-down a {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.scroll-down a:hover {
    background-color: white;
    color: #6e45e2;
}

/* About Section */
.about {
    padding: 100px 20px;
    background: #222;
    text-align: center;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #88d3ce;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
}

/* Experiences Section */
.experiences {
    padding: 100px 20px;
    background: #1e1e1e;
}

.experiences h2 {
    font-size: 3rem;
    color: #88d3ce;
    text-align: center;
    margin-bottom: 50px;
}

/* Horizontal scrolling experience gallery */
.experience-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    border-top: 2px solid #333;
}

/* Scrollbar styling */
.experience-gallery::-webkit-scrollbar {
    height: 8px;
}

.experience-gallery::-webkit-scrollbar-thumb {
    background-color: rgba(136, 211, 206, 0.7);
    border-radius: 4px;
}

.experience-gallery::-webkit-scrollbar-track {
    background-color: #1e1e1e;
}

.experience-card {
    background-color: #333; /* Dark card background */
    color: #fff; /* White text */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 300px;
    max-height: 400px;
    flex: 0 0 auto; /* Prevent flex shrinking */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* enable vertical scrolling if needed */
    box-sizing: border-box;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Sticky title inside card */
.experience-card h3 {
    position: sticky;
    top: 0;
    background: #333; /* same as card background */
    padding: 10px 0;
    margin: 0 0 10px 0;
    z-index: 1;
    color: #88d3ce; /* heading color */
}

/* Scrollbar styling inside cards */
.experience-card::-webkit-scrollbar {
    width: 6px;
}

.experience-card::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

/* Card paragraphs and links */
.experience-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.experience-card a {
    color: #ffd700; /* Gold color */
    text-decoration: underline;
}

.experience-card a:hover {
    color: #fff;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: #222;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    color: #88d3ce;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    color: #ccc;
}

.contact a {
    color: #88d3ce;
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 3.5rem;
    }

    nav ul {
        flex-direction: column;
    }

    .experience-gallery {
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
    }

    #typing-text {
        font-size: 1.5rem;
        color: #88d3ce;
        margin-top: 20px;
    }
}
