:root {
    /* Dark theme colors - permanent dark mode */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #fafafa; /* Light text for maximum contrast */
    --text-secondary: #e8e8e8; /* Light text */
    --text-muted: #c0c0c0; /* Light muted text */
    --color-1: 0 100% 63%;
    --color-2: 270 100% 63%;
    --color-3: 210 100% 63%;
    --color-4: 195 100% 63%;
    --color-5: 90 100% 63%;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #404040;
    --sidebar-bg: #252525;
    --card-bg: #2d2d2d;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw; /* Ensure body doesn't exceed viewport width */
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Prevent horizontal scrolling at root level */
    max-width: 100vw;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Smooth scrolling for better UX */
}

/* Global scrollbar control:
   - Hide scrollbars for all inner elements to avoid extra inner bars.
   - Re-enable scrollbar only for the root (html), so there is exactly
     one visible vertical scrollbar on the right. */

* {
    scrollbar-width: none;        /* Firefox: hide by default */
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;                    /* WebKit (Chrome, Edge, Safari): hide by default */
}

html {
    scrollbar-width: thin;        /* Re-enable scrollbar on root only */
}

html::-webkit-scrollbar {
    width: 8px;                   /* Visible main scrollbar */
    height: 8px;
}

/* Unified background - applied to all pages (fallback if particles don't load) */
body,
body .container {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 25%, #16213e 50%, #0f3460 75%, #0a0a1a 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    background-attachment: fixed;
    position: relative;
}


/* Particles Background */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.5s ease;
    background: #171738; /* Deep navy blue base for particles matching the image */
}


.particles-background canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* Ensure home page has deep navy background */
body.home-page-active .particles-background,
#home-page.active ~ .particles-background {
    background: #171738 !important; /* Deep navy blue for home page - matching the image */
}


/* Loading Page Styles */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-page.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: center;
}

/* Solar Loader Styles */
.solar-loader-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.solar-loader {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: tilt 10s infinite linear;
}

/* Sun */
.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    box-shadow: 0 0 40px rgba(255, 200, 0, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) translateZ(30px);
    z-index: 10;
}

[data-theme="dark"] .sun {
    background: linear-gradient(135deg, #fde047 0%, #fb923c 100%);
}

/* Diagonal Axis Line */
.solar-loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 1.5px;
    background: linear-gradient(to right, rgba(163, 163, 163, 0.7), rgba(115, 115, 115, 0.7));
    transform: translate(-50%, -50%) rotate(38deg);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    z-index: 0;
}

[data-theme="dark"] .solar-loader::before {
    background: linear-gradient(to right, rgba(115, 115, 115, 0.6), rgba(163, 163, 163, 0.6));
}

/* Planet Orbit Container */
.planet-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(163, 163, 163, 0.3);
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(20deg);
}

[data-theme="dark"] .planet-orbit {
    border-color: rgba(115, 115, 115, 0.7);
}

/* Planet */
.planet {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%) rotateX(15deg);
    box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.6), inset 4px 4px 8px rgba(255, 255, 255, 0.2);
}

.planet::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(2px);
    opacity: 0.6;
    top: 25%;
    left: 25%;
}

/* Saturn's Ring */
.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(to right, rgba(163, 163, 163, 0.8), rgba(115, 115, 115, 0.8));
    opacity: 0.8;
    transform: translate(-50%, -50%) rotate(25deg);
}

[data-theme="dark"] .planet-ring {
    background: linear-gradient(to right, rgba(115, 115, 115, 0.8), rgba(163, 163, 163, 0.8));
}

