:root {
    --primary-color: #002855;
    /* Deep Navy - Professional, Trust */
    --accent-color: #E2231A;
    /* Red - Energy, Highlight */
    --text-color: #333333;
    --bg-color: #f4f7f6;
    /* Light gray/white clinical feel */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utilities */
.glass-panel,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.glass-card {
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--accent-color);
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #001f44;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset fixed header */
}

.hero-section h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
    /* Above floating icons */
}

.content-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Timeline */
.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    border-left: 3px solid var(--accent-color);
}

.timeline-item span.date {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Skills */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tags span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    font-weight: 500;
}

/* Floating Background */
.floating-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
    /* Enable 3D space */
}

.floating-icon {
    position: absolute;
    opacity: 0.9;
    /* Composite shadow for extra depth */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother inertia */
    will-change: transform;
    animation: floatIdle 6s ease-in-out infinite;
}

@keyframes floatIdle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Wrapper handles positioning and parallax */
.floating-icon {
    position: absolute;
    /* Composite shadow for extra depth */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    will-change: transform;
}

/* Inner image handles idle animation */
.icon-inner {
    width: 100%;
    height: auto;
    animation: floatIdle 6s ease-in-out infinite;
}

/* Initial Placement of Icons (Applied to Wrapper) */
.pill {
    top: 15%;
    right: 10%;
    width: 180px;
}

.pill .icon-inner {
    animation-delay: 0s;
}

.syringe {
    top: 40%;
    left: 5%;
    width: 220px;
}

.syringe .icon-inner {
    animation-delay: 1s;
}

.vial {
    top: 70%;
    right: 20%;
    width: 140px;
}

.vial .icon-inner {
    animation-delay: 2s;
}

.protein {
    top: 20%;
    left: 15%;
    width: 220px;
    opacity: 0.7;
}

.protein .icon-inner {
    animation-delay: 3s;
}

/* New Tablets */
.tablet-round {
    top: 60%;
    left: 35%;
    width: 100px;
    opacity: 0.8;
}

.tablet-round .icon-inner {
    animation-delay: 1.5s;
}

.tablet-oblong {
    top: 25%;
    right: 35%;
    width: 140px;
    opacity: 0.8;
}

.tablet-oblong .icon-inner {
    animation-delay: 2.5s;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2.5rem;
    }

    .floating-icon {
        opacity: 0.3;
    }

    /* Reduce distraction on mobile */
    .pill {
        width: 100px;
    }

    .syringe {
        width: 120px;
    }
}