:root {
    --accent-color: linear-gradient(45deg, #4fffb0, #00ddeb);
    --accent-solid: #4fffb0;
    --accent-secondary: #00ddeb;
    --dark-bg: #0f0f0f;
    --darker-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --card-shadow: 0 10px 30px rgba(79, 255, 176, 0.2);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
    
    /* Terminal colors */
    --terminal-bg: #1e1e1e;
    --terminal-header: #2d2d2d;
    --terminal-prompt: #4fffb0;
    --terminal-command: #f0f0f0;
    --terminal-output: #cccccc;
    --terminal-green: #27C93F;
    
    /* macOS terminal button colors */
    --ubuntu-red: #FF5F56;
    --ubuntu-yellow: #FFBD2E;
    --ubuntu-green: #27C93F;
    
    /* Font family */
    --font-mono: 'Ubuntu Mono', 'Courier New', monospace;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4fffb0, #00ddeb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ddeb, #4fffb0);
}

/* Selection Styling */
::selection {
    background: rgba(79, 255, 176, 0.3);
    color: #fff;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.animate-on-scroll.is-visible {
    animation: fadeIn 0.8s ease forwards;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.navbar {
    background: var(--darker-bg);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Custom styling for mobile navbar */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(79, 255, 176, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile navbar dropdown styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--darker-bg);
        border-radius: 0 0 10px 10px;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        margin-top: 0.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(79, 255, 176, 0.1);
        padding-bottom: 0.5rem;
    }
    
    .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: var(--transition-fast);
        display: flex;
        align-items: center;
    }
    
    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    .nav-link:hover {
        background: rgba(79, 255, 176, 0.1);
        transform: translateX(5px);
    }
    
    /* Improve navbar toggle button */
    .navbar-toggler {
        border: 1px solid rgba(79, 255, 176, 0.3);
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(79, 255, 176, 0.2);
    }
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent !important;
}
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(79, 255, 176, 0.2), transparent 70%);
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Terminal Window Styling */
.terminal-window {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
    transform: translateY(0);
    position: relative;
    /* Improved responsiveness */
    max-height: 80vh;
    overflow-y: auto;
}

.terminal-window:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 255, 176, 0.2);
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.terminal-button:hover {
    transform: scale(1.1);
}

.terminal-button.close {
    background-color: #FF5F56;
    border: 1px solid #E0443E;
}

.terminal-button.minimize {
    background-color: #FFBD2E;
    border: 1px solid #DEA123;
}

.terminal-button.maximize {
    background-color: #27C93F;
    border: 1px solid #1AAB29;
}

.terminal-button.close:hover::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.5);
    font-size: 10px;
    font-weight: bold;
}

