:root {
    --primary-color: #00ffff;
    --secondary-color: #ff0080;
    --accent-color: #7c3aed;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #1f1f23;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.boot-sequence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.boot-logo {
    margin-bottom: 2rem;
}

.simple-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    animation: simplePulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.logo-circle .logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    line-height: 1;
}

@keyframes simplePulse {
    0%, 100% {
        border-color: var(--primary-color);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        border-color: var(--secondary-color);
        box-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
        transform: scale(1.05);
    }
}

.boot-messages {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--success-color);
    text-align: left;
    width: 100%;
}

.boot-line {
    opacity: 0;
    animation: bootLineAppear 0.5s ease forwards;
    position: relative;
}

.boot-line::before {
    content: '> ';
    color: var(--primary-color);
}

.boot-line.typing::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

.loading-bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.loading-percentage {
    font-family: 'Orbitron', monospace;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    z-index: -1;
}

.cosmic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(0, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 0, 128, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.05), transparent);
    background-size: 200px 100px;
    animation: starsMove 20s linear infinite;
}

@keyframes starsMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0a0a0f;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    position: relative;
}

.nav-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-logo .logo-text:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.section {
    min-height: 100vh;
    display: none;
    padding: 80px 0 40px;
}

.section.active {
    display: block;
}

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

.hero-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: start;
    gap: 2rem;
    position: relative;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 10vh;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: left;
    z-index: 2;
    max-width: 600px;
    justify-self: start;
    padding-top: 2rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: slideInUp 1s ease 0.5s forwards;
}

.title-line.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 1s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInUp 1s ease 1.5s forwards;
}

.hero-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInUp 1s ease 2s forwards;
    justify-content: flex-start;
}

.stat {
    text-align: left;
    position: relative;
    padding: 1.2rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    min-width: 230px;
    max-width: 230px;
    width: 230px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.1);
}

.stat:hover .stat-number {
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

.stat:hover .stat-label {
    color: var(--primary-color);
}

.stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.stat:hover::after {
    opacity: 1;
}

/* Tooltip Styles */
.stat[data-tooltip] {
    position: relative;
}

.stat[data-tooltip]:hover::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    top: calc(100% + 20px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.95) !important;
    color: var(--text-light) !important;
    padding: 1.5rem 2rem !important;
    border-radius: 12px !important;
    border: 1px solid var(--primary-color) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    height: 100px !important;
    width: 300px !important;
    max-width: 90vw !important;
    text-align: left !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 255, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    pointer-events: none !important;
}

.stat[data-tooltip]:hover::before {
    display: none !important;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;
    width: 350px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
    opacity: 0;
    animation: slideInUp 1s ease 3s forwards;
    z-index: 1;
    justify-self: end;
    align-self: start;
    margin-top: 12rem;
    margin-right: 4rem;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1));
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--primary-color);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.terminal-body {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--success-color);
}

.command {
    color: var(--text-light);
    margin-left: 0.5rem;
}

.output {
    color: var(--text-muted);
}

.output.success {
    color: var(--success-color);
}

.cursor {
    animation: blink 1s infinite;
}

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

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.skill-category li:hover {
    color: var(--text-light);
}


.certifications {
    text-align: center;
}

