/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary: #0066ff;
    --secondary: #00d4ff;
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-primary: rgba(0, 102, 255, 0.3);
    --shadow-secondary: rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: var(--bg-dark);
    color: white;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ===========================
   Animated Background
   =========================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, var(--primary), var(--secondary), var(--primary), #000000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===========================
   Floating Particles
   =========================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px) scale(0); opacity: 0; }
}

/* ===========================
   Navigation
   =========================== */
nav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 20px;
    box-shadow: 0 4px 20px var(--shadow-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

nav:hover {
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

nav ul li a {
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.3s ease;
}

nav ul li a:hover::before {
    left: 0;
}

nav ul li a:hover {
    transform: translateY(-2px);
    color: var(--secondary);
}

/* ===========================
   Dropdown
   =========================== */
.dropdown-content {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.5) !important;
    border: 2px solid rgba(0, 212, 255, 0.3) !important;
    min-width: 250px !important;
    margin-top: 10px !important;
    overflow: visible !important;
    z-index: 9999 !important;
    position: absolute !important;
}

.dropdown-content li {
    background: transparent !important;
}

.dropdown-content li a {
    color: white !important;
    transition: all 0.4s var(--transition-smooth) !important;
    padding: 16px 24px !important;
    font-size: 1.05rem !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.dropdown-content li a::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: linear-gradient(180deg, var(--primary), var(--secondary)) !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
}

.dropdown-content li a:hover::before {
    transform: scaleY(1) !important;
}

.dropdown-content li a:hover {
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.2), transparent) !important;
    padding-left: 32px !important;
    color: var(--secondary) !important;
}

.dropdown-content li:first-child a {
    border-radius: 13px 13px 0 0 !important;
}

.dropdown-content li:last-child a {
    border-radius: 0 0 13px 13px !important;
}

/* ===========================
   Header / Banner
   =========================== */
.gradient-header {
    background: transparent;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.capsule {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    padding: 30px 50px;
    border-radius: 30px;
    box-shadow: 0 8px 32px var(--shadow-primary);
    text-align: center;
    border: 2px solid var(--glass-border);
    transition: all 0.5s ease;
    animation: capsuleFloat 6s ease-in-out infinite;
}

@keyframes capsuleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.capsule:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.5);
    border-color: rgba(0, 212, 255, 0.5);
}

.capsule h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin: 0;
    background: linear-gradient(90deg, #ffffff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: 0.02em;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.capsule p {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    margin: 10px 0;
    color: #dcdcdc;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.capsule p:nth-child(3) {
    animation-delay: 0.3s;
}

.capsule p:nth-child(4) {
    animation-delay: 0.6s;
}

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

/* ===========================
   Profile Photo
   =========================== */
.profile-photo-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 20px rgba(0, 102, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        0 0 60px rgba(0, 102, 255, 0.1);
    animation: photoGlow 4s ease-in-out infinite alternate;
    transition: all 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 30px rgba(0, 102, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.4);
}

@keyframes photoGlow {
    0% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2); }
    100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 50px rgba(0, 102, 255, 0.3); }
}

/* ===========================
   Social Links
   =========================== */
.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: all 0.4s ease;
    position: relative;
    animation: bounceIn 1s ease;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: var(--shadow-primary);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-links a:hover::after {
    transform: scale(1.5);
    opacity: 0;
}

.social-links a:hover {
    transform: translateY(-10px) rotate(360deg);
}

.social-links a img {
    filter: drop-shadow(0 4px 10px rgba(0, 102, 255, 0.5));
    transition: all 0.3s ease;
}

.social-links a:hover img {
    filter: drop-shadow(0 8px 20px rgba(0, 212, 255, 0.8));
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===========================
   Container & Utilities
   =========================== */
.container {
    position: relative;
    z-index: 1;
}

/* ===========================
   Glowing Button
   =========================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

/* ===========================
   Scroll Animation
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
    .capsule {
        padding: 20px 25px;
    }

    .capsule h1 {
        font-size: 2rem;
    }

    .capsule p {
        font-size: 1rem;
    }

    .social-links a {
        margin: 0 10px;
    }

    .profile-photo {
        width: 110px;
        height: 110px;
    }
}