.terminal-title {
    color: #ABABAB;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.terminal-body {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.85);
    background-image: 
        radial-gradient(rgba(0, 150, 0, 0.05) 15%, transparent 16%),
        radial-gradient(rgba(0, 150, 0, 0.05) 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(79, 255, 176, 0.3);
    border-radius: 4px;
}

.terminal-line {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
}

.terminal-prompt {
    color: #4fffb0;
    margin-right: 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(79, 255, 176, 0.3);
}

.terminal-command {
    color: #f0f0f0;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.terminal-output {
    color: #cccccc;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(79, 255, 176, 0.3);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--terminal-green);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Terminal file list styling */
.terminal-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    margin-top: 15px;
}

.terminal-file {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #f0f0f0;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.terminal-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.terminal-file:hover::before {
    transform: translateX(100%);
}

.terminal-file i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.terminal-file .file-name {
    font-weight: bold;
    margin-right: 10px;
}

.terminal-file .file-permission {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

.github-file i {
    color: #6e5494;
}

.linkedin-file i {
    color: #0077b5;
}

.terminal-file:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.terminal-file:hover .file-name {
    color: var(--accent-solid);
}

.terminal-file:hover i {
    animation: pulse 1s infinite alternate;
}

/* Terminal command output styling */
.terminal-command-output {
    margin-bottom: 15px;
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
}

.terminal-command-line {
    color: #f0f0f0;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.terminal-result {
    padding-left: 15px;
    border-left: 2px solid rgba(79, 255, 176, 0.3);
    margin-bottom: 10px;
}

.file-info {
    display: block;
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.resume-file {
    background-color: rgba(255, 87, 51, 0.1);
    border-color: rgba(255, 87, 51, 0.3);
}

.resume-file i {
    color: #ff5733;
}

.resume-file .file-size {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: 10px;
    margin-right: 10px;
}

.resume-file:hover {
    background-color: rgba(255, 87, 51, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 255, 176, 0.1) 0%, rgba(0, 221, 235, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    background: rgba(26, 26, 26, 0.3);
    box-shadow: 0 8px 32px rgba(79, 255, 176, 0.1);
    border: 1px solid rgba(79, 255, 176, 0.1);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.hero-content:hover {
    transform: translateY(-10px);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-solid);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    background: rgba(79, 255, 176, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}

.typewriter {
    position: relative;
    display: inline-block;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
    border-right: 3px solid var(--accent-solid);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-solid) }
}

.accent-text {
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.changing-text {
    color: var(--accent-solid);
    font-weight: 600;
}

.btn-outline-accent {
    border: 2px solid var(--accent-solid);
    color: var(--accent-solid);
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    transition: var(--transition-fast);
    display: inline-block;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-outline-accent:hover {
    color: var(--dark-bg);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 255, 176, 0.4);
}

.btn-outline-accent:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79, 255, 176, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover {
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 255, 176, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down-indicator a {
    color: var(--accent-solid);
    font-size: 2rem;
    transition: var(--transition-fast);
}

.scroll-down-indicator a:hover {
    color: var(--accent-secondary);
    transform: translateY(5px);
}
.stats-section {
    padding: 80px 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
    z-index: 1;
}

.stat-item {
    background: var(--darker-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 255, 176, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(79, 255, 176, 0.2);
}

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

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-solid);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79, 255, 176, 0.1);
    box-shadow: 0 0 20px rgba(79, 255, 176, 0.2);
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--accent-solid), var(--accent-secondary)) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
}

.stat-icon i {
    text-shadow: 0 0 10px rgba(79, 255, 176, 0.5);
    z-index: 1;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(79, 255, 176, 0.15);
}

.stat-item:hover .stat-icon i {
    animation: iconPulse 1.5s infinite alternate;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-number.count-complete {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(79, 255, 176, 0.7);
}

.stat-number::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 2rem;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-number.count-complete::after {
    opacity: 1;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.stat-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 1rem;
}
.skills-section {
    padding: 100px 0;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 255, 176, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.skill-item {
    text-align: center;
    transition: var(--transition-medium);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.skill-content {
    background: var(--dark-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 255, 176, 0.1);
}

.skill-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 255, 176, 0.1) 0%, rgba(0, 221, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.skill-item:hover .skill-content {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(79, 255, 176, 0.2);
}

.skill-item:hover .skill-content::before {
    opacity: 1;
}

.skill-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(79, 255, 176, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.skill-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    z-index: 0;
}

.skill-content i {
    color: var(--accent-solid);
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.skill-item:hover .skill-icon-container {
    transform: rotate(360deg);
}

.skill-item:hover .skill-icon-container::before {
    transform: scale(1);
}

.skill-item:hover .skill-content i {
    color: var(--dark-bg);
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}

.skill-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

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

.skill-content {
    position: relative;
    overflow: hidden;
}

.skill-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 255, 176, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 221, 235, 0.05) 0%, transparent 50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: floatingBackground 15s infinite ease-in-out;
}

.skill-item:hover .skill-content::after {
    opacity: 1;
}

.skill-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.education-section {
    padding: 100px 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 255, 176, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, rgba(79, 255, 176, 0.2), rgba(0, 221, 235, 0.2));
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-solid);
    border-radius: 50%;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(79, 255, 176, 0.7);
    transition: var(--transition-medium);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(79, 255, 176, 0.3);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: var(--darker-bg);
    padding: 30px;
    border-radius: 15px;
    width: 45%;
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(79, 255, 176, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--darker-bg);
    transform: rotate(45deg) translateY(-50%);
    z-index: 0;
    border: 1px solid rgba(79, 255, 176, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-top: none;
    border-left: none;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-bottom: none;
    border-right: none;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 255, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-fast);
}

.education-icon i {
    font-size: 1.8rem;
    color: var(--accent-solid);
    transition: var(--transition-fast);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.education-score {
    font-weight: 600;
    color: var(--accent-solid);
    margin-top: 0.5rem;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(79, 255, 176, 0.2);
}

.timeline-item:hover .education-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--accent-color);
}

