/* CSS Custom Properties for Optimization */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --success-color: #28a745;
    --danger-color: #ff4c4c;
    --danger-hover: #ff3333;
    --white: #ffffff;
    --dark-text: #212529;
    --gray-text: #343a40;
    --muted-text: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: 0 6px 25px rgba(0, 123, 255, 0.06);
    --shadow-hover: 0 15px 40px rgba(0, 123, 255, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

#bg-animation {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--gray-text);
    background: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 76, 76, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 123, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header and Navigation - Optimized */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    color: var(--gray-text);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 123, 255, 0.08);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled { box-shadow: 0 4px 25px rgba(0, 123, 255, 0.12); }

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo { height: 60px; width: auto; border-radius: 50%; }
.site-title { font-size: 1.8rem; font-weight: 700; color: var(--dark-text); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--gray-text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
    z-index: -1;
    border-radius: 8px;
}

.nav-menu a:hover::before, 
.nav-menu a.active::before { transform: scaleX(1); }

.nav-menu a:hover, 
.nav-menu a.active {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
}

.menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Main Layout - Optimized */
.main-content {
    max-width: 1200px;
    margin: 90px auto 0; /* Reduced from 120px to 90px */
    padding: 1rem 2rem;
    min-height: calc(100vh - 100px);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Section Base Styles */
.profile-section,
.terminal-section,
.quick-links-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-section,
.terminal-section,
.quick-links-section { padding: 2rem; }
.profile-section { padding: 1.5rem 2rem 2rem; }

/* Hover Effects */
.profile-section::before,
.terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.profile-section::before { background: var(--primary-color); }
.terminal-section::before { background: var(--danger-color); }
.quick-links-section::before { background: var(--success-color); }

.profile-section:hover::before,
.terminal-section:hover::before,
.quick-links-section:hover::before { transform: scaleX(1); }

.profile-section:hover { box-shadow: var(--shadow-hover); }

.terminal-section:hover,
.quick-links-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 76, 76, 0.1);
}

.quick-links-section:hover {
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.1);
}

/* Profile Section */
.profile-section {
    background: #ffffff;
    padding: 1.5rem 2rem 2rem 2rem; /* Reduced top padding, kept other padding */
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-height: 1100px; /* Set a max height */
}

/* Terminal and Quick Links Combined Section */
.terminal-and-links-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Terminal Section */
.terminal-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.4s both;
    text-align: center;
}

/* Quick Links Section */
.quick-links-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.quick-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #28a745;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.quick-links-section:hover::before {
    transform: scaleX(1);
}

.quick-links-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.1);
}

.quick-links-section h3 {
    color: #212529;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff4c4c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.terminal-section:hover::before {
    transform: scaleX(1);
}

.terminal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 76, 76, 0.1);
}

.terminal-section h2 {
    color: #212529;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    font-size: 2rem; /* Reduced from 2.4rem */
    font-weight: 700;
}

/* Content sections */

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem; /* Reduced from 1.5rem */
}

.profile-image {
    flex: 0 0 auto;
}

.profile-pic {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 4px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15);
    background: #f8f9fa;
    object-fit: cover;
    margin-top: -8rem;
}

.profile-info {
    flex: 1;
    min-width: 280px; /* Reduced from 300px */
}

.profile-name {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #212529;
}

