/* CSS Variables for easy theming */
:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --card-bg: rgba(30, 41, 59, 0.7);
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    /* UPDATED: Allow vertical scrolling, prevent horizontal */
    min-height: 100vh; 
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    /*overflow: hidden;  Prevent scrollbars from background animation */
    position: relative;
}

/* Background Animation - Abstract Floating Shapes */
.background-shapes {
    /* UPDATED: Fixed position keeps background behind content while scrolling */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* Ensures clicks go through to the content */
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), #6366f1);
    opacity: 0.1;
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-duration: 18s;
    animation-delay: -5s;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
}

.shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 60%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Main Content Container */
main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Progress Bar Visual */
.progress-wrapper {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
    width: 0%; /* Initial width, will be set by JS */
    border-radius: 999px;
    position: relative;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: width 1.5s ease-out;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: skewX(-20deg) translateX(200%);
    }
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 9999px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Contact Section */
.contact-section {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}

/* Social Links Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Space between icons */
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon {
    width: 28px; /* Icon size */
    height: 28px;
    fill: currentColor; /* Makes the icon take the color of the text */
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px); /* Slight lift on hover */
}
/* --- NAVIGATION BAR STYLES --- */

.navbar {
    position: fixed; /* Keeps the bar at the top when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--card-bg); /* Glassmorphism background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Ensures it sits on top of everything */
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Optional: Add a small underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- ADJUSTMENT FOR MAIN SECTION --- */

/* Update your existing 'main' style or add this override */
main {
    /* Add padding-top so content isn't hidden behind the fixed nav */
    padding-top: 100px; 
}

/* --- MOBILE RESPONSIVENESS FOR MENU --- */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
    
    main {
        padding-top: 140px; /* More padding for mobile since nav is taller */
    }
}

/* Contact Button Styles (make it look like a link) */
#copy-email-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    position: relative;
    top: -1px; /* Alignment adjustment */
}

#copy-email-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

/* Class added by JS to show the toast */
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