.timeline-item:hover .education-icon i {
    color: var(--dark-bg);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(79, 255, 176, 0.9);
}

@media (max-width: 767.98px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px; /* Improved spacing */
    }

    .timeline-marker {
        left: 30px;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin: 20px 0 0 60px !important;
        padding: 20px; /* Reduced padding */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Better shadow */
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 60px;
    }
    
    .timeline-item:hover .timeline-marker {
        transform: scale(1.3);
    }
    
    /* Improved typography for mobile */
    .timeline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .education-icon {
        margin-right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .education-score {
        font-size: 0.9rem;
    }
}
.projects-section {
    padding: 100px 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(79, 255, 176, 0.05), transparent);
    z-index: 0;
}

.project-card {
    background: var(--darker-bg);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: var(--transition-medium);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(79, 255, 176, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, #4fffb0, #00ddeb) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(79, 255, 176, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    background: var(--dark-bg);
    padding: 25px;
    border-bottom: 1px solid rgba(79, 255, 176, 0.1);
    position: relative;
    z-index: 1;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    transition: var(--transition-fast);
    color: var(--text-color);
}

.project-card:hover .project-header h3 {
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto !important; /* Ensures link is clickable */
    cursor: pointer; /* Shows pointer on hover */
}

.project-link {
    position: relative;
    z-index: 10; /* Ensures it’s above other elements */
}
.project-link i {
    pointer-events: auto !important;
}


.project-body {
    padding: 20px;
}

.project-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: rgba(79, 255, 176, 0.1);
    color: #4fffb0;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.badge:hover {
    background: #4fffb0;
    color: var(--dark-bg);
    transform: scale(1.05);
}
.animate-on-scroll.is-visible.project-card {
    animation: fadeIn 1s ease-in-out forwards;
}
.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }
.project-card:nth-child(5) { animation-delay: 1.0s; }
@media (max-width: 991.98px) {
    .project-link {
        font-size: 1.3rem;
    }
    .project-description {
        font-size: 0.9rem;
    }
    .badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 575.98px) {
    .project-link {
        font-size: 1.2rem;
    }
    .project-description {
        font-size: 0.85rem;
    }
    .badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}
.hackathons-section {
    padding: 80px 0;
    background: var(--dark-bg);
    position: relative;
}

.hackathons-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
}

