/*
 * Author: Amey Thakur
 * GitHub: https://github.com/amey-thakur
 * Date: 2026-07-01
 * License: MIT
 * Description: Main stylesheet for the portfolio website.
 */

:root {
    /* Colors - Ethereal Lab Theme */
    --bg-color: #f8f9fa;
    /* Soft White */
    --text-color: #2c3e50;
    /* Deep Charcoal */
    --accent-color: #2563eb;
    /* Sapphire Blue - Engineering & Strategy */
    --accent-light: #dbeafe;
    /* Soft Teal Background */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --dark-bg: #111827;
    /* For footer */
    --white: #ffffff;
    --heading-color: #2c3e50;
    /* Deep Charcoal - Headings */
    --light-text: #64748b;
    /* Muted Slate - Secondary text */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-speed: 0.4s;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ============================================
   Dark Theme Overrides
   High-contrast, premium dark palette
   ============================================ */
body.dark-theme {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --accent-color: #3b82f6;
    --accent-light: #1e3a5f;
    --glass-bg: rgba(30, 41, 59, 0.9);
    --glass-border: rgba(100, 116, 139, 0.3);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --dark-bg: #020617;
    --white: #1e293b;
    color-scheme: dark;
}

/* --- Scrollbar (dark) --- */
body.dark-theme {
    scrollbar-color: #334155 #0f172a;
}

body.dark-theme::-webkit-scrollbar {
    width: 12px;
}

body.dark-theme::-webkit-scrollbar-track {
    background: #0f172a;
}

body.dark-theme::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 6px;
}

body.dark-theme::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Global Text --- */
body.dark-theme,
body.dark-theme p,
body.dark-theme span,
body.dark-theme li,
body.dark-theme a {
    color: #e2e8f0;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4 {
    color: #ffffff !important;
}

body.dark-theme strong {
    color: #ffffff;
}

/* --- Sections & Backgrounds --- */
body.dark-theme .about-section,
body.dark-theme .section {
    background-color: var(--bg-color) !important;
}

body.dark-theme .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

body.dark-theme .credentials-section,
body.dark-theme .contact-section {
    background: var(--bg-color) !important;
}

/* Experience and Education carry a light gradient; clear it so the dark
   background and their section titles stay legible */
body.dark-theme .education-section {
    background: var(--bg-color) !important;
}