.certifications h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cert-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cert-badge {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.project-card {
    background: rgba(31, 31, 35, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-light);
    font-size: 1.2rem;
    flex: 1;
}

.project-type {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.project-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric {
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.metric::before {
    content: "▶ ";
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
        padding-top: 5vh;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        justify-self: center;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat[data-tooltip]:hover::after {
        position: fixed !important;
        top: 10% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 280px !important;
    }
    
    .terminal-window {
        justify-self: center;
        width: 100%;
        max-width: 350px;
        margin-top: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-list {
        justify-content: center;
    }
}
/* Cyber Grid Styles */
.cyber-grid {
    opacity: 0.3;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-line.horizontal:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.grid-line.horizontal:nth-child(2) {
    top: 50%;
    animation-delay: 1s;
}

.grid-line.horizontal:nth-child(3) {
    top: 80%;
    animation-delay: 2s;
}

.grid-line.vertical:nth-child(4) {
    left: 25%;
    animation-delay: 0.5s;
}

.grid-line.vertical:nth-child(5) {
    left: 50%;
    animation-delay: 1.5s;
}

.grid-line.vertical:nth-child(6) {
    left: 75%;
    animation-delay: 2.5s;
}

.cyber-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: nodePulse 3s ease-in-out infinite;
}

.cyber-node.node-1 {
    top: 20%;
    left: 25%;
    animation-delay: 0s;
}

.cyber-node.node-2 {
    top: 50%;
    left: 50%;
    animation-delay: 1s;
}

.cyber-node.node-3 {
    top: 80%;
    left: 75%;
    animation-delay: 2s;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@keyframes nodePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px var(--primary-color);
    }
    50% { 
        transform: scale(1.5);
        box-shadow: 0 0 20px var(--primary-color);
    }
}

/* About Me Image Styles */
.about-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-image {
    position: relative;
    flex-shrink: 0;
}

.headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-clip: border-box;
    z-index: -1;
    animation: borderRotate 6s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-text-content {
    flex: 1;
}


/* Achievement Metrics */
.achievement-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(31, 31, 35, 0.3);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.metric-item:hover::before {
    left: 100%;
}

.metric-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.metric-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.metric-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.metric-symbol {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

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

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

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color)
    );
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    text-align: right;
}

.timeline-item:nth-child(odd) .achievement {
    text-align: left;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    text-align: left;
}

.timeline-item:nth-child(even) .achievement {
    text-align: left;
}

.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-node:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.node-icon {
    font-size: 1.5rem;
    z-index: 2;
}

.node-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    opacity: 0.3;
    animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.timeline-content {
    width: 45%;
    background: rgba(31, 31, 35, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.1);
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: 100%;
    border-right-color: var(--border-color);
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: 100%;
    border-left-color: var(--border-color);
    transform: translateY(-50%);
}

.timeline-header h3 {
    font-family: "Orbitron", monospace;
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-achievements {
    margin-top: 1.5rem;
}

.achievement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
    text-align: left;
}

.timeline-item:nth-child(even) .achievement {
    animation: slideInRight 0.6s ease forwards;
}

.achievement:nth-child(1) { animation-delay: 0.2s; }
.achievement:nth-child(2) { animation-delay: 0.4s; }
.achievement:nth-child(3) { animation-delay: 0.6s; }

.achievement-icon {
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.achievement span:last-child {
    color: var(--text-muted);
    line-height: 1.4;
    flex: 1;
    text-align: left;
    word-wrap: break-word;
}

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

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

/* Mobile Timeline Styles */
@media (max-width: 768px) {
    .about-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .headshot {
        width: 150px;
        height: 150px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start \!important;
        text-align: left \!important;
        padding-left: 80px;
    }
    
    .timeline-node {
        left: 30px;
        width: 50px;
        height: 50px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
    }
    
    .timeline-content::before {
        right: 100% \!important;
        left: auto \!important;
        border-right-color: var(--border-color) \!important;
        border-left-color: transparent \!important;
    }
    
    .achievement {
        animation: slideInLeft 0.6s ease forwards \!important;
    }
}

/* Medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small screens (mobile) */
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@keyframes glitchBlink {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.3; transform: translateX(-2px); }
    50% { opacity: 1; transform: translateX(2px); }
    75% { opacity: 0.7; transform: translateX(-1px); }
}

/* Contact Page Styles */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(31, 31, 35, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.contact-details h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* Mobile Contact Styles */
@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Labs Section Styles */
.labs-content {
    max-width: 1200px;
    margin: 0 auto;
}

.labs-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.lab-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(31, 31, 35, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 150px;
    transition: all 0.3s ease;
}

.lab-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
}

.lab-stat .stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.lab-stat .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.labs-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-muted);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.box-card {
    background: rgba(31, 31, 35, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

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

.box-card:hover::before {
    left: 100%;
}

.box-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
}

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

.box-name {
    font-family: 'Orbitron', monospace;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.box-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.platform-badge.htb {
    background: linear-gradient(45deg, #9fef00, #7cb342);
    color: #1a1a1a;
}

.platform-badge.pg {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #1a1a1a;
}

.difficulty-badge.easy {
    background: linear-gradient(45deg, var(--success-color), #059669);
    color: white;
}

.difficulty-badge.medium {
    background: linear-gradient(45deg, var(--warning-color), #d97706);
    color: white;
}

.difficulty-badge.hard {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
}

.os-badge.windows {
    background: linear-gradient(45deg, #0078d4, #005a9e);
    color: white;
}

.os-badge.linux {
    background: linear-gradient(45deg, #fcc624, #f39c12);
    color: #1a1a1a;
}

.box-techniques {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.technique-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
}

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

.view-writeup-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    color: var(--bg-dark);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-writeup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.view-writeup-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

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

.modal-body {
    padding: 2rem;
}

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

.modal-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-techniques {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-writeup h4 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.modal-writeup li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.modal-writeup li::before {
    content: "▶";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 0.8rem;
}

/* Mobile Labs Styles */
@media (max-width: 768px) {
    .labs-stats {
        gap: 1.5rem;
    }
    
    .lab-stat {
        min-width: 120px;
        padding: 1rem;
    }
    
    .lab-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .boxes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .box-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .labs-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-badges {
        gap: 0.5rem;
    }
}