/* Planet Colors */
.planet-mercury {
    background: linear-gradient(135deg, #6b7280 0%, #1f2937 100%);
}

[data-theme="dark"] .planet-mercury {
    background: linear-gradient(135deg, #d1d5db 0%, #4b5563 100%);
}

.planet-venus {
    background: linear-gradient(135deg, #facc15 0%, #a16207 100%);
}

[data-theme="dark"] .planet-venus {
    background: linear-gradient(135deg, #fde047 0%, #ca8a04 100%);
}

.planet-earth {
    background: linear-gradient(135deg, #38bdf8 0%, #1e3a8a 100%);
}

[data-theme="dark"] .planet-earth {
    background: linear-gradient(135deg, #7dd3fc 0%, #1e40af 100%);
}

.planet-mars {
    background: linear-gradient(135deg, #f87171 0%, #991b1b 100%);
}

[data-theme="dark"] .planet-mars {
    background: linear-gradient(135deg, #fca5a5 0%, #dc2626 100%);
}

.planet-jupiter {
    background: linear-gradient(135deg, #fbbf24 0%, #92400e 100%);
}

[data-theme="dark"] .planet-jupiter {
    background: linear-gradient(135deg, #fcd34d 0%, #b45309 100%);
}

.planet-saturn {
    background: linear-gradient(135deg, #fb923c 0%, #9a3412 100%);
}

[data-theme="dark"] .planet-saturn {
    background: linear-gradient(135deg, #fdba74 0%, #c2410c 100%);
}

.planet-uranus {
    background: linear-gradient(135deg, #5eead4 0%, #155e75 100%);
}

[data-theme="dark"] .planet-uranus {
    background: linear-gradient(135deg, #99f6e4 0%, #0e7490 100%);
}

.planet-neptune {
    background: linear-gradient(135deg, #3b82f6 0%, #1e1b4b 100%);
}

[data-theme="dark"] .planet-neptune {
    background: linear-gradient(135deg, #60a5fa 0%, #1e40af 100%);
}

/* Animations */
@keyframes tilt {
    0%, 100% {
        transform: rotateX(10deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(-10deg) rotateY(10deg);
    }
}

@keyframes orbit3d {
    0% {
        transform: translate(-50%, -50%) rotateX(20deg) rotateY(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(20deg) rotateY(-360deg);
    }
}

/* Responsive */
/* Only apply loader size adjustments on very small screens */
@media (max-width: 600px) {
    .solar-loader-container {
        width: 300px;
        height: 300px;
    }
    
    .solar-loader::before {
        width: 300px;
    }
    
    .sun {
        width: 30px;
        height: 30px;
    }
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: visible; /* Allow vertical scrolling */
    width: 100%;
    max-width: 100vw; /* Ensure container doesn't exceed viewport width */
    box-sizing: border-box;
}

.main-container-hidden {
    display: none !important;
}

/* Sidebar Styles */
.sidebar {
    display: none !important;
    width: 0;
}

/* Ensure text visibility on gradient background */
body .logo-text,
body .header-link .header-text {
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.logo-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-header .theme-toggles {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.theme-toggles {
    display: flex;
    gap: 0.5rem;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

.theme-btn:hover {
    opacity: 0.8;
}

.about-section {
    margin-top: 0;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.about-text {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.;
}

.about-text .highlight {
    color: var(--accent);
    font-weight: 500;
}

/* Sidebar About Me title */
.sidebar-about-title {
    text-align: start;
    font-size: 0.90rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(black);
    margin-top: -1rem;   /* reduced to move section up */
    margin-bottom: 0.5rem; /* space above about text */
    padding-left: 0.75rem; /* slight indent to the left */
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;  /* increased spacing between buttons */
    margin-bottom: 2rem;
}

/* Interactive Hover Button for Sidebar Nav */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: flex-start;
}

.nav-link .nav-text {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-link .nav-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.nav-link:hover .nav-text {
    transform: translateX(12px);
    opacity: 0;
}

.nav-link:hover .nav-hover-content {
    transform: translateX(0);
    opacity: 1;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.nav-link.active::before {
    opacity: 1;
}

.nav-link.active .nav-text,
.nav-link.active .nav-hover-content {
    color: white;
}

.nav-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.nav-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-arrow {
    transform: translateX(2px);
}

.stay-connected {
    margin-top: auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.social-icon {
    font-size: 1.1rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 0;
    padding: 2.5rem 3rem 1.5rem 3rem; /* Reduced bottom padding to minimize empty space */
    max-width: 100%;
    background-color: transparent;
    transition: padding 0.3s ease;
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* Prevent horizontal scroll while allowing vertical scroll */
    overflow-y: visible; /* Ensure content is not clipped vertically */
    box-sizing: border-box;
}

/* Full width for home page */
.main-content #home-page.active {
    margin: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    padding-bottom: 0;
}

/* Adjust main content padding slightly for smaller screens while maintaining wide layout */
@media (max-width: 1600px) {
    .main-content {
        padding: 2.5rem 2.5rem 1.5rem 2.5rem; /* Reduced bottom padding */
    }
}

@media (max-width: 1400px) {
    .main-content {
        padding: 2rem 2rem 1.5rem 2rem; /* Reduced bottom padding */
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 2rem 1.75rem 1.5rem 1.75rem; /* Reduced bottom padding */
    }
}

/* Keep horizontal layout for laptops - only adjust padding for very small screens */
@media (max-width: 600px) {
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1.5rem 1rem 1.5rem; /* Reduced bottom padding */
    }
    
    .main-content #home-page.active {
        margin: 0;
        margin-bottom: 0;
        width: 100%;
        padding-bottom: 0;
    }
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: none; /* Removed border */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    background: transparent; /* No background strip */
}

/* Transparent header with unified background - no backdrop blur */
.main-header {
    background-color: transparent;
    border-bottom: none; /* Removed border to eliminate background strip */
    backdrop-filter: none; /* Removed backdrop filter */
}

/* Light theme removed - dark mode only */


.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 1.5rem; /* Increased gap for better spacing between all buttons */
    flex-wrap: nowrap !important; /* Force single horizontal line - no wrapping */
    box-sizing: border-box;
    overflow-x: auto; /* Allow horizontal scrolling on very small screens if needed */
}

.header-theme-toggles {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-theme-toggles .theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.header-theme-toggles .theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.header-theme-toggles .theme-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Interactive Hover Button for Top Nav */
.header-link {
    position: relative;
    width: auto;
    min-width: auto; /* Remove fixed min-width to allow flexible sizing */
    cursor: pointer;
    overflow: visible;
    border-radius: 12px;
    padding: 0.6rem 1.4rem; /* Adequate padding matching external monitor layout */
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 1rem; /* Standard size for consistency */
    display: inline-flex; /* Changed to inline-flex for better text fitting */
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent buttons from being compressed */
    white-space: nowrap; /* Prevent text wrapping inside buttons */
    gap: 0.5rem; /* Good spacing */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent shrinking */
}

.header-link .header-text {
    display: inline-block;
    color: #ffffff;
    transform: translateX(0);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
}

.header-link .header-arrow {
    display: inline-block;
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
    margin-left: 0;
    white-space: nowrap;
}

.header-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.header-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.header-link:active {
    transform: translateY(0px) scale(0.98); /* Pressed state with slight scale down */
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease; /* Quick transition for active state */
}

.header-link:hover .header-text {
    opacity: 1;
    transform: translateX(0);
}

.header-link:hover .header-arrow {
    opacity: 1;
    transform: translateX(0);
    margin-left: 0.5rem;
}

.header-link.active {
    background: linear-gradient(135deg, #a78bfa, #4f46e5);
    box-shadow: 0 6px 24px rgba(167, 139, 250, 0.5);
}

.header-link.active::before {
    opacity: 1;
    background: linear-gradient(135deg, #a78bfa, #4f46e5);
}

.header-link.active .header-text {
    color: white;
}

.header-link.active .header-arrow {
    opacity: 1;
    color: white;
    transform: translateX(0);
    margin-left: 0.5rem;
}

.theme-toggle-header {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.theme-toggle-header:hover {
    opacity: 0.8;
}

/* Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

/* Futuristic Hero Section */
#home-page {
    position: relative;
    z-index: 1;
    min-height: auto;
    background: transparent; /* Removed static dark panel - content now sits directly on animated network background */
    padding: 0;
    padding-bottom: 0;
    overflow: visible; /* Changed from hidden to visible to prevent clipping of 3D image and content */
    width: 100%;
    margin: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Ensure particles are more visible on home page */
#home-page ~ .particles-background,
.particles-background {
    opacity: 1;
}

#home-page .particles-background canvas {
    opacity: 1;
}















.futuristic-hero {
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr minmax(380px, 500px); /* Wider columns matching external monitor layout */
    gap: 3rem; /* Increased gap for spacious horizontal layout */
    width: 100%;
    max-width: 1600px; /* Wider max-width for consistent layout across all screens */
    margin: 0 auto; /* Center the hero section */
    padding: 2rem 2rem 1rem 2rem; /* Reduced bottom padding to minimize empty space */
    align-items: start;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    background: transparent; /* Remove any static background panel */
    overflow: visible !important; /* Critical: Allow folder animations and 3D elements to display fully */
    min-height: auto; /* Let height be determined by content */
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    padding-top: 3.25rem; /* Increased padding-top to move content down more (1.25rem = 20px) */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible; /* Changed from hidden to visible to prevent clipping - only inner decorative elements should clip */
    z-index: 2;
    margin-top: 1rem; /* Moved down slightly - 2 spacing units */
}

.profile-card {
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #3b82f6, #8b5cf6, transparent);
    animation: border-line-top 8s linear infinite;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #8b5cf6, #3b82f6, #8b5cf6, transparent);
    animation: border-line-right 8s linear infinite 2s;
    z-index: 10;
    border-radius: 0 24px 24px 0;
}

@keyframes border-line-top {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    25% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes border-line-right {
    0% { 
        transform: translateY(-100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    25% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Add animated line for bottom and left borders */
.profile-card-border-bottom,
.profile-card-border-left {
    position: absolute;
    z-index: 10;
}

.profile-card-border-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #3b82f6, #8b5cf6, transparent);
    animation: border-line-bottom 8s linear infinite 4s;
    border-radius: 0 0 24px 24px;
}

.profile-card-border-left {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #8b5cf6, #3b82f6, #8b5cf6, transparent);
    animation: border-line-left 8s linear infinite 6s;
    border-radius: 24px 0 0 24px;
}

@keyframes border-line-bottom {
    0% { 
        transform: translateX(100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    25% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes border-line-left {
    0% { 
        transform: translateY(100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    25% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.profile-image-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 1.5rem;
    margin-top: -0.50rem; /* Additional spacing from top to move photo down */
}

.profile-image-glow {
    position: absolute;
    inset: -15px;
    background: 
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 1), rgba(139, 92, 246, 0.7) 30%, rgba(150, 105, 255, 0.3) 50%, transparent 80%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.7) 30%, rgba(59, 130, 246, 0.3) 50%, transparent 70%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 1), rgba(6, 182, 212, 0.7) 30%, rgba(6, 182, 212, 0.3) 50%, transparent 70%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.7) 30%, rgba(59, 130, 246, 0.3) 50%, transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.4) 40%, transparent 60%);
    border-radius: 50%;
    opacity: 1;
    filter: blur(18px);
    animation: pulse-glow 5s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.95; 
        transform: scale(1);
        filter: blur(16px);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.15);
        filter: blur(18px);
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.profile-info {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-name {
    font-size: 1.31rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.11rem;
    color: #a78bfa;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.profile-location {
    font-size: 1.11rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 25px;
    height: 25px;
}

.social-icon:hover {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.get-in-touch-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    margin-top: auto;
    margin-top: 1.5rem;
}

.get-in-touch-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.get-in-touch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.get-in-touch-btn:hover svg {
    transform: translateX(4px);
}

/* Main Content */
.hero-main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    width: 100%;
    max-width: none; /* Remove any max-width constraint to allow full width */
    overflow-wrap: break-word;
    z-index: 2;
    overflow: visible; /* Ensure no clipping of content */
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(
        90deg,
        /* Cycle 1: Blue wave (0-50%) - traveling left to right */
        #3b82f6 0%,        /* Medium blue - wave starts */
        #3b82f6 12.5%,     /* Medium blue continues */
        #2563eb 18.75%,    /* Transition to light navy blue */
        #a78bfa 25%,       /* Transition to light pinkish purple */
        #8b5cf6 31.25%,    /* Current pinkish purple */
        #8b5cf6 37.5%,     /* Current pinkish purple continues */
        #3b82f6 43.75%,    /* Full blue begins */
        #3b82f6 50%,       /* Full blue - Cycle 1 complete */
        /* Cycle 2: Purple wave (50-100%) - traveling left to right */
        #3b82f6 50%,       /* Light pinkish purple - Cycle 2 starts */
        #2563eb 62.5%,     /* Light pinkish purple continues */
        #2563eb 68.75%,    /* Transition to regular purple */
        #a78bfa 75%,       /* Regular purple */
        #a78bfa 81.25%,    /* Regular purple continues */
        #8b5cf6 87.5%,     /* Regular purple */
        #8b5cf6 93.75%,    /* Regular purple continues */
        #8b5cf6 100%,      /* Regular purple - Cycle 2 complete */
        /* Seamless loop back to Cycle 1 */
        #3b82f6 100%       /* Reset point - loops back to start */
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: continuous-wave 8s linear infinite;
}

/* Continuous left-to-right wave animation - smooth, never reverses */
@keyframes continuous-wave {
    0% { 
        /* Cycle 1: Blue wave begins from left */
        background-position: 0% 50%;
    }
    50% { 
        /* Cycle 1: Blue wave completes - entire name is blue */
        background-position: 50% 50%;
    }
    100% { 
        /* Cycle 2: Purple wave completes - entire name is purple, seamless loop to 0% */
        background-position: 100% 50%;
    }
}


.hero-tagline {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.6;
    display: inline-block;
    width: 100%;
}

/* Professional Overview Section */
.hero-professional-overview {
    margin-bottom: 2.5rem;
    max-width: 900px; /* Increased from 600px to allow wider text column on laptops */
}

.overview-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
}



.tagline-prefix {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 500;
    display: inline;
    white-space: normal;
    margin-right: 0.5rem;
}

.tagline-highlight {
    color: #a78bfa;
    font-weight: 600;
    display: inline;
    font-size: 1.125rem;
    line-height: 1.6;
    transition: opacity 0.5s ease-in-out;
    white-space: normal;
}

.tagline-highlight.fade-out {
    opacity: 0;
}

.tagline-highlight.fade-in {
    opacity: 1;
}

#roleRotator {
    display: inline;
}

.hero-description-futuristic {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 900px; /* Increased from 600px to allow wider text column on laptops */
    margin-bottom: 2.5rem;
}

/* Statistics */
.hero-stats {
    display: flex;
    flex-direction: row;
    gap: 3rem; /* Increased gap matching external monitor layout */
    margin-bottom: 2.5rem;
    flex-wrap: nowrap; /* Keep horizontal layout consistent */
}

.stat-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevent stats from shrinking and wrapping */
    min-width: 0; /* Allow content to determine width */
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Action Buttons */

.action-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.primary-action {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.secondary-action {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6); /* Same gradient as primary-action */
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3); /* Same shadow as primary-action */
    border: none; /* Removed border to match primary */
}

.secondary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5); /* Same hover shadow as primary-action */
}

/* Technical Illustration */
/* Analytics Chart Container */
.analytics-chart-container {
    position: relative;
    width: 500px;
    min-height: 625px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.analytics-chart-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chart-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.chart-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.chart-time-select {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.chart-time-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.chart-time-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}


.chart-content {
    margin-bottom: 1.5rem;
}

.chart-bars-container {
    width: 100%;
    height: 280px;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0 1rem;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.bar-value {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar-group:hover .bar-value {
    opacity: 1;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chart-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-comparison {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.chart-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.metric-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.metric-trend {
    font-size: 1rem;
    font-weight: 600;
}










.tech-illustration {
    position: relative;
    width: 100%;
    max-width: 500px; /* Larger size matching external monitor layout */
    height: auto; /* Let height be determined by aspect ratio */
    min-width: 380px; /* Wider minimum width for spacious layout */
    min-height: 380px; /* Adequate minimum height */
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    z-index: 2;
    margin-top: 6rem; /* Proper top margin for better visual spacing */
    overflow: visible; /* Changed to visible to show full 3D model with orbiting icons */
    margin-right: 0;
    margin-left: auto; /* Center align within its grid column */
    box-sizing: border-box;
}

.tech-circle {
    width: 90%; /* Full utilization of available space */
    max-width: 400px; /* Larger size matching external monitor */
    height: 90%;
    max-height: 400px;
    aspect-ratio: 1 / 1; /* Maintain circular shape */
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 20s linear infinite;
    overflow: visible; /* Changed to visible to show orbiting icons */
    box-sizing: border-box;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.laptop-icon {
    width: 200px; /* Larger size matching external monitor layout */
    height: 180px; /* Increased to accommodate keyboard (167px + 45px) */
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.laptop-keyboard {
    width: 100%;
    height: 75px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.keyboard-row {
    display: flex;
    gap: 0.15rem;
    justify-content: center;
    align-items: center;
}

.key {
    flex: 1;
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(139, 92, 246, 0.1);
    min-width: 8px;
    max-width: 12px;
}

.key-space {
    flex: 1;
    max-width: 60px;
    height: 6px;
    margin: 0 auto;
}

.laptop-base {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 8px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.laptop-screen {
    width: 100%;
    height: 100px; /* Increased by 25% from 80px */
    background: #0a0a1a;
    border-radius: 4px 4px 0 0;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
    position: relative;
}

/* Animated Dashboard */
/* Chart Container - Bar Chart + Line Graph Overlay */
.chart-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0.5rem;
}

.bar-chart-background {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.bar-chart-background .bar {
    flex: 1;
    background: linear-gradient(to top, #10b981, #059669);
    border-radius: 2px 2px 0 0;
    animation: bar-pulse 2s ease-in-out infinite;
    min-height: 20%;
}

.bar-chart-background .bar-1 {
    height: 45%;
    animation-delay: 0s;
    background: linear-gradient(to top, #10b981, #059669);
}

.bar-chart-background .bar-2 {
    height: 65%;
    animation-delay: 0.2s;
    background: linear-gradient(to top, #3b82f6, #2563eb);
}

.bar-chart-background .bar-3 {
    height: 40%;
    animation-delay: 0.4s;
    background: linear-gradient(to top, #8b5cf6, #7c3aed);
}

.bar-chart-background .bar-4 {
    height: 75%;
    animation-delay: 0.6s;
    background: linear-gradient(to top, #10b981, #059669);
}

.bar-chart-background .bar-5 {
    height: 55%;
    animation-delay: 0.8s;
    background: linear-gradient(to top, #3b82f6, #2563eb);
}

@keyframes bar-pulse {
    0%, 100% { opacity: 0.8; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.05); }
}

.line-graph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 0.5rem;
}

.line-graph-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-line 4s ease-in-out infinite;
}

@keyframes draw-line {
    0% { 
        stroke-dashoffset: 300; 
        opacity: 0; 
    }
    50% { 
        stroke-dashoffset: 0; 
        opacity: 1; 
    }
    100% { 
        stroke-dashoffset: 0; 
        opacity: 0.9; 
    }
}

.line-point {
    animation: point-pulse 2s ease-in-out infinite;
}

@keyframes point-pulse {
    0%, 100% { opacity: 0.6; r: 2; }
    50% { opacity: 1; r: 2.5; }
}

.dashboard-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.dashboard-metric .metric-label {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 35px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-metric .metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.dashboard-metric .metric-fill {
    height: 100%;
    border-radius: 4px;
    animation: dashboard-fill 3s ease-in-out infinite;
    position: relative;
}

.dashboard-metric:nth-child(1) .metric-fill {
    background: linear-gradient(90deg, #00d9ff, #00a8cc);
    width: 0%;
    animation-name: dashboard-fill-1;
}

.dashboard-metric:nth-child(2) .metric-fill {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    width: 0%;
    animation-name: dashboard-fill-2;
}

.dashboard-metric:nth-child(3) .metric-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    width: 0%;
    animation-name: dashboard-fill-3;
}

@keyframes dashboard-fill-1 {
    0%, 100% { width: 75%; }
    50% { width: 95%; }
}

@keyframes dashboard-fill-2 {
    0%, 100% { width: 85%; }
    50% { width: 98%; }
}

@keyframes dashboard-fill-3 {
    0%, 100% { width: 70%; }
    50% { width: 88%; }
}

.dashboard-metric .metric-value {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    min-width: 28px;
    text-align: right;
    animation: dashboard-pulse 3s ease-in-out infinite;
}

@keyframes dashboard-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Orbiting Icons - Data Folder Style */
.floating-icon {
    position: absolute;
    width: 80px; /* Larger size matching external monitor layout */
    height: 80px; /* Larger size for better visibility */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    animation: orbit 8s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 0;
    overflow: visible; /* Ensure icon content is not clipped */
}

.floating-icon svg {
    width: 45px; /* Larger size matching external monitor layout */
    height: 45px; /* Proportionally larger */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Styling for image icons in orbiting circles */
.orbiting-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 12px; /* Padding to fit within circle */
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: block;
    overflow: visible; /* Ensure images are not clipped */
}

/* 3 icons evenly spaced at 120 degrees apart (360/3 = 120) */
/* All icons orbit around the center of tech-circle */
/* Radius adjusted for better laptop screen compatibility */
.icon-1 {
    /* Starting at 0 degrees (top) */
    top: 50%;
    left: 50%;
    background: linear-gradient(135deg, #00d9ff, #00a8cc);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.4);
    animation: orbit-icon-1 15s linear infinite;
    overflow: visible; /* Ensure icon content is not clipped */
}

.icon-2 {
    /* Starting at 120 degrees */
    top: 50%;
    left: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    animation: orbit-icon-2 15s linear infinite;
    overflow: visible; /* Ensure icon content is not clipped */
}

.icon-3 {
    /* Starting at 240 degrees */
    top: 50%;
    left: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    animation: orbit-icon-3 15s linear infinite;
    overflow: visible; /* Ensure icon content is not clipped */
}

/* Orbit animations - 3 icons evenly spaced, rotating around center */
/* Each icon maintains its position relative to center while rotating */
/* Radius matches the larger tech-circle size for wider layout */
@keyframes orbit-icon-1 {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) translateY(-170px) rotate(0deg); /* Larger radius for wider layout */
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) translateY(-170px) rotate(-360deg);
    }
}

@keyframes orbit-icon-2 {
    0% { 
        transform: translate(-50%, -50%) rotate(120deg) translateY(-170px) rotate(-120deg); /* Larger radius */
    }
    100% { 
        transform: translate(-50%, -50%) rotate(480deg) translateY(-170px) rotate(-480deg);
    }
}

@keyframes orbit-icon-3 {
    0% { 
        transform: translate(-50%, -50%) rotate(240deg) translateY(-170px) rotate(-240deg); /* Larger radius */
    }
    100% { 
        transform: translate(-50%, -50%) rotate(600deg) translateY(-170px) rotate(-600deg);
    }
}

/* Adjust orbit radius for smaller screens by scaling the transform */
@media (max-width: 1600px) {
    .floating-icon.icon-1 {
        animation: orbit-icon-1-small 15s linear infinite;
    }
    .floating-icon.icon-2 {
        animation: orbit-icon-2-small 15s linear infinite;
    }
    .floating-icon.icon-3 {
        animation: orbit-icon-3-small 15s linear infinite;
    }
}

@media (max-width: 1400px) {
    .floating-icon.icon-1 {
        animation: orbit-icon-1-smaller 15s linear infinite;
    }
    .floating-icon.icon-2 {
        animation: orbit-icon-2-smaller 15s linear infinite;
    }
    .floating-icon.icon-3 {
        animation: orbit-icon-3-smaller 15s linear infinite;
    }
}

@media (max-width: 1200px) {
    .floating-icon.icon-1 {
        animation: orbit-icon-1-smallest 15s linear infinite;
    }
    .floating-icon.icon-2 {
        animation: orbit-icon-2-smallest 15s linear infinite;
    }
    .floating-icon.icon-3 {
        animation: orbit-icon-3-smallest 15s linear infinite;
    }
}

/* Adjusted orbit animations for different screen sizes - still maintaining wide layout */
@keyframes orbit-icon-1-small {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateY(-160px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateY(-160px) rotate(-360deg); }
}
@keyframes orbit-icon-2-small {
    0% { transform: translate(-50%, -50%) rotate(120deg) translateY(-160px) rotate(-120deg); }
    100% { transform: translate(-50%, -50%) rotate(480deg) translateY(-160px) rotate(-480deg); }
}
@keyframes orbit-icon-3-small {
    0% { transform: translate(-50%, -50%) rotate(240deg) translateY(-160px) rotate(-240deg); }
    100% { transform: translate(-50%, -50%) rotate(600deg) translateY(-160px) rotate(-600deg); }
}

@keyframes orbit-icon-1-smaller {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateY(-150px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateY(-150px) rotate(-360deg); }
}
@keyframes orbit-icon-2-smaller {
    0% { transform: translate(-50%, -50%) rotate(120deg) translateY(-150px) rotate(-120deg); }
    100% { transform: translate(-50%, -50%) rotate(480deg) translateY(-150px) rotate(-480deg); }
}
@keyframes orbit-icon-3-smaller {
    0% { transform: translate(-50%, -50%) rotate(240deg) translateY(-150px) rotate(-240deg); }
    100% { transform: translate(-50%, -50%) rotate(600deg) translateY(-150px) rotate(-600deg); }
}

@keyframes orbit-icon-1-smallest {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateY(-140px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateY(-140px) rotate(-360deg); }
}
@keyframes orbit-icon-2-smallest {
    0% { transform: translate(-50%, -50%) rotate(120deg) translateY(-140px) rotate(-120deg); }
    100% { transform: translate(-50%, -50%) rotate(480deg) translateY(-140px) rotate(-480deg); }
}
@keyframes orbit-icon-3-smallest {
    0% { transform: translate(-50%, -50%) rotate(240deg) translateY(-140px) rotate(-240deg); }
    100% { transform: translate(-50%, -50%) rotate(600deg) translateY(-140px) rotate(-600deg); }
}

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

/* Responsive Design - Maintain wider layout, only adjust slightly for smaller screens */
@media (max-width: 1600px) {
    .futuristic-hero {
        grid-template-columns: minmax(300px, 380px) 1fr minmax(360px, 480px); /* Maintain wide layout with slight reduction */
        padding: 2rem 1.75rem; /* Slightly reduced padding */
        gap: 2.5rem; /* Still spacious gap */
        max-width: 100%; /* Use full width */
    }
    
    .tech-illustration {
        width: 100%;
        max-width: 480px;
        min-width: 360px;
        margin-top: 5.5rem;
        overflow: visible;
    }
    
    .tech-circle {
        max-width: 380px;
        max-height: 380px;
        width: 88%;
        height: 88%;
    }
    
    .hero-stats {
        gap: 2.5rem; /* Slightly reduced but still spacious */
    }
}

/* Responsive Design - Smaller laptop screens (1400px and below) */
@media (max-width: 1400px) {
    .futuristic-hero {
        grid-template-columns: minmax(280px, 360px) 1fr minmax(340px, 450px); /* Maintain wide layout */
        padding: 2rem 1.5rem;
        gap: 2rem; /* Still good spacing */
    }
    
    .tech-illustration {
        max-width: 450px;
        min-width: 340px;
        margin-top: 5rem;
    }
    
    .tech-circle {
        max-width: 360px;
        max-height: 360px;
    }
    
    .main-content {
        padding: 2rem 2.5rem; /* Slightly reduced but still generous */
    }
    
    .hero-stats {
        gap: 2.25rem;
    }
}

@media (max-width: 1200px) {
    .futuristic-hero {
        grid-template-columns: minmax(260px, 340px) 1fr minmax(320px, 420px); /* Still wide and horizontal */
        padding: 2rem 1.25rem;
        gap: 1.75rem; /* Maintain horizontal spacing */
    }
    
    .tech-illustration {
        max-width: 420px;
        min-width: 320px;
        margin-top: 4.5rem;
        overflow: visible;
    }
    
    .tech-circle {
        max-width: 340px;
        max-height: 340px;
        width: 85%;
        height: 85%;
        overflow: visible;
    }
    
    .main-content {
        padding: 2rem 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .futuristic-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    /* Allow stats to wrap only on very small screens */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Allow action buttons to wrap only on very small screens */
    .hero-action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tech-illustration {
        width: 100%;
        max-width: 500px; /* Increased by 25% from 400px */
        height: 500px; /* Increased by 25% from 400px */
        margin: 2rem auto 0;
        order: -1; /* Show 3D model before content on mobile */
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .overview-heading {
        font-size: 1.125rem;
    }
    
    .overview-text {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tagline-highlight {
        min-width: 250px;
        max-width: 100%;
        font-size: 1rem;
        display: inline;
    }
    
    .tagline-prefix {
        font-size: 1rem;
        display: inline;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .futuristic-hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-tagline {
        white-space: normal;
    }
    
    .tagline-highlight {
        min-width: 200px;
        max-width: 100%;
        font-size: 0.95rem;
        display: inline;
    }
    
    .tagline-prefix {
        font-size: 0.95rem;
        display: inline;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    text-align: center;
}

.hero-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    text-align: left;
    max-width: 100%;
}

.hero-disclaimer {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.9s forwards;
    justify-content: center;
}

/* Default Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gradient Button - Based on React component design */
.gradient-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 11px;
    min-width: 132px;
    padding: 1rem 2.25rem;
    font-size: 1rem;
    line-height: 1.1875;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gradient-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.gradient-button:hover::before {
    left: 100%;
}

.gradient-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.gradient-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.gradient-button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.gradient-button span {
    position: relative;
    z-index: 1;
}

/* Variant style for gradient button */
.gradient-button-variant {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.gradient-button-variant:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

[data-theme="dark"] .gradient-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

[data-theme="dark"] .gradient-button:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

.avatar-container {
    width: 280px;
    height: 320px;          /* extra height to accommodate full image */
    background: #2a2a2a;    /* dark gray background */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.35); /* subtle frame */
}

.hero-profile-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    /* show full image without cropping */
    display: block;
}

/* Typing animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
    animation: typing 2s steps(40, end), blink 0.75s step-end infinite;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Shimmer animations for navigation buttons */
@keyframes spin-around {
    0% {
        transform: translateZ(0) rotate(0deg);
    }
    15%, 35% {
        transform: translateZ(0) rotate(90deg);
    }
    65%, 85% {
        transform: translateZ(0) rotate(270deg);
    }
    100% {
        transform: translateZ(0) rotate(360deg);
    }
}

@keyframes shimmer-slide {
    to {
        transform: translate(100%, 0);
    }
}

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

/* Overview Section */
.overview-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.career-objective {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

/* About Content */
/* About Page Layout */
.about-page-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 0 1rem; /* Reduced left padding to shift content left */
}

.about-content-column {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 0;
    margin-left: 0;
}

.about-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-align: left;
}

.about-content {
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-content p {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: left;
}

.about-stats-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    text-align: left;
    flex-wrap: wrap;
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 100px;
}

.about-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-stat-label {
    font-size: 1rem;
    color: #ffffff;
}

.about-3d-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 2rem;
    max-width: 100%;
    height: fit-content;
}

.realtime-activity-container {
    width: 100%;
    min-height: 500px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Analytics Dashboard Card Styles */
.analytics-dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.analytics-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.dashboard-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.dashboard-badge {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-revenue {
    margin-bottom: 0.875rem;
}

.revenue-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revenue-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.3rem;
}

.revenue-change {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.revenue-change.positive {
    color: #40E5D1;
}

.revenue-change.negative {
    color: #F08083;
}

.change-icon {
    font-size: 0.8rem;
}

.dashboard-chart {
    margin-top: 0.875rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-title-small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-chart-container {
    width: 100%;
    height: 100px;
    overflow-x: auto;
    flex: 1;
}

.dashboard-chart-svg {
    width: 100%;
    height: 100%;
}

.dashboard-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-bar:hover {
    opacity: 1;
    filter: brightness(1.2);
}

/* Donut Chart Card Styles */
.donut-chart-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.donut-chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.3);
}

.donut-header {
    margin-bottom: 1rem;
    text-align: center;
}

.donut-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.donut-chart-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex: 1;
    min-height: 200px;
}

.donut-svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    width: 180px;
    height: 180px;
}

.donut-segment {
    transition: all 0.3s ease;
    cursor: pointer;
}

.donut-segment:hover {
    opacity: 1;
    filter: brightness(1.2);
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.2rem;
}

.donut-center-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.donut-legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.donut-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.donut-legend-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.donut-legend-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.donut-legend-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Line Graph Card Styles */
.line-graph-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.line-graph-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.3);
}

.line-graph-header {
    margin-bottom: 1.25rem;
}

.line-graph-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
}

.line-graph-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.line-graph-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.line-graph-legend {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

.mobile-dot {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.desktop-dot {
    border-color: #9ca3af;
    background: rgba(156, 163, 175, 0.2);
}

.legend-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.legend-value {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.line-graph-periods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.period-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.period-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.period-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.period-item.active .period-indicator {
    opacity: 1;
}

.period-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.period-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.period-green {
    background: #10b981;
}

.period-blue {
    background: #3b82f6;
}

.period-orange {
    background: #f59e0b;
}

.period-size {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.period-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.line-graph-svg-container {
    width: 100%;
    height: 300px;
    margin: 1rem 0;
}

.line-graph-svg {
    width: 100%;
    height: 100%;
}

.chart-area {
    transition: opacity 0.3s ease;
}

.chart-line {
    transition: stroke-dasharray 0.3s ease;
}

.data-point {
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-point-group:hover .data-point {
    r: 5;
    opacity: 1;
}

.axis-label {
    transition: opacity 0.3s ease;
}

.tooltip-group {
    pointer-events: none;
}

.tooltip-box {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.line-graph-metrics {
    margin-top: 1rem;
}

.metrics-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid;
    border-radius: 8px;
    padding: 0.875rem;
    min-width: 100px;
    flex: 1;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.metric-peak {
    border-color: #3b82f6;
}

.metric-average {
    border-color: #f59e0b;
}

.metric-growth {
    border-color: #10b981;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.metric-size {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Light theme styles */























.stats-section {
    display: flex;
    gap: 3rem;
    margin: 3rem auto 0;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1200px;
}

.project-card {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 35px rgba(255, 0, 255, 0.3),
        0 0 50px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-year {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.75rem;
    display: block;
}

.project-description {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-skills-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Projects skills now use .skill-bubble class - see Skills section */

.project-explore {
    margin-top: auto;
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
}

.project-explore:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-explore:active {
    transform: translateY(0);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1200px;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-card {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    width: 62.4px;
    height: 62.4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid var(--accent);
    overflow: hidden;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.skill-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.skill-description {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.skill-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-bubble {
    padding: 0.4rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: default;
}

.skill-bubble:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem auto 0;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

.timeline-node {
    position: absolute;
    left: -1.75rem;
    width: 3rem;
    height: 3rem;
    background-color: #090021;
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-icon {
    font-size: 1.2rem;
}

.timeline-content {
    flex: 1;
    background-color: #090021;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-description {
    color: #ffffff;
    line-height: 1.6;
}

/* Experience Cards (matching project card styles) */
.experience-card {
    flex: 1;
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
}

.experience-card:hover {
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 30px rgba(255, 0, 255, 0.4),
        0 0 40px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

/* Header row: Logo (left) + Title/Content (right) */
.experience-header-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.experience-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.experience-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.experience-company-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.experience-company {
    color: var(--text-primary);
    font-weight: 400;
}

.experience-type-separator {
    color: var(--text-secondary);
    margin: 0 0.25rem;
}

.experience-type {
    color: var(--text-secondary);
    font-weight: 400;
}

.experience-date-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Bullets list */
.experience-bullets {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-bullets li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.experience-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

/* Tool icons */
.experience-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Experience tools now use .skill-bubble class - see Skills section */

/* Bottom: Explore button */
.experience-explore {
    margin-top: auto;
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    align-self: flex-start;
    width: 100%;
}

.experience-explore:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.experience-explore:active {
    transform: translateY(0);
}

/* Responsive adjustments for experience cards */
@media (max-width: 768px) {
    .experience-header-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .experience-logo {
        align-self: flex-start;
    }
    
    .experience-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1000px;
}

.certification-card {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.cert-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.143);
    padding: 8px;
    flex-shrink: 0;
}

.cert-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-issuer {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.cert-year {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.cert-id {
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.cert-description {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Certification tags now use .skill-bubble class - see Skills section */

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1200px;
}

.education-card {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.education-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.education-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.education-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.education-dates {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
}

.education-institution {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.education-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.education-description {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.education-highlight {
    padding: 0.4rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 400;
    transition: all 0.2s ease;
}

.education-highlight:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Contact Section */
/* Contact Page Header */
.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin: 1rem 0 1.5rem 0;
}

.contact-subtitle-container {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-subtitle-container .page-subtitle {
    margin-bottom: 0.5rem;
}

/* Contact Container - Two Column Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem auto 0;
    max-width: 1200px;
}

/* Contact Info Card (Left) */
.contact-info-card {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.contact-info-label {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 25px;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-name {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.contact-title {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.contact-detail-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail-item a:hover {
    color: var(--accent);
}

.contact-availability-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-available-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.available-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.contact-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.contact-social-icon svg {
    width: 30px;
    height: 30px;
}

.contact-social-icon:hover {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    border-color: transparent;
}

/* Contact Form Card (Right) */
.contact-form-card {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.contact-form-label {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 25px;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.contact-form-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0;
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-top: 0.5rem;
}

.contact-submit-btn svg {
    width: 20px;
    height: 20px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Core Competencies Grid */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1000px;
}

.competency-item {
    background-color: #090021;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.competency-item {
    background-color: #090021;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.competency-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow: hidden; /* Prevent backdrop from scrolling */
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 85vh; /* Slightly reduced to ensure scrolling is needed */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-year {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.modal-section-content {
    color: #ffffff;
    line-height: 1.8;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    padding: 0.5rem 0;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.modal-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-top: 0.1rem;
}

/* Responsive Design - Only for very small mobile screens */
@media (max-width: 600px) {
    .hero-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-illustration {
        display: block;
        margin-left: 0;
        margin: 0 auto;
    }
    
    .avatar-container {
        width: 260px;
        height: 300px; /* slightly smaller but still preserves full image */
        margin: 0 auto;
    }
    
    .avatar {
        width: 200px;
        height: 200px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 100;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Responsive adjustments for header navigation - maintain horizontal line on all screen sizes */
@media (max-width: 1600px) {
    .header-nav {
        gap: 1.25rem !important; /* Maintain decent spacing */
    }
    
    .header-link {
        padding: 0.6rem 1.1rem; /* Adequate padding */
        font-size: 0.95rem; /* Keep readable size */
    }
}

@media (max-width: 1400px) {
    .header-nav {
        gap: 1rem !important; /* Maintain spacing */
    }
    
    .header-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .header-nav {
        gap: 0.875rem !important; /* Still maintain spacing, keep horizontal */
        flex-wrap: nowrap !important; /* Keep in one line */
    }
    
    .header-link {
        padding: 0.55rem 0.95rem;
        font-size: 0.875rem;
    }
}

/* Keep horizontal layout on all screens - use horizontal scroll on very small screens if needed */
@media (max-width: 600px) {
    .header-nav {
        gap: 0.75rem !important; /* Maintain spacing on mobile but still horizontal */
        flex-wrap: nowrap !important; /* Keep in one line */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Thin scrollbar on Firefox */
    }
    
    .header-nav::-webkit-scrollbar {
        height: 4px; /* Thin scrollbar on webkit browsers */
    }
    
    .header-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }
    
    /* Only apply smaller button sizes on very small mobile screens */
    .folder-container-neon.compact {
        width: 260px; /* Increased to ensure text fits - slightly smaller than desktop but comfortable */
        height: 170px; /* Increased from 140px */
    }
    
    .folder-container-neon.compact .folder-card-neon {
        padding: 1rem 1.25rem; /* Maintain adequate padding for text */
        min-width: 240px; /* Ensure minimum width */
    }
    
    .about-page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 0 0.5rem; /* Reduced left padding on mobile too */
    }
    
    .about-content-column {
        padding-left: 0;
        margin-left: 0;
    }
    
    .about-3d-column {
        position: static;
        order: -1;
    }
    
    .folder-container-neon.compact .folder-card-neon {
        height: 90px;
        padding: 0.875rem 1rem;
    }
    
    .folder-container-neon.compact .folder-title-neon {
        font-size: 0.875rem; /* Larger font for better readability */
        letter-spacing: 1px;
        padding: 0 0.5rem; /* Add padding to prevent text overflow */
    }
    
    .folder-container-neon.compact .folder-icon-neon {
        width: 1rem;
        height: 1rem;
    }
    
    .hero-action-buttons {
        gap: 1rem;
        justify-content: center;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .logo-icon {
        font-size: 1rem;
    }
    
    .gradient-button {
        min-width: 120px;
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .about-page-title {
        font-size: 1.75rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-stat-number {
        font-size: 1.625rem;
    }
    
    .about-stat-label {
        font-size: 0.9375rem;
    }
    
    .about-stats-section {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .realtime-activity-container {
        min-height: 400px;
        max-height: 500px;
    }
    
    .line-graph-card {
        padding: 1rem;
    }
    
    .line-graph-title {
        font-size: 1.25rem;
    }
    
    .line-graph-svg-container {
        height: 250px;
    }
    
    .metrics-row {
        flex-direction: column;
    }
    
    .metric-card {
        min-width: 100%;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .education-logo {
        width: 100px;
        height: 100px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-section {
        gap: 2rem;
    }
}

/* Cyberpunk 3D Folder Component Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:wght@400;600&display=swap');

@keyframes line-pulse-extend-1 {
    0% { height: 30px; opacity: 0.6; box-shadow: 0 0 10px currentColor, 0 0 15px currentColor; }
    50% { height: 125px; opacity: 1; box-shadow: 0 0 25px currentColor, 0 0 40px currentColor, 0 0 60px currentColor, 0 0 80px currentColor; }
    100% { height: 120px; opacity: 0.95; box-shadow: 0 0 20px currentColor, 0 0 35px currentColor, 0 0 55px currentColor, 0 0 75px currentColor; }
}
@keyframes line-pulse-extend-2 {
    0% { height: 35px; opacity: 0.7; box-shadow: 0 0 10px currentColor, 0 0 15px currentColor; }
    50% { height: 135px; opacity: 1; box-shadow: 0 0 25px currentColor, 0 0 40px currentColor, 0 0 60px currentColor, 0 0 90px currentColor; }
    100% { height: 130px; opacity: 0.95; box-shadow: 0 0 20px currentColor, 0 0 35px currentColor, 0 0 55px currentColor, 0 0 85px currentColor; }
}
@keyframes line-pulse-extend-3 {
    0% { height: 28px; opacity: 0.5; box-shadow: 0 0 10px currentColor, 0 0 15px currentColor; }
    50% { height: 120px; opacity: 0.95; box-shadow: 0 0 25px currentColor, 0 0 40px currentColor, 0 0 60px currentColor, 0 0 80px currentColor; }
    100% { height: 115px; opacity: 0.9; box-shadow: 0 0 20px currentColor, 0 0 35px currentColor, 0 0 55px currentColor, 0 0 75px currentColor; }
}
@keyframes folder-glow {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(0, 255, 255, 0.5),
            0 0 15px rgba(255, 0, 255, 0.4),
            0 0 20px rgba(0, 255, 0, 0.3),
            inset 0 0 8px rgba(0,0,0,0.4);
    }
    50% {
        box-shadow:
            0 0 15px rgba(0, 255, 255, 0.7),
            0 0 25px rgba(255, 0, 255, 0.6),
            0 0 35px rgba(0, 255, 0, 0.5),
            inset 0 0 12px rgba(0,0,0,0.5);
    }
}

.folder-container-neon {
    position: relative;
    width: 280px;
    height: 200px;
    transition: transform 0.6s ease-out;
    perspective: 1500px;
    transform-style: preserve-3d;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
    overflow: visible !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.folder-container-neon.compact {
    width: 300px;
    height: 190px;
    min-height: 190px;
}

.folder-container-neon.compact .folder-card-neon {
    height: 120px;
    padding: 1.125rem 1.75rem;
    bottom: 35px;
    min-width: 280px;
}

.folder-container-neon.compact .doc-sheet {
    bottom: 80px;
    width: 70px;
}

.folder-container-neon.compact .sheet-2 {
    width: 80px;
}

.folder-container-neon.compact .folder-title-neon {
    font-size: 0.9375rem;
    white-space: nowrap;
    text-align: center;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

.folder-container-neon.compact .folder-icon-neon {
    width: 1.25rem;
    height: 1.25rem;
}

.doc-sheet {
    position: absolute;
    bottom: 115px;
    left: 50%;
    width: 80px;
    background: linear-gradient(to top, 
        rgba(10, 10, 30, 0.85) 0%,
        rgba(10, 10, 30, 0.75) 30%,
        rgba(10, 10, 30, 0.6) 60%,
        rgba(10, 10, 30, 0.4) 100%
    );
    border-radius: 4px 4px 0 0;
    transform-origin: bottom center;
    opacity: 0.7;
    transition: height 0.5s ease-out, opacity 0.5s ease-out, box-shadow 0.5s ease-out, transform 0.6s ease-out;
    border: 2px solid currentColor;
    border-bottom: none;
    box-shadow: 
        0 0 10px currentColor, 
        0 0 15px currentColor,
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    color: white;
    pointer-events: none;
    overflow: visible !important;
    clip-path: none !important;
    z-index: 3;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sheet-1 {
    color: #00ffff;
    height: 30px;
    transform: translateX(calc(-50% - 55px)) rotate(-12deg);
    z-index: 4; 
    opacity: 0.7;
    background: linear-gradient(to top, 
        rgba(0, 255, 255, 0.15) 0%,
        rgba(10, 10, 30, 0.6) 40%,
        rgba(10, 10, 30, 0.8) 100%
    );
    border-color: #00ffff;
    box-shadow: 
        0 0 10px currentColor, 
        0 0 15px currentColor,
        inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.sheet-2 {
    color: #ff00ff;
    height: 35px;
    transform: translateX(-50%) rotate(0deg);
    z-index: 5; 
    opacity: 0.8;
    width: 90px;
    background: linear-gradient(to top, 
        rgba(255, 0, 255, 0.15) 0%,
        rgba(10, 10, 30, 0.6) 40%,
        rgba(10, 10, 30, 0.8) 100%
    );
    border-color: #ff00ff;
    box-shadow: 
        0 0 10px currentColor, 
        0 0 15px currentColor,
        inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.sheet-3 {
    color: #00ff00;
    height: 28px;
    transform: translateX(calc(-50% + 55px)) rotate(12deg);
    z-index: 4; 
    opacity: 0.6;
    background: linear-gradient(to top, 
        rgba(0, 255, 0, 0.15) 0%,
        rgba(10, 10, 30, 0.6) 40%,
        rgba(10, 10, 30, 0.8) 100%
    );
    border-color: #00ff00;
    box-shadow: 
        0 0 10px currentColor, 
        0 0 15px currentColor,
        inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.folder-container-neon:hover {
    transform: rotateY(5deg) rotateX(3deg);
}

.folder-container-neon:hover .sheet-1 { 
    animation: line-pulse-extend-1 0.7s ease-in-out forwards; 
    transform: translateX(calc(-50% - 60px)) rotate(-15deg) translateZ(10px); 
    z-index: 6 !important;
    background: linear-gradient(to top, 
        rgba(0, 255, 255, 0.2) 0%,
        rgba(0, 255, 255, 0.1) 20%,
        rgba(10, 10, 30, 0.7) 50%,
        rgba(10, 10, 30, 0.85) 100%
    ) !important;
    border-color: #00ffff !important;
    box-shadow: 
        0 0 20px currentColor, 
        0 0 35px currentColor, 
        0 0 50px currentColor, 
        0 0 70px currentColor,
        inset 0 0 30px rgba(0, 0, 0, 0.7) !important;
}

.folder-container-neon:hover .sheet-2 { 
    animation: line-pulse-extend-2 0.7s 0.1s ease-in-out forwards; 
    transform: translateX(-50%) rotate(0deg) translateZ(15px); 
    z-index: 7 !important;
    background: linear-gradient(to top, 
        rgba(255, 0, 255, 0.2) 0%,
        rgba(255, 0, 255, 0.1) 20%,
        rgba(10, 10, 30, 0.7) 50%,
        rgba(10, 10, 30, 0.85) 100%
    ) !important;
    border-color: #ff00ff !important;
    box-shadow: 
        0 0 20px currentColor, 
        0 0 35px currentColor, 
        0 0 55px currentColor, 
        0 0 80px currentColor,
        inset 0 0 30px rgba(0, 0, 0, 0.7) !important;
}

.folder-container-neon:hover .sheet-3 { 
    animation: line-pulse-extend-3 0.7s 0.05s ease-in-out forwards; 
    transform: translateX(calc(-50% + 60px)) rotate(15deg) translateZ(10px); 
    z-index: 6 !important;
    background: linear-gradient(to top, 
        rgba(0, 255, 0, 0.2) 0%,
        rgba(0, 255, 0, 0.1) 20%,
        rgba(10, 10, 30, 0.7) 50%,
        rgba(10, 10, 30, 0.85) 100%
    ) !important;
    border-color: #00ff00 !important;
    box-shadow: 
        0 0 20px currentColor, 
        0 0 35px currentColor, 
        0 0 50px currentColor, 
        0 0 70px currentColor,
        inset 0 0 30px rgba(0, 0, 0, 0.7) !important;
}

.folder-container-neon:hover .folder-card-neon {
    transform: translateY(-10px) scale(1.03) translateZ(20px);
    animation: folder-glow 2s infinite alternate ease-in-out;
}

.folder-card-neon {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: rgba(20, 20, 50, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 0 8px 16px 16px;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.4),
        0 0 15px rgba(255, 0, 255, 0.3),
        inset 0 0 6px rgba(0,0,0,0.4);
    padding: 1.5rem 2rem;
    z-index: 5;
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out;
    font-family: 'Orbitron', sans-serif;
    border-top: none;
    transform-style: preserve-3d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
    pointer-events: auto;
}

.folder-card-neon::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -1px;
    height: 20px;
    width: 120px;
    background-color: rgba(20, 20, 50, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -3px 8px rgba(0, 255, 255, 0.3);
    z-index: 4;
}

.folder-card-neon.compact::before {
    width: 100px;
    height: 18px;
    top: -18px;
}

.folder-icon-neon {
    color: #00ffff;
    filter: drop-shadow(0 0 8px #00ffff) drop-shadow(0 0 12px #00ffff);
    transition: transform 0.4s ease-in-out;
}

.folder-title-neon {
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-shadow:
        0 0 4px #00ffff,
        0 0 8px #ff00ff,
        0 0 12px #00ff00;
    font-family: 'Orbitron', sans-serif;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    max-width: 100%;
}

.folder-container-neon:hover .folder-icon-neon {
    transform: scale(1.2) translateZ(5px);
}

.folder-card-neon > * {
    position: relative;
    z-index: 6;
    transform-style: preserve-3d;
}

.folder-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    gap: 0.75rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

/* Ensure folder button wrapper also has pointer cursor */
.folder-button-wrapper {
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    overflow: visible !important; /* Critical: Allow animations to extend */
    position: relative;
    z-index: 1;
}

.folder-button-wrapper:focus {
    outline: 2px solid rgba(0, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Hero Action Buttons - 3D Folder style */
.hero-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem; /* Increased gap matching external monitor layout */
    flex-wrap: nowrap; /* Keep horizontal layout consistent */
    overflow: visible !important; /* Critical: Allow folder animations to extend */
    position: relative;
    z-index: 10; /* Ensure buttons are above other content */
    padding: 0;
    padding-bottom: 0;
    margin: 0;
    margin-bottom: 0;
}

/* Real-time Activity Component Styles */
.realtime-activity-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.realtime-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.realtime-activity-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.realtime-activity-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

.realtime-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(26, 26, 26, 0.9);
    border-radius: 12px;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.live-label {
    color: #94a3b8;
    font-size: 0.875rem;
}

.live-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.realtime-chart-container {
    background-color: #1f2329; /* Medium gray (equivalent to bg-gray-800) */
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.realtime-activity-svg {
    width: 100%;
    height: 300px;
    cursor: crosshair;
}

.realtime-line-glow {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.realtime-data-dot-pulse {
    animation: data-dot-pulse 2s ease-in-out infinite;
}

@keyframes data-dot-pulse {
    0%, 100% {
        opacity: 1;
        r: 6;
    }
    50% {
        opacity: 0.7;
        r: 8;
    }
}

.realtime-tooltip {
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid #6366f1;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    pointer-events: none;
    width: 120px;
}

foreignObject {
    pointer-events: none;
}

.tooltip-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

.tooltip-time {
    color: #64748b;
    font-size: 0.75rem;
}

.realtime-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.realtime-stat-card {
    background-color: #2f333b; /* Slightly lighter gray for better contrast */
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.realtime-stat-card .stat-label {
    color: #64748b;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.realtime-stat-card .stat-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .realtime-activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .realtime-live-indicator {
        width: 100%;
        justify-content: center;
    }
    
    .realtime-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .realtime-activity-svg {
        height: 250px;
    }
}

/* Success Popup Styles */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.success-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.success-popup-content {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    text-align: center;
}

.success-popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.success-popup-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .success-popup-content {
        padding: 1.5rem 2rem;
        min-width: 280px;
    }
    
    .success-popup-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .success-popup-message {
        font-size: 1rem;
    }
}