/* --- Navigation --- */
body.dark-theme .navbar {
    background: rgba(15, 23, 42, 0.97) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

body.dark-theme .nav-links a {
    color: #e2e8f0 !important;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
    color: #ffffff !important;
}

body.dark-theme .logo {
    color: #ffffff !important;
}

body.dark-theme .btn-nav {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

body.dark-theme .nav-links a.btn-nav:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* --- Mobile Nav --- */
body.dark-theme .nav-links.active {
    background: #0f172a !important;
}

/* --- Glass Cards --- */
body.dark-theme .card-glass {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- Hero --- */
body.dark-theme .hero-text h1 {
    color: #ffffff !important;
}

body.dark-theme .hero-text .subtitle {
    color: var(--accent-color) !important;
}

body.dark-theme .hero-text .description {
    color: #e2e8f0 !important;
}

body.dark-theme .circle-graphic {
    background: conic-gradient(from 180deg at 50% 50%, var(--accent-light) 0deg, #1e293b 360deg) !important;
}

/* --- Buttons --- */
body.dark-theme .btn-primary {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

body.dark-theme .btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

body.dark-theme .btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: transparent !important;
}

body.dark-theme .btn-secondary:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* --- About Section --- */
body.dark-theme .img-wrapper {
    border-color: #334155 !important;
}

body.dark-theme .section-title {
    color: #ffffff !important;
}

body.dark-theme .bio p,
body.dark-theme .bio .lead {
    color: #e2e8f0 !important;
}

body.dark-theme .tag {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* --- Visitor Counter --- */
body.dark-theme .visitor-counter {
    color: #e2e8f0 !important;
}

body.dark-theme .visitor-counter span {
    color: #e2e8f0 !important;
}

/* --- Timeline & Experience --- */
body.dark-theme .timeline-content {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

body.dark-theme .timeline-content h3 {
    color: #ffffff !important;
}

body.dark-theme .timeline-content p {
    color: #cbd5e1 !important;
}

body.dark-theme .timeline::before {
    background: #334155;
}

body.dark-theme .timeline-item::before {
    border-color: #0f172a;
}

body.dark-theme .doc-actions a,
body.dark-theme .doc-actions button {
    color: #e2e8f0 !important;
    opacity: 0.7;
}

body.dark-theme .doc-actions a:hover,
body.dark-theme .doc-actions button:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}

/* --- Projects / Research Cards --- */
body.dark-theme .card-research {
    background-color: #1e293b !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

body.dark-theme .card-research h3 {
    color: #ffffff !important;
}

body.dark-theme .card-research .card-body p,
body.dark-theme .card-research .d-list li {
    color: #cbd5e1 !important;
}

body.dark-theme .card-research:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .badge {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

body.dark-theme .icon-bg {
    color: #60a5fa !important;
    opacity: 0.22 !important;
}

/* --- Skills & Capabilities --- */
body.dark-theme .skill-category {
    background: rgba(30, 41, 59, 0.9) !important;
}

body.dark-theme .skill-category h3 {
    color: #ffffff !important;
    border-bottom-color: rgba(100, 116, 139, 0.3) !important;
}

body.dark-theme .skill-tags span {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.dark-theme .skill-icon {
    color: var(--accent-color) !important;
}

/* --- Credentials & Certificates --- */
body.dark-theme .credential-card {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

body.dark-theme .credential-card h3 {
    color: #ffffff !important;
}

body.dark-theme .credential-card p {
    color: #cbd5e1 !important;
}

body.dark-theme .resume-cta-content {
    background: rgba(30, 41, 59, 0.9) !important;
}

body.dark-theme .resume-cta-content h3 {
    color: #ffffff !important;
}

body.dark-theme .resume-cta-content p {
    color: #e2e8f0 !important;
}

/* --- Contact Section --- */
body.dark-theme .contact-wrapper {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

body.dark-theme .contact-info h2 {
    color: #ffffff !important;
}

body.dark-theme .contact-info p {
    color: #e2e8f0 !important;
}

body.dark-theme .detail-item {
    color: #e2e8f0 !important;
}

body.dark-theme .detail-item a {
    color: #60a5fa !important;
}

body.dark-theme .detail-item i {
    color: var(--accent-color) !important;
}

body.dark-theme .contact-details .detail-item {
    border-top-color: rgba(148, 163, 184, 0.2) !important;
}

body.dark-theme .form-group label {
    color: #ffffff !important;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
    color: #94a3b8 !important;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
    border-color: var(--accent-color) !important;
}

/* --- Footer --- */
body.dark-theme footer {
    background: var(--dark-bg) !important;
}

body.dark-theme footer p,
body.dark-theme .footer-logo {
    color: #94a3b8 !important;
}

/* --- Modals --- */
body.dark-theme .biz-card-content {
    background: rgba(15, 23, 42, 0.97) !important;
    border-color: rgba(100, 116, 139, 0.3) !important;
}

body.dark-theme .biz-card-name {
    color: #ffffff !important;
}

body.dark-theme .biz-card-title {
    color: var(--accent-color) !important;
}

body.dark-theme .biz-card-pitch {
    color: #e2e8f0 !important;
}

body.dark-theme .biz-card-btn {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #ffffff !important;
}

body.dark-theme .biz-card-btn:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #ffffff !important;
}

body.dark-theme .biz-card-btn-accent {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

body.dark-theme .biz-card-btn-accent:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

body.dark-theme .close-biz-card,
body.dark-theme .close-modal {
    color: #e2e8f0 !important;
}

body.dark-theme .close-biz-card:hover,
body.dark-theme .close-modal:hover,
body.dark-theme .close-modal:focus {
    color: var(--accent-color) !important;
}

body.dark-theme .modal-content {
    background: rgba(15, 23, 42, 0.97) !important;
    border-color: rgba(100, 116, 139, 0.3) !important;
}

/* --- Scroll Indicator --- */
body.dark-theme .scroll-down .mouse {
    border-color: #ffffff;
}

body.dark-theme .scroll-down .wheel {
    background: #ffffff;
}

/* --- Back to Top --- */
body.dark-theme .back-to-top {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* --- Title Underline --- */
body.dark-theme .title-underline {
    background: var(--accent-color) !important;
}

/* Smooth global transition for theme switch */
body,
body * {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}


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

html {
    scroll-behavior: smooth;
}

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

/* Prevent text selection on decorative UI controls only */
.hamburger,
.scroll-down,
.dot,
.back-to-top {
    user-select: none;
    -webkit-user-select: none;
}

h1,
h2,
h3,
h4,
.logo,
.section-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) var(--ease-out);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease-out);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background var(--transition-speed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

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

.dot {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dot::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    z-index: 10;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links.active {
    transform: translateX(0);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Contact call-to-action button in the nav */
.btn-nav {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-nav::after {
    display: none;
}

.nav-links a.btn-nav:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 9px 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hamburger Toggle Animation */
.hamburger.toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, var(--accent-light) 0%, transparent 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .highlight {
    font-style: italic;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(37, 99, 235, 0.2);
    z-index: -1;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-graphic {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, var(--accent-light) 0deg, white 360deg);
    filter: blur(40px);
    opacity: 0.6;
    animation: rotate 20s linear infinite;
}

/* Scroll Mouse Animation */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

.arrow-span span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: -4px;
    animation: scrollArrow 1.5s infinite;
}

.arrow-span span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow-span span:nth-child(3) {
    animation-delay: 0.4s;
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 15px solid var(--accent-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.text-center .section-title::after {
    margin: 10px auto 0;
}

.bio p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.vibe-tags {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


.tag {
    display: inline-block;
    /* Ensure transforms work */
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.2);
}

/* Education Section */
.education-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    /* Adjust for mobile/desktop */
    height: 100%;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-5px);
}

/* --- Visitor Counter --- */
.visitor-counter {
    flex-wrap: wrap;
}

.card-glass h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-glass h4 {
    font-family: var(--font-body);
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-research {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.card-research:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--accent-light);
    padding: 2rem;
    position: relative;
}

.icon-bg {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.1;
}

.badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.card-body {
    padding: 2rem;
}

.d-list {
    margin-top: 1rem;
}

.d-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.d-list i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Skills Section */
.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tags span {
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Credentials Section */
.credentials-section {
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
}

.resume-cta {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.resume-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.resume-cta-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.resume-cta-text h3 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.resume-cta-text p {
    color: #555;
    font-size: 1rem;
    max-width: 500px;
}

.resume-cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.resume-cta-actions .btn-secondary {
    margin-left: 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.credential-card {
    text-align: center;
    transition: all 0.3s ease;
}

.credential-card:hover {
    transform: translateY(-5px);
}

.credential-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.credential-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.credential-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-color);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: space-between;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-form {
    flex: 1.5 1 400px;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* --- Keyboard Focus Indicator --- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Reveal Classes (Used by JS) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Single-column hero below desktop width */
@media (max-width: 1199px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }
}

/* Responsive Precision */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 4rem 0;
        /* Container supplies the single side gutter */
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        /* Slightly wider for better touch targets on small phones */
        max-width: 320px;
        background-color: rgba(255, 255, 255, 0.98);
        /* Less transparent for readability */
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding-top: 4rem;
        /* Initial spacing offset */
    }

    .hero-text h1 {
        line-height: 1.15;
    }

    .description {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    .scroll-down {
        bottom: 1rem;
        transform: translateX(-50%) scale(0.8);
    }

    .about-image {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Force 2x2 Grid for Mobile Badges */
    .vibe-tags {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        justify-items: center;
        margin: 1.5rem auto 0;
        max-width: 100%;
    }

    .tag {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        /* Slightly smaller for mobile fit */
        padding: 0.4rem 0.2rem;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 25px;
        /* Tighter padding */
    }

    .timeline-item::before {
        left: -9px;
        width: 18px;
        /* Slightly smaller dots */
        height: 18px;
    }

    .timeline-content {
        padding: 1.5rem;
        /* Less padding inside cards */
    }

    .contact-wrapper {
        gap: 3rem;
    }

    .resume-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .resume-cta-text p {
        max-width: 100%;
    }

    .resume-cta-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .resume-cta-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .credentials-grid {
        gap: 1.5rem;
    }
}

/* Tablet and small-laptop spacing */
@media (min-width: 600px) and (max-width: 991px) {
    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .credential-card {
        padding: 1.5rem;
    }
}

/* Form Notification */
.form-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.form-notification.error {
    background-color: #ef4444;
}

/* Cinematic Effects handled via JS Web Animations API for performance */

/* 
 * ==========================================
 * Print Layout Configuration
 * ==========================================
 * Defines print-specific overrides for A4 paper size.
 * Includes adjustments for grid layouts, visibility,
 * and typography to ensure clean output.
 */
@media print {
    @page {
        margin: 1.5cm;
        size: A4;
    }

    /* 1. Reset and Visibility */
    *,
    *:before,
    *:after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
        animation: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: #fff !important;
        color: #222;
        font-family: 'Inter', sans-serif;
        font-size: 10.5pt;
        line-height: 1.5;
        width: 100%;
        -webkit-font-smoothing: antialiased;
    }

    /* 2. Hide Web-Only Elements */
    .navbar,
    .scroll-down,
    .music-btn,
    .pwa-install-btn,
    .pwa-toast,
    .form-notification,
    .contact-form,
    .btn,
    .hamburger,
    footer,
    iframe,
    .img-overlay,
    .cta-group {
        display: none !important;
    }

    /* 3. Section Layout */
    .section {
        padding: 0 !important;
        margin-bottom: 2.5rem !important;
        page-break-inside: auto;
        /* Allow page breaks to avoid truncation */
        display: block !important;
        width: 100%;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 4. Hero Section */
    .hero-section {
        height: auto !important;
        display: block !important;
        padding: 2rem 0 2rem 0 !important;
        background: radial-gradient(circle at 50% 50%, #effcf9 0%, transparent 70%) !important;
        border-bottom: 3px solid #2563eb;
        margin-bottom: 3rem;
        text-align: center;
        page-break-inside: avoid;
        /* Prevent page break inside hero section */
    }

    .hero-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36pt !important;
        color: #2563eb !important;
        font-family: 'Playfair Display', serif;
        margin: 0 0 1rem 0;
        letter-spacing: -1px;
    }

    .hero-text .subtitle {
        font-size: 14pt;
        font-weight: 600;
        color: #115e59 !important;
        text-transform: uppercase;
        letter-spacing: 4px;
        margin-bottom: 1rem;
    }

    .hero-text .description {
        font-size: 11pt;
        color: #555;
        max-width: 80%;
        margin: 0 auto;
        line-height: 1.5;
    }

    .hero-visual {
        display: none !important;
    }

    /* 5. Typography */
    h2.section-title {
        font-size: 20pt !important;
        color: #1f2937 !important;
        font-family: 'Playfair Display', serif;
        text-align: center;
        border-bottom: 2px solid #2563eb;
        padding-bottom: 0.5rem;
        margin-bottom: 2rem;
        display: block;
        width: 100%;
        page-break-after: avoid;
        /* Ensure title remains with following content */
    }

    .section-title::after {
        display: none;
    }

    /* 6. Layouts: About Section */
    .about-grid {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .about-image {
        display: block !important;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .img-wrapper {
        border: 4px solid var(--accent-light) !important;
        border-radius: 50%;
        width: 220px;
        height: 220px;
        overflow: hidden;
        margin: 0 auto;
    }

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-text {
        text-align: center;
        flex: 1;
    }

    /* Badge Grid Layout */
    .vibe-tags {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* 2 columns */
        gap: 0.8rem;
        margin: 1.5rem auto 0 auto;
        max-width: 350px;
        /* Constrain width */
        justify-items: center;
    }

    .tag {
        background: #fff !important;
        color: #0f766e !important;
        border: 1px solid #2563eb;
        font-size: 9pt;
        padding: 0.4rem 0.8rem;
        border-radius: 50px;
        white-space: nowrap;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* 7. Education - Timeline Layout */
    .timeline {
        margin: 0 auto !important;
        max-width: 90%;
        padding-left: 2rem !important;
        /* Establish positioning context */
        background: transparent !important;
    }

    .timeline::before {
        left: 2rem !important;
        /* Vertical timeline line positioning */
        border-left: 2px solid #e5e7eb !important;
    }

    .timeline-item {
        margin-bottom: 3rem !important;
        padding-left: 2.5rem !important;
        padding-bottom: 2rem !important;
        /* Bottom padding to prevent clipping */
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        position: relative !important;
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Ensure visibility of animated elements */
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        clip-path: none !important;
        /* Ensure no clipping */
    }

    .timeline-item::before {
        /* Timeline dot positioning */
        content: '' !important;
        position: absolute !important;
        left: 1px !important;
        /* Center align with vertical line */
        transform: translateX(-50%) !important;
        top: 0.6rem !important;
        background: #2563eb !important;
        border: 3px solid #fff !important;
        width: 18px !important;
        height: 18px !important;
        box-shadow: 0 0 0 1px #2563eb !important;
        z-index: 5 !important;
        margin: 0 !important;
        /* Remove default margins */
    }

    /* Reset timeline content styles for print capability */
    .timeline-content,
    .timeline-content * {
        all: unset !important;
        display: block !important;
        /* Force block layout */
        font-family: 'Inter', sans-serif !important;
        color: #222 !important;
        text-align: left !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
    }

    /* Apply print-specific typography */
    .timeline-content h3 {
        font-size: 14pt !important;
        font-weight: 700 !important;
        margin-bottom: 0.2rem !important;
    }

    .timeline-content h4 {
        font-size: 11pt !important;
        color: #555 !important;
        margin-bottom: 0.5rem !important;
        font-style: italic !important;
    }

    .timeline-content p,
    .timeline-content p strong {
        font-size: 10.5pt !important;
        white-space: normal !important;
    }

    /* Prevent text modification or clipping in print */
    .card-glass p {
        widows: 3 !important;
        orphans: 3 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
        white-space: normal !important;
        /* Force text wrapping */
        text-overflow: clip !important;
        /* Disable text truncation */
        display: block !important;
        height: auto !important;
    }

    /* Ensure inline elements are visible */
    .card-glass p strong,
    .card-glass p .text-accent,
    .card-glass p span {
        display: inline !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        float: none !important;
    }

    .card-glass {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        text-align: left;
    }

    .card-glass h3 {
        font-size: 14pt;
        margin: 0;
        font-family: 'Playfair Display', serif;
    }

    .card-glass h4 {
        font-size: 11pt;
        color: #555;
        margin: 0.3rem 0;
    }

    .text-accent {
        color: #2563eb !important;
    }

    /* 8. Research: Horizontal Card Layout */
    .research-grid {
        display: block !important;
        /* One card per row */
        width: 100%;
    }

    .card-research {
        border: 1px solid #e5e7eb !important;
        border-radius: 8px;
        page-break-inside: avoid;
        background: #fff !important;
        display: flex !important;
        /* Horizontal Flex */
        flex-direction: row !important;
        align-items: center;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    .card-header {
        background: #f0fdfa !important;
        color: #0f766e !important;
        padding: 1.5rem;
        border-bottom: none;
        /* Removed split */
        border-right: 1px solid #e5e7eb;
        width: 30%;
        /* Fixed width for header part */
        text-align: center;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    /* Microscope Icon: Fixed & Non-overlapping */
    .card-header i.icon-bg {
        position: static !important;
        /* No absolute positioning */
        font-size: 2.5rem !important;
        color: #2563eb !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1rem;
        display: block;
    }

    .card-header h3 {
        font-size: 13pt;
        margin: 0;
        line-height: 1.3;
    }

    .card-body {
        padding: 1.5rem;
        text-align: left;
        flex: 1;
    }

    .badge {
        display: inline-block;
        background: #fff !important;
        color: #2563eb !important;
        border: 1px solid #2563eb;
        padding: 0.2rem 0.6rem;
        font-size: 8pt;
        margin-top: 0.5rem;
    }

    /* 9. Skills: Grid Layout */
    .skill-category {
        border: 1px solid #e5e7eb;
        padding: 1rem;
        border-radius: 8px;
        background: #fff;
        text-align: center;
    }

    .skill-category h3 {
        font-size: 12pt;
        border-bottom: 2px solid #2563eb;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        color: #111;
        display: inline-block;
        min-width: 50%;
    }

    /* 10.5. Credentials: Print Layout */
    .credentials-section {
        page-break-inside: avoid;
    }

    .resume-cta-content {
        display: block !important;
        text-align: center;
    }

    .resume-cta-actions {
        display: none !important;
    }

    .credentials-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .credential-card {
        border: 1px solid #e5e7eb !important;
        border-radius: 8px;
        background: #fff !important;
        padding: 1rem;
        text-align: center;
    }

    .credential-icon {
        display: none !important;
    }

    /* 11. Contact Section Layout */
    .contact-section {
        border-top: 4px double #e5e7eb;
        padding-top: 3rem !important;
        margin-top: 4rem;
        text-align: center;
        page-break-before: always !important;
        /* Force page break before contact section */
    }

    .contact-wrapper {
        display: block !important;
        page-break-inside: avoid !important;
    }

    .contact-info h2 {
        display: none;
    }

    .contact-details {
        display: flex;
        justify-content: center;
        gap: 3rem;
        flex-wrap: wrap;
    }

    .detail-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 11pt;
    }

    .detail-item i {
        color: #2563eb !important;
    }

    /* Ensure links are clickable and visible */
    .detail-item a {
        text-decoration: underline;
        /* Visual cue */
        color: #2563eb !important;
        font-weight: 600;
    }

    /* Hide URL text expansion */
    a[href^="http"]:after {
        content: "";
    }
}

/* Document Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-color);
    position: absolute;
    top: 15px;
    right: 25px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- Document Modal Iframe --- */
#modal-iframe {
    height: 60vh;
    max-height: 500px;
}

/* Document Actions (Icons) */
.timeline-content {
    position: relative;
}

.credential-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doc-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

/* Reserve space so card titles never run under the icons */
.timeline-content .doc-actions~h3 {
    padding-right: 100px;
}

/* Center at bottom for Credentials only */
.credential-card .doc-actions {
    position: static;
    justify-content: center;
    margin-top: auto;
    padding-top: 1.5rem;
}

.doc-actions a,
.doc-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.doc-actions a:hover,
.doc-actions button:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8; /* Darker shade of accent */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ============================================
   Digital Business Card Modal
   ============================================ */

.biz-card-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 420px;
    position: relative;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(37, 99, 235, 0.08);
}

#biz-card-modal.show .biz-card-content {
    transform: translateY(0) scale(1);
}

/* Profile Photo */
.biz-card-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease;
}

.biz-card-photo:hover {
    transform: scale(1.05);
}

.biz-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name */
.biz-card-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

/* Title */
.biz-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Pitch */
.biz-card-pitch {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* Action Buttons */
.biz-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.biz-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(37, 99, 235, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.biz-card-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.biz-card-btn-accent {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.biz-card-btn-accent:hover {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

/* Close Button */
.close-biz-card {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--light-text);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-biz-card:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .biz-card-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .biz-card-photo {
        width: 100px;
        height: 100px;
    }

    .biz-card-name {
        font-size: 1.5rem;
    }
}
