/* ==========================================
   DIGITAL VISITING CARD — DR. TARITA SHANKAR
   Light Theme · Logo-derived Color Palette
   ========================================== */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
    --primary: #1E4D6E;
    --primary-dark: #153A54;
    --primary-light: #2B6A93;
    --secondary: #7AAFB5;
    --secondary-light: #A8D1D5;
    --accent: #E8B12D;
    --accent-light: #F0C95D;
    --white: #FFFFFF;
    --off-white: #F7FAFB;
    --light-bg: #EEF5F7;
    --card-bg: #FFFFFF;
    --text-dark: #1A2A35;
    --text-medium: #3D5A6E;
    --text-light: #6B8A9E;
    --border: #D8E8ED;
    --shadow-sm: 0 2px 8px rgba(30, 77, 110, 0.06);
    --shadow-md: 0 4px 20px rgba(30, 77, 110, 0.1);
    --shadow-lg: 0 8px 40px rgba(30, 77, 110, 0.14);
    --shadow-glow: 0 0 30px rgba(122, 175, 181, 0.25);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- PARTICLE CANVAS ---------- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ---------- VCARD CONTAINER ---------- */
.vcard-container {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    background: linear-gradient(145deg, var(--white) 0%, var(--light-bg) 50%, var(--secondary-light) 100%);
    padding: 40px 24px 36px;
    text-align: center;
    overflow: hidden;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    top: -80px;
    right: -60px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    bottom: -40px;
    left: -40px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: var(--primary);
    top: 40%;
    left: 50%;
    animation: floatShape 12s ease-in-out infinite 2s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(15px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-10px, 10px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Logo */
.logo-wrapper {
    margin-bottom: 20px;
}

.logo-img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    animation: fadeScaleIn 0.8s ease forwards;
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Profile Photo */
.profile-photo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--secondary-light);
    position: relative;
    z-index: 2;
    animation: profileReveal 1s ease forwards;
}

@keyframes profileReveal {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.profile-photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    animation: spinRing 20s linear infinite;
    z-index: 1;
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

/* Name & Designation */
.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.profile-designation {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    line-height: 1.5;
}

.profile-designation.sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ---------- QUICK ACTIONS ---------- */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    margin: -20px 16px 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 3;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:hover,
.action-btn:active {
    background: var(--light-bg);
    transform: translateY(-2px);
}

.action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    color: var(--white);
    transition: var(--bounce);
}

.action-icon svg {
    width: 20px;
    height: 20px;
}

.action-btn:hover .action-icon {
    transform: scale(1.12);
    box-shadow: var(--shadow-glow);
}

.action-btn span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ---------- SECTION COMMON ---------- */
.section {
    margin: 24px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.section-icon svg {
    width: 18px;
    height: 18px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ---------- ABOUT SECTION ---------- */
.about-text {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.75;
}

.about-hidden {
    display: none;
}

.about-hidden.show {
    display: inline;
}

.read-more-btn {
    display: inline-block;
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.read-more-btn:hover {
    border-bottom-color: var(--accent);
}

/* ---------- CONTACT SECTION ---------- */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-card:hover {
    border-color: var(--secondary-light);
    background: var(--light-bg);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 10px;
    color: var(--white);
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 18px;
    height: 18px;
}

.contact-card-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-card-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.contact-card-arrow svg {
    width: 16px;
    height: 16px;
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- SOCIAL SECTION ---------- */
.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-medium);
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--off-white);
    transform: translateY(-3px);
}

.social-icon-bg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    transition: var(--bounce);
}

.social-icon-bg svg {
    width: 22px;
    height: 22px;
}

.social-link:hover .social-icon-bg {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-link span {
    font-size: 11px;
    font-weight: 600;
}

/* Social Brand Colors */
.instagram .social-icon-bg {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.linkedin .social-icon-bg {
    background: #0077B5;
}

.facebook .social-icon-bg {
    background: #1877F2;
}

.youtube .social-icon-bg {
    background: #FF0000;
}

/* ---------- GALLERY SECTION ---------- */
.gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav svg {
    width: 22px;
    height: 22px;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-img-wrapper {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
    animation: lightboxZoomIn 0.35s ease;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
}

/* ---------- VIDEO SECTION ---------- */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.video-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.video-play-btn svg {
    width: 60px;
    height: 42px;
    opacity: 0.9;
    transition: var(--bounce);
}

.video-card:hover .video-play-btn {
    background: rgba(0, 0, 0, 0.15);
}

.video-card:hover .video-play-btn svg {
    transform: scale(1.15);
    opacity: 1;
}

/* Video Embed (when playing) */
.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--radius-sm);
}

/* ---------- SAVE CONTACT ---------- */
.save-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0;
}

.save-section:hover {
    box-shadow: none;
}

.save-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.save-contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.save-contact-btn:hover::before {
    transform: translateX(100%);
}

.save-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.save-contact-btn:active {
    transform: translateY(0);
}

.save-contact-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 28px 24px 40px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 100px;
    opacity: 0.5;
    filter: grayscale(40%);
    transition: var(--transition);
}

.footer-logo-img:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.footer-text {
    font-size: 12px;
    color: var(--text-light);
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 481px) {
    .vcard-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero {
        border-radius: var(--radius-lg);
        margin: 16px;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        font-size: 30px;
    }

    .gallery-item {
        width: 220px;
        height: 165px;
    }
}

@media (max-width: 360px) {
    .quick-actions {
        gap: 4px;
        padding: 14px 12px;
    }

    .action-btn {
        padding: 8px 10px;
    }

    .action-icon {
        width: 40px;
        height: 40px;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}