* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #C9A961;
    --dark-gold: #A0824F;
    --light-gold: #F5F0E8;
    --wellness-green: #5B8E7D;
    --light-green: #E8F4F0;
    --dark-green: #3D6B5A;
    --natural-brown: #8B7355;
    --dark-bg: #2C2C2C;
    --light-bg: #FAFAFA;
    --text-dark: #2C2C2C;
    --text-light: #5A5A5A;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(91, 142, 125, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

/* Ensure logo is always visible */
.logo {
    min-height: 50px;
}

/* Logo error fallback - will show text if image fails to load */
.logo-link {
    min-height: 70px;
    display: flex;
    align-items: center;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(91, 142, 125, 0.3);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wellness-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--wellness-green);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--wellness-green);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-gold) 50%, var(--white) 100%);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 142, 125, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-container {
    margin-bottom: 2rem;
    animation: scaleIn 1s ease-out 0.3s both;
}

.hero-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s ease-out 0.3s both;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--wellness-green);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--primary-gold);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

/* Section Styles */
.section {
    padding: 90px 0;
}

.bg-light {
    background: var(--light-bg);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    color: var(--wellness-green);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--wellness-green) 0%, var(--primary-gold) 100%);
    border-radius: 2px;
}

/* Ensure proper text alignment */
.content-box p,
.timeline-content,
.membership-card p {
    text-align: left;
}

.content-box p {
    text-align: justify;
    text-justify: inter-word;
}

.content-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(91, 142, 125, 0.1);
}

.objective-text,
.summary-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: left;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--wellness-green);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--wellness-green);
    margin-bottom: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--wellness-green);
    font-weight: 600;
    font-size: 1rem;
}

/* Experience Timeline */
.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
    border-left: 5px solid var(--wellness-green);
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--wellness-green);
    margin-bottom: 1.75rem;
    font-weight: 600;
}

.responsibilities-list {
    list-style: none;
    padding-left: 0;
}

.responsibilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.responsibilities-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

/* Academia */
.academia-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.education-card {
    background: var(--white);
    padding: 2.75rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--wellness-green);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.education-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.education-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    color: var(--wellness-green);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.education-institution {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.education-topic {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.education-specialization {
    color: var(--wellness-green);
    font-weight: 500;
}

/* Memberships */
.membership-content {
    max-width: 700px;
    margin: 0 auto;
}

.membership-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
    text-align: center;
    border-top: 5px solid var(--wellness-green);
}

.membership-icon {
    font-size: 4.5rem;
    margin-bottom: 1.75rem;
}

.membership-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--wellness-green);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.membership-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Publications */
.publications-list {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
}

.publication-card {
    background: var(--white);
    padding: 2.75rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    border-left: 5px solid var(--wellness-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.publication-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 35px var(--shadow-hover);
}

.publication-year {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--wellness-green);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(91, 142, 125, 0.3);
}

.publication-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-right: 120px;
    line-height: 1.5;
    font-weight: 600;
}

.publication-journal {
    color: var(--wellness-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.publication-issn {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--wellness-green);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--wellness-green);
    font-weight: 600;
    margin-top: 0.5rem;
}

.contact-address,
.contact-phone,
.contact-email {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-phone a,
.contact-email a {
    color: var(--wellness-green);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-phone a:hover,
.contact-email a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-top: 3px solid var(--wellness-green);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wellness-green) 0%, var(--primary-gold) 50%, var(--wellness-green) 100%);
}