.profile-title {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    color: #007bff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profile-location {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: #6c757d;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.profile-bio p {
    font-size: 1rem; /* Reduced from 1.1rem */
    line-height: 1.6; /* Reduced from 1.7 */
    color: #6c757d;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.profile-stats {
    display: flex;
    gap: 1.5rem; /* Reduced from 2rem */
    flex-wrap: wrap;
    justify-content: center;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem; /* Reduced from 2rem */
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.header {
    animation: fadeInDown 0.8s ease;
}

/* Floating particles effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(102, 126, 234, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(118, 75, 162, 0.3), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(102, 126, 234, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(118, 75, 162, 0.3), transparent);
    background-size: 300px 300px, 200px 200px, 150px 150px, 250px 250px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(20px, -10px) rotate(240deg);
    }
}

/* Smooth focus styles */
a:focus,
button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Enhanced hover effects for better accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem;
        gap: 0.5rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        animation: slideDown 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex !important;
    }

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

    .nav-menu a {
        padding: 1rem 1.5rem;
        border-radius: 15px;
        margin: 0.25rem 0;
        text-align: center;
        color: #333;
        display: block;
        width: 100%;
    }

    .nav-menu a:hover {
        background: var(--primary-color);
        color: white;
    }

    /* Mobile dropdown styles - Smooth Animation */
    .nav-links-dropdown {
        width: 100%;
    }

    .nav-links-dropdown .dropdown-toggle {
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        text-decoration: none;
    }

    .nav-links-dropdown .dropdown-toggle:hover {
        color: var(--primary-color);
    }

    .nav-links-dropdown .dropdown-toggle::after {
        content: ' ▼';
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .nav-links-dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .nav-links-dropdown .dropdown-menu {
        position: static;
        display: block;
        background: rgba(0, 123, 255, 0.08);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateY(-10px);
    }

    .nav-links-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 0.5rem;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links-dropdown .dropdown-menu li {
        margin: 0.25rem 0;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links-dropdown.active .dropdown-menu li {
        transform: translateX(0);
        opacity: 1;
    }

    /* Staggered animation for dropdown items */
    .nav-links-dropdown.active .dropdown-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links-dropdown.active .dropdown-menu li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links-dropdown.active .dropdown-menu li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links-dropdown.active .dropdown-menu li:nth-child(4) { transition-delay: 0.25s; }

    .nav-links-dropdown .dropdown-menu a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        color: #555;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: block;
    }

    .nav-links-dropdown .dropdown-menu a:hover {
        background: rgba(0, 123, 255, 0.1);
        transform: translateX(5px);
        color: var(--primary-color);
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        height: 50px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2.5rem 1.5rem;
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 1rem;
        margin-top: 110px; /* Reduced from 140px to 110px for mobile */
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .terminal-and-links-section {
        gap: 1.5rem;
    }

    .profile-section,
    .terminal-section,
    .quick-links-section {
        padding: 1.5rem;
    }

    /* Mobile button fixes */
    .terminal-controls .btn {
        font-size: 1.05rem;
        padding: 1rem 2.5rem;
        white-space: nowrap;
        min-width: auto;
        width: auto;
        display: inline-flex;
    }

    .btn {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .terminal-section h2 {
        font-size: 1.6rem;
    }

    .quick-links-section h3 {
        font-size: 1.3rem;
    }

    .profile-stats {
        gap: 1rem;
    }

    .quick-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .quick-link {
        min-width: 200px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-title {
        font-size: 1.1rem;
    }

    .profile-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

}

/* Utility classes */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
    margin: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0056b3;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}

.btn:active {
    transform: translateY(0) scale(1);
}

/* Call-to-action button with red accent */
.btn-cta {
    background: #ff4c4c;
    box-shadow: 0 4px 15px rgba(255, 76, 76, 0.25);
}

.btn-cta::before {
    background: #ff3333;
}

.btn-cta:hover {
    box-shadow: 0 8px 25px rgba(255, 76, 76, 0.35);
}

/* Terminal Controls */
.terminal-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terminal-controls .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terminal-icon {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: bold;
}

.terminal-hint {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.terminal-hint code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    color: #e83e8c;
    border: 1px solid #e9ecef;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    color: #343a40;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #28a745;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.quick-link:hover::before {
    transform: scaleX(1);
}

.quick-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

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

.link-text {
    font-weight: 500;
}

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

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }

/* Dropdown styles for Links tab - Desktop */
@media (min-width: 769px) {
    .nav-links-dropdown {
        position: relative;
    }

    .nav-links-dropdown .dropdown-toggle {
        cursor: pointer;
        padding: 0.75rem 1.2rem;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .nav-links-dropdown .dropdown-toggle::after {
        content: ' ▼';
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .nav-links-dropdown:hover .dropdown-toggle,
    .nav-links-dropdown:focus-within .dropdown-toggle {
        background: rgba(0, 123, 255, 0.1);
    }

    .nav-links-dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .nav-links-dropdown .dropdown-menu {
        display: none;
        position: absolute;
        top: 110%;
        left: 0;
        min-width: 200px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15);
        z-index: 1001;
        padding: 0.75rem 0;
        animation: fadeInUp 0.3s;
        border: 1px solid #e9ecef;
    }

    .nav-links-dropdown:hover .dropdown-menu,
    .nav-links-dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #343a40;
    text-decoration: none;
    transition: all 0.18s ease;
    border-radius: 6px;
    margin: 0.25rem 0.5rem;
    text-align: left;
}

.dropdown-menu a:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateX(2px);
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 100px);
    margin-top: 100px;
}

.profile-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 30s ease-in-out infinite;
    pointer-events: none;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.profile-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-title {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 300;
}

.profile-location {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-bio {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #ff4c4c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

.terminal-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #007bff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.terminal-section:hover::before {
    transform: scaleX(1);
}

.terminal-section h2 {
    color: #212529;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.terminal-section p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.terminal-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
    position: relative;
    overflow: hidden;
}

.terminal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e7e34 0%, #1c7c66 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.terminal-btn:hover::before {
    left: 0;
}

.terminal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.35);
}

.terminal-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Terminal Modal Styles */
.terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.terminal-modal.active {
    display: flex;
}

.terminal-modal-content {
    width: 90%;
    height: 80%;
    max-width: 1200px;
    max-height: 800px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

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

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

.terminal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ff4c4c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-close:hover {
    background: #ff3333;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 76, 76, 0.4);
}

/* Responsive design for profile page */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
        margin-top: 120px;
    }

    .profile-header {
        padding: 2.5rem 2rem;
        margin-bottom: 2rem;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .profile-title {
        font-size: 1.2rem;
    }

    .profile-bio {
        font-size: 1.1rem;
    }

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

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .terminal-section {
        padding: 2rem 1.5rem;
    }

    .terminal-section h2 {
        font-size: 1.8rem;
    }

    .terminal-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .terminal-modal-content {
        width: 95%;
        height: 85%;
        margin: 1rem;
    }
}
