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

:root {
    --primary-color: #00D9FF;
    --primary-glow: rgba(0, 217, 255, 0.5);
    --secondary-color: #B026FF;
    --secondary-glow: rgba(176, 38, 255, 0.5);
    --background-color: #000000;
    --background-card: rgba(20, 20, 30, 0.8);
    --background-card-hover: rgba(30, 30, 45, 0.9);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 32px rgba(0, 217, 255, 0.2);
    --nav-height: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(176, 38, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 217, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(176, 38, 255, 0.08) 0%, transparent 40%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Navigation Bar */
.navbar {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 0 80px var(--primary-glow);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Appointment Container */
.appointment-container {
    background: var(--background-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.appointment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.appointment-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow);
    border-color: rgba(0, 217, 255, 0.3);
    background: var(--background-card-hover);
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer p:hover {
    color: var(--text-primary);
}

/* 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);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body::before {
        animation: rotate 30s linear infinite;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        height: 36px;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .hero-section {
        margin-bottom: 2.5rem;
    }

    .main-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .appointment-container {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .nav-menu {
        gap: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.15rem;
    }

    .appointment-container {
        padding: 3.5rem 2.5rem;
    }
}

@media (min-width: 1025px) {
    .main-content {
        padding: 4rem 2rem;
    }

    .hero-section {
        margin-bottom: 5rem;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.35rem;
    }

    .appointment-container {
        padding: 5rem 4rem;
    }
}

/* Loading state for Google Calendar */
.appointment-container:empty::after {
    content: 'Loading appointment scheduler...';
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 2rem;
}

/* Google Calendar Button Customization */
.appointment-container iframe {
    border-radius: 12px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: var(--background-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--background-color);
}