.hackathon-card {
    background: var(--darker-bg);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hackathon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(45deg, #4fffb0, #00ddeb) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.hackathon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(79, 255, 176, 0.3);
}

.hackathon-card:hover::before {
    opacity: 1;
}

.hackathon-header {
    background: var(--dark-bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(79, 255, 176, 0.1);
}

.hackathon-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: all 0.3s ease;
}

.hackathon-card:hover .hackathon-header h3 {
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
}

.ranking-badge {
    background: rgba(79, 255, 176, 0.1);
    color: #4fffb0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hackathon-card:hover .ranking-badge {
    background: #4fffb0;
    color: var(--dark-bg);
    transform: scale(1.05);
}

.hackathon-body {
    padding: 20px;
}

.hackathon-details {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.hackathon-details i {
    color: #4fffb0;
    margin-right: 8px;
}

.hackathon-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.animate-on-scroll.is-visible.hackathon-card {
    animation: fadeIn 1s ease-in-out forwards;
}
.hackathon-card:nth-child(1) { animation-delay: 0.2s; }
.hackathon-card:nth-child(2) { animation-delay: 0.4s; }
@media (max-width: 991.98px) {
    .hackathon-header h3 {
        font-size: 1.3rem;
    }
    .ranking-badge {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    .hackathon-details {
        font-size: 0.9rem;
    }
    .hackathon-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hackathon-header h3 {
        font-size: 1.2rem;
    }
    .ranking-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    .hackathon-details {
        font-size: 0.85rem;
    }
    .hackathon-description {
        font-size: 0.85rem;
    }
}
.contact-section {
    padding: 80px 0;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 255, 176, 0.1), transparent 70%);
    z-index: 0;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 1;
    background: var(--dark-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-content:hover {
    box-shadow: 0 15px 30px rgba(79, 255, 176, 0.3);
}

.contact-email {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-email i {
    color: #4fffb0;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.contact-content:hover .contact-email i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    position: relative;
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.social-link:hover {
    color: #4fffb0;
    transform: translateY(-5px);
}

.social-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-label {
    opacity: 1;
}

.contact-note {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.animate-on-scroll.is-visible.contact-content {
    animation: fadeIn 1s ease-in-out forwards;
}

.animate-on-scroll.is-visible.social-link {
    animation: bounceIn 0.8s ease-out forwards;
}

.footer-section {
    background: var(--dark-bg);
    padding: 20px 0;
    border-top: 1px solid rgba(79, 255, 176, 0.1);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: var(--accent-color);
    -webkit-background-clip: text;
    color: transparent;
}
 
@media (max-width: 991.98px) {
    .contact-content {
        padding: 30px;
    }
    .contact-email {
        font-size: 1.1rem;
    }
    .social-link {
        font-size: 1.6rem;
    }
    .contact-note {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .contact-content {
        padding: 20px;
    }
    .contact-email {
        font-size: 1rem;
    }
    .social-link {
        font-size: 1.4rem;
    }
    .social-label {
        font-size: 0.75rem;
    }
    .contact-note {
        font-size: 0.85rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
 
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.1s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

.animate-on-scroll.is-visible.hero-title {
    animation: typewriter 2s steps(20) forwards, fadeIn 1s ease-in-out forwards;
}

.animate-on-scroll.is-visible.btn-outline-accent {
    animation: pulse 2s infinite ease-in-out;
}

.animate-on-scroll.is-visible.social-link {
    animation: bounceIn 0.8s ease-out forwards;
}

.animate-on-scroll.is-visible.stat-item {
    animation: fadeIn 1s ease-in-out forwards;
}

.animate-on-scroll.is-visible.skill-item {
    animation: fadeIn 1s ease-in-out forwards;
}

.animate-on-scroll.is-visible.project-card {
    animation: fadeIn 1s ease-in-out forwards;
}
 
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(20px); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

 
.hero-content .animate-on-scroll:nth-child(1) { animation-delay: 0.2s; }
.hero-content .animate-on-scroll:nth-child(2) { animation-delay: 0.5s; }
.hero-content .animate-on-scroll:nth-child(3) { animation-delay: 1s; }
.hero-content .animate-on-scroll:nth-child(4) { animation-delay: 1.5s; }

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.4s; }
.skill-item:nth-child(3) { animation-delay: 0.6s; }
.skill-item:nth-child(4) { animation-delay: 0.8s; }
.skill-item:nth-child(5) { animation-delay: 1.0s; }
.skill-item:nth-child(6) { animation-delay: 1.2s; }

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }
.project-card:nth-child(5) { animation-delay: 1.0s; }

 
@media (max-width: 991.98px) {
    .hero-title { font-size: 3rem; }
    .stat-number { font-size: 2.5rem; }
    .stat-item { padding: 1.5rem 0.75rem; }
    .skill-content { padding: 1.5rem; }
    .skill-title { font-size: 1.3rem; }
    .skill-description { font-size: 0.9rem; }
    
    /* Improve section spacing */
    section {
        padding: 70px 0;
    }
    
    /* Better container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Improve skill items layout */
    .skill-item {
        height: 100%;
        margin-bottom: 20px;
    }
    
    /* Adjust project cards */
    .project-card {
        margin-bottom: 25px;
    }
    
    /* Better spacing for terminal window */
    .terminal-window {
        margin: 0 15px;
    }
}

@media (max-width: 767.98px) {
    .terminal-window {
        width: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    .terminal-body {
        padding: 10px;
        max-height: 80vh;
    }
    
    .terminal-neofetch {
        font-size: 0.7rem;
    }
    
    .ascii-art {
        font-size: 0.5rem;
        display: none; /* Hide ASCII art on smaller screens */
    }
    
    .terminal-file-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .project-description {
        font-size: 0.85rem;
        line-height: 1.5;
        white-space: normal; /* Allow text to wrap */
    }
    
    .project-card {
        margin-bottom: 30px;
    }
    
    .project-header {
        padding: 15px;
    }
    
    .project-body {
        padding: 15px;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-outline-accent { margin-bottom: 1rem; width: 100%; }
    .social-links { gap: 0.5rem; }
    .stat-number { font-size: 1.8rem; }
    .stat-text { font-size: 0.85rem; }
    .skill-content { padding: 1rem; }
    .skill-title { font-size: 1.2rem; }
    .skill-description { font-size: 0.85rem; }
    
    /* Improve navbar on mobile */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Better terminal display on mobile */
    .terminal-title {
        font-size: 0.7rem;
    }
    
    .terminal-prompt, .terminal-command {
        font-size: 0.8rem;
    }
    
    .terminal-output {
        font-size: 0.8rem;
        padding-left: 10px;
    }
    
    .terminal-line {
        margin-bottom: 8px;
    }
    
    /* Fix line breaks in terminal output */
    .hero-description br {
        display: none;
    }
    
    /* Improve project cards on mobile */
    .project-card {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .project-link {
        width: 35px;
        height: 35px;
    }
    
    .project-description {
        font-size: 0.75rem;
        padding-left: 10px;
    }
    
    .project-description::before {
        font-size: 0.75rem;
    }
    
    .code-keyword, .code-string, .code-function, .code-variable {
        font-size: 0.75rem;
    }
    
    /* Improve education timeline on mobile */
    .timeline-item {
        margin-bottom: 30px;
    }
    
    /* Better spacing for contact form */
    .contact-form .form-control {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    /* Adjust hackathon cards */
    .hackathon-card {
        margin-bottom: 20px;
    }
    
    /* Improve section spacing */
    section {
        padding: 50px 0;
    }
    
    /* Better container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-title { font-size: 1.8rem; }
    .subtitle { font-size: 0.9rem; }
    .terminal-body { padding: 8px; max-height: 70vh; }
    .terminal-prompt, .terminal-command { font-size: 0.75rem; }
    .terminal-output { font-size: 0.75rem; }
    
    /* Adjust stats for very small screens */
    .stat-item {
        padding: 10px 5px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    /* Improve timeline for very small screens */
    .timeline-content {
        padding-left: 40px;
    }
    
    /* Better spacing for very small screens */
    section {
        padding: 40px 0;
    }
    
    /* Adjust skill items */
    .skill-icon-container i {
        font-size: 1.5rem;
    }
    
    /* Improve project cards */
    .project-header h3 {
        font-size: 1.1rem;
    }
}