.footer-logo-img {
    height: 90px;
    width: auto;
    max-width: 250px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-text {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 400;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    /* default hover fallback - brand overrides come below */
}

/* Brand colored icons */
.social-link svg { fill: white; stroke: none; }

.social-link.youtube {
    background: #FF0000;
    color: #ffffff;
}
.social-link.youtube:hover {
    filter: brightness(0.95);
}

.social-link.instagram {
    /* Use inline SVG gradient; anchor background kept transparent to match provided icon */
    background: transparent;
    color: #ffffff;
}
.social-link.instagram svg { display: block; width: 44px; height: 44px; }
.social-link.instagram:hover { transform: translateY(-4px) scale(1.05); filter: brightness(0.98); }

.social-link.whatsapp {
    background: #25D366;
    color: #ffffff;
}
.social-link.whatsapp:hover {
    filter: brightness(0.95);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-logo {
        max-width: 220px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .academia-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .responsibilities-list {
        grid-template-columns: 1fr;
    }

    .publication-title {
        padding-right: 0;
        margin-top: 3.5rem;
    }

    .publication-year {
        position: static;
        display: inline-block;
        margin-bottom: 1.25rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .footer-logo-img {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }

    .hero-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2.5rem;
    }

    .content-box {
        padding: 2rem;
    }

    .skill-card,
    .education-card,
    .contact-card,
    .timeline-item,
    .publication-card {
        padding: 2rem;
    }
    
    .logo {
        height: 55px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hero Section Animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-logo-container {
    animation: scaleIn 1s ease-out 0.3s both;
}

.hero-logo {
    animation: scaleIn 1s ease-out 0.3s both, float 3s ease-in-out infinite 1.5s;
}

.hero-title {
    animation: fadeInDown 1.2s ease-out 0.5s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Section Title Animation */
.section-title {
    animation: fadeInUp 0.8s ease-out;
}

/* Navbar Animation */
.navbar {
    animation: fadeInDown 0.6s ease-out;
}

/* Logo Animation */
.logo {
    animation: scaleIn 0.8s ease-out;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    animation: pulse 2s ease-in-out infinite;
}

/* Card Hover Animations */
.skill-card,
.education-card,
.contact-card,
.publication-card,
.membership-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover,
.education-card:hover,
.contact-card:hover,
.publication-card:hover,
.membership-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Icon Animations */
.skill-icon,
.education-icon,
.contact-icon,
.membership-icon {
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon,
.education-card:hover .education-icon,
.contact-card:hover .contact-icon,
.membership-card:hover .membership-icon {
    transform: scale(1.2) rotate(5deg);
    animation: float 2s ease-in-out infinite;
}

/* Content Box Animation */
.content-box {
    animation: fadeInUp 0.8s ease-out;
    transition: box-shadow 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 12px 40px var(--shadow-hover);
}

/* Timeline Animation */
.timeline-item {
    animation: fadeInLeft 0.8s ease-out;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

/* Publication Card Animation */
.publication-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.publication-card:hover {
    transform: translateX(12px) translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.publication-year {
    transition: transform 0.3s ease;
}

.publication-card:hover .publication-year {
    transform: scale(1.1) rotate(5deg);
}

/* Button/Link Animations */
.nav-menu a,
.contact-phone a,
.contact-email a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--wellness-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--wellness-green), var(--primary-gold));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 3px solid var(--light-green);
    border-top: 3px solid var(--wellness-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Staggered Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* Text Reveal Animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: textReveal 0.8s ease-out;
}

/* Gradient Animation for Hero */
.hero {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-gold) 50%, var(--white) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Entrance */
.section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--wellness-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(91, 142, 125, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--dark-green);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(91, 142, 125, 0.4);
}

.back-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Enhanced Skill Card Animations */
.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91, 142, 125, 0.1), transparent);
    transition: left 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

/* Publication Card Enhanced Animation */
.publication-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-gold);
    transition: height 0.3s ease;
}

.publication-card:hover::after {
    height: 100%;
}

/* Contact Card Icon Animation */
.contact-card .contact-icon {
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    animation: float 2s ease-in-out infinite;
    transform: scale(1.2);
}

/* Education Card Number Badge Effect */
.education-card::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--wellness-green);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.education-card:hover::before {
    opacity: 0.2;
    transform: scale(1);
}

/* Responsive Animation Adjustments */
/* Branding Watermark (Optional - can be enabled for print) */
.branding-watermark {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.branding-watermark img {
    max-width: 200px;
    height: auto;
}

@media print {
    .branding-watermark {
        display: block;
    }
}

/* Logo Enhancements */
.logo,
.hero-logo,
.footer-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
}

/* Ensure logo visibility and quality */
.logo-container,
.hero-logo-container,
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Branding consistency */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    border-top: 3px solid var(--wellness-green);
}

.footer-text {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-logo {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

