/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #00f2fe;
    --dark-bg: #0a192f;
    --darker-bg: #020c1b;
    --text-color: #e6f1ff;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

.main-content, .sidebar, .mobile-nav, .bottom-nav, .project-card, .skill-group, .intro-overlay {
    background: none;
    color: inherit;
}

a, .sidebar-nav a, .mobile-nav a, .bottom-nav a, .theme-switch-btn {
    color: var(--accent-color);
    background: transparent;
    border: none;
}

a:hover, .sidebar-nav a:hover, .mobile-nav a:hover, .bottom-nav a:hover, .theme-switch-btn:hover {
    color: var(--primary-color);
    background: #112240;
}

.badge, .cert-badge {
    background: rgba(100,255,218,0.08);
    color: var(--accent-color);
    border: 1px solid #64ffda44;
}

.project-card, .skill-group {
    border: 1px solid #112240;
    box-shadow: 0 2px 12px #11224044;
}

.section, .section-inner {
    border-bottom: 1px solid #112240;
}

::-webkit-scrollbar {
    background: #0a192f;
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #112240;
}

input, textarea {
    background: rgba(255,255,255,0.05);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.1);
}

input:focus, textarea:focus {
    outline: 1px solid var(--accent-color);
}

.download-cv-btn, .view-all-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.download-cv-btn:hover, .view-all-btn:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
}

.sidebar-logo, .main-title, .subtitle, h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .sidebar, .mobile-nav, .bottom-nav, .main-content {
        background: none;
        color: inherit;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

/* About Section */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    color: var(--text-secondary);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary-color);
    font-weight: bold;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tags span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Skills Section */
.skills-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}
.skill-group {
    min-width: 220px;
    flex: 1 1 220px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skill-group h3 {
    text-align: center;
    margin-bottom: 1rem;
}
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}
.badge {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background: var(--darker-bg);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 2rem 0 1rem 0;
    text-align: center;
    border-top: 2.5px solid #64ffda33;
    box-shadow: 0 -2px 16px #00f2fe22;
    position: relative;
    z-index: 2;
    animation: none;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: #64ffda;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s, text-shadow 0.3s, transform 0.2s;
    text-shadow: 0 0 8px #64ffda44;
    animation: none;
}

.social-links a:hover {
    color: #00f2fe;
    text-shadow: 0 0 16px #00f2fe, 0 0 8px #64ffda;
    transform: none;
    animation: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .about-content, .timeline-item, .project-card, .skill-group {
    animation: fadeIn 1s ease-out;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a192f 80%, #112240 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(.4,2,.6,1), visibility 0.6s;
}
.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.cyber-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.loader-ring {
    fill: none;
    stroke: #64ffda;
    stroke-width: 6;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: ring-spin 1.2s linear infinite;
    filter: drop-shadow(0 0 8px #64ffda);
}
@keyframes ring-spin {
    100% { stroke-dashoffset: 200; }
}
.loader-dot {
    fill: #007bff;
    filter: drop-shadow(0 0 8px #007bff);
    animation: dot-bounce 1.2s infinite alternate;
}
@keyframes dot-bounce {
    0% { cy: 16; }
    50% { cy: 8; }
    100% { cy: 16; }
}
.loader-text {
    color: #64ffda;
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 0 8px #64ffda, 0 0 2px #007bff;
    margin-top: 0.5rem;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: #64ffda;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 0 8px #64ffda, 0 0 2px #007bff;
    animation: none;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    overflow: hidden;
    color: #00f2fe;
    z-index: 1;
    opacity: 0.7;
}
.glitch::before {
    left: 2px; text-shadow: -2px 0 #00f2fe;
    animation: none;
}
.glitch::after {
    left: -2px; text-shadow: 2px 0 #007bff;
    animation: none;
}

/* Hero Section Polish */
.hero.cyber-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0a192f 80%, #112240 100%);
    position: relative;
    z-index: 1;
}
.hero-content {
    z-index: 2;
    position: relative;
    padding: 3rem 2rem 2rem 2rem;
    background: rgba(10, 25, 47, 0.7);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.25);
    border: 1.5px solid rgba(100,255,218,0.08);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1.2s cubic-bezier(.4,2,.6,1);
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}
.cyber-title {
    font-size: 1.5rem;
    color: #00f2fe;
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px #00f2fe;
}
.cyber-intro {
    margin-bottom: 1.2rem;
}
.cyber-tag {
    display: inline-block;
    background: rgba(100,255,218,0.08);
    color: #64ffda;
    border: 1px solid #64ffda44;
    border-radius: 12px;
    padding: 0.3rem 1rem;
    margin: 0 0.2rem 0.5rem 0.2rem;
    font-size: 0.95rem;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 8px #64ffda22;
    transition: background 0.3s;
}
.cyber-tag:hover {
    background: #64ffda22;
}
.cyber-quote {
    color: #8892b0;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.hero-buttons {
    margin-bottom: 1.5rem;
}
.hero-buttons .cta-button {
    margin: 0 0.5rem 0.5rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.hero-socials {
    margin-top: 1.2rem;
}
.hero-socials a {
    color: #64ffda;
    font-size: 1.5rem;
    margin: 0 0.7rem;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 0 8px #64ffda44;
}
.hero-socials a:hover {
    color: #00f2fe;
    text-shadow: 0 0 16px #00f2fe;
}

/* Responsive for Hero */
@media (max-width: 600px) {
    .hero-content {
        padding: 1.5rem 0.5rem;
        max-width: 98vw;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .cyber-title {
        font-size: 1.1rem;
    }
}

/* Section Hero Header */
.section-hero {
    width: 100vw;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    z-index: 1;
}
.cyber-section-hero {
    background: linear-gradient(120deg, #0a192f 70%, #112240 100%);
    background-size: 200% 200%;
    animation: cyber-gradient-move 6s ease-in-out infinite alternate;
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.18);
    border-bottom: 2px solid #64ffda33;
    position: relative;
    overflow: hidden;
}
.cyber-section-hero::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    z-index: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"><g stroke="%2364ffda55" stroke-width="1"><line x1="0" y1="0" x2="100%25" y2="0"/><line x1="0" y1="20" x2="100%25" y2="20"/><line x1="0" y1="40" x2="100%25" y2="40"/><line x1="0" y1="60" x2="100%25" y2="60"/><line x1="0" y1="80" x2="100%25" y2="80"/><line x1="0" y1="100" x2="100%25" y2="100"/><line x1="0" y1="120" x2="100%25" y2="120"/><line x1="0" y1="140" x2="100%25" y2="140"/><line x1="0" y1="160" x2="100%25" y2="160"/><line x1="0" y1="180" x2="100%25" y2="180"/><line x1="0" y1="200" x2="100%25" y2="200"/><line x1="0" y1="220" x2="100%25" y2="220"/><line x1="0" y1="240" x2="100%25" y2="240"/><line x1="0" y1="260" x2="100%25" y2="260"/><line x1="0" y1="280" x2="100%25" y2="280"/><line x1="0" y1="300" x2="100%25" y2="300"/><line x1="0" y1="320" x2="100%25" y2="320"/><line x1="0" y1="340" x2="100%25" y2="340"/><line x1="0" y1="360" x2="100%25" y2="360"/><line x1="0" y1="380" x2="100%25" y2="380"/><line x1="0" y1="400" x2="100%25" y2="400"/><line x1="0" y1="420" x2="100%25" y2="420"/><line x1="0" y1="440" x2="100%25" y2="440"/><line x1="0" y1="460" x2="100%25" y2="460"/><line x1="0" y1="480" x2="100%25" y2="480"/><line x1="0" y1="500" x2="100%25" y2="500"/><line x1="0" y1="520" x2="100%25" y2="520"/><line x1="0" y1="540" x2="100%25" y2="540"/><line x1="0" y1="560" x2="100%25" y2="560"/><line x1="0" y1="580" x2="100%25" y2="580"/><line x1="0" y1="600" x2="100%25" y2="600"/><line x1="0" y1="620" x2="100%25" y2="620"/><line x1="0" y1="640" x2="100%25" y2="640"/><line x1="0" y1="660" x2="100%25" y2="660"/><line x1="0" y1="680" x2="100%25" y2="680"/><line x1="0" y1="700" x2="100%25" y2="700"/><line x1="0" y1="720" x2="100%25" y2="720"/><line x1="0" y1="740" x2="100%25" y2="740"/><line x1="0" y1="760" x2="100%25" y2="760"/><line x1="0" y1="780" x2="100%25" y2="780"/><line x1="0" y1="800" x2="100%25" y2="800"/><line x1="0" y1="820" x2="100%25" y2="820"/><line x1="0" y1="840" x2="100%25" y2="840"/><line x1="0" y1="860" x2="100%25" y2="860"/><line x1="0" y1="880" x2="100%25" y2="880"/><line x1="0" y1="900" x2="100%25" y2="900"/><line x1="0" y1="920" x2="100%25" y2="920"/><line x1="0" y1="940" x2="100%25" y2="940"/><line x1="0" y1="960" x2="100%25" y2="960"/><line x1="0" y1="980" x2="100%25" y2="980"/><line x1="0" y1="1000" x2="100%25" y2="1000"/><line x1="0" y1="0" x2="0" y2="1000"/><line x1="20" y1="0" x2="20" y2="1000"/><line x1="40" y1="0" x2="40" y2="1000"/><line x1="60" y1="0" x2="60" y2="1000"/><line x1="80" y1="0" x2="80" y2="1000"/><line x1="100" y1="0" x2="100" y2="1000"/><line x1="120" y1="0" x2="120" y2="1000"/><line x1="140" y1="0" x2="140" y2="1000"/><line x1="160" y1="0" x2="160" y2="1000"/><line x1="180" y1="0" x2="180" y2="1000"/><line x1="200" y1="0" x2="200" y2="1000"/><line x1="220" y1="0" x2="220" y2="1000"/><line x1="240" y1="0" x2="240" y2="1000"/><line x1="260" y1="0" x2="260" y2="1000"/><line x1="280" y1="0" x2="280" y2="1000"/><line x1="300" y1="0" x2="300" y2="1000"/><line x1="320" y1="0" x2="320" y2="1000"/><line x1="340" y1="0" x2="340" y2="1000"/><line x1="360" y1="0" x2="360" y2="1000"/><line x1="380" y1="0" x2="380" y2="1000"/><line x1="400" y1="0" x2="400" y2="1000"/><line x1="420" y1="0" x2="420" y2="1000"/><line x1="440" y1="0" x2="440" y2="1000"/><line x1="460" y1="0" x2="460" y2="1000"/><line x1="480" y1="0" x2="480" y2="1000"/><line x1="500" y1="0" x2="500" y2="1000"/><line x1="520" y1="0" x2="520" y2="1000"/><line x1="540" y1="0" x2="540" y2="1000"/><line x1="560" y1="0" x2="560" y2="1000"/><line x1="580" y1="0" x2="580" y2="1000"/><line x1="600" y1="0" x2="600" y2="1000"/><line x1="620" y1="0" x2="620" y2="1000"/><line x1="640" y1="0" x2="640" y2="1000"/><line x1="660" y1="0" x2="660" y2="1000"/><line x1="680" y1="0" x2="680" y2="1000"/><line x1="700" y1="0" x2="700" y2="1000"/><line x1="720" y1="0" x2="720" y2="1000"/><line x1="740" y1="0" x2="740" y2="1000"/><line x1="760" y1="0" x2="760" y2="1000"/><line x1="780" y1="0" x2="780" y2="1000"/><line x1="800" y1="0" x2="800" y2="1000"/><line x1="820" y1="0" x2="820" y2="1000"/><line x1="840" y1="0" x2="840" y2="1000"/><line x1="860" y1="0" x2="860" y2="1000"/><line x1="880" y1="0" x2="880" y2="1000"/><line x1="900" y1="0" x2="900" y2="1000"/><line x1="920" y1="0" x2="920" y2="1000"/><line x1="940" y1="0" x2="940" y2="1000"/><line x1="960" y1="0" x2="960" y2="1000"/><line x1="980" y1="0" x2="980" y2="1000"/><line x1="1000" y1="0" x2="1000" y2="1000"/></g></svg>');
    opacity: 0.18;
    pointer-events: none;
    animation: cyber-grid-move 12s linear infinite alternate;
}
@keyframes cyber-grid-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(10, 25, 47, 0.82);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.28), 0 0 0 2px #64ffda33;
    border: 2px solid #64ffda33;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    margin: 2rem auto 2rem auto;
    max-width: 700px;
    animation: fadeSlideIn 1.2s cubic-bezier(.4,2,.6,1);
    transition: box-shadow 0.3s, border 0.3s;
    perspective: 800px;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, border 0.3s;
}
.glass-card:hover {
    box-shadow: 0 0 32px 4px #64ffda55, 0 8px 32px 0 rgba(16, 32, 64, 0.38);
    border: 2.5px solid #00f2fe;
    transform: none !important;
}
.about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about-text {
    color: #e6f1ff;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    .section-hero {
        min-height: 100px;
    }
    .glow-title {
        font-size: 1.5rem;
        padding: 1.2rem 0 0.7rem 0;
    }
    .glass-card {
        padding: 1.2rem 0.5rem;
    }
    .about-text {
        font-size: 1rem;
    }
}

/* --- NAVBAR ACTIVE GLOW --- */
.nav-links a.active {
    color: #64ffda;
    position: relative;
}
.nav-links a.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #00f2fe 0%, #64ffda 100%);
    box-shadow: 0 0 8px #64ffda, 0 0 16px #00f2fe;
    animation: nav-underline-glow 1.2s infinite alternate;
}
@keyframes nav-underline-glow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- BUTTON & BADGE HOVER --- */
.cta-button, .badge, .cert-badge {
    transition: box-shadow 0.3s, border 0.3s, background 0.3s, color 0.3s, transform 0.2s;
    animation: none !important;
}
.cta-button:hover, .badge:hover, .cert-badge:hover {
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.18);
    border-color: #00f2fe;
    background: #112240;
    color: #00f2fe;
    transform: none !important;
}

/* --- SECTION FADE/SLIDE-IN --- */
.section-fade {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
}
.section-fade.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- MODERN MONO FONT FOR HEADINGS --- */
h1, h2, h3, h4, .glow-title, .timeline-title {
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.04em;
}

/* --- ENHANCED SECTION FADE/SLIDE-IN JS SUPPORT --- */
.section-fade {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
}
.section-fade.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#matrix-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
}

body, .navbar, .hero, .section-hero, .glass-card, .footer, .svg-divider {
    position: relative;
    z-index: 1;
}

.svg-divider {
    width: 100vw;
    overflow: hidden;
    margin-top: -2px;
    margin-bottom: -2px;
    z-index: 2;
}
.svg-divider svg {
    display: block;
    width: 100vw;
    height: 80px;
}

.hero.cyber-hero {
    box-shadow: 0 0 32px #00f2fe33, 0 8px 32px 0 rgba(16, 32, 64, 0.18);
    border-bottom: 2px solid #64ffda33;
    background: transparent;
}

/* --- ANIMATED NEON BORDER (PULSE) --- */
@keyframes neon-pulse {
    0%, 100% { box-shadow: 0 0 16px #00f2fe, 0 0 32px #64ffda44, 0 0 0 #00f2fe00; border-color: #64ffda; }
    50% { box-shadow: 0 0 32px #00f2fe, 0 0 64px #64ffda99, 0 0 8px #00f2fe; border-color: #00f2fe; }
}
.glass-card, .cta-button, .badge, .cert-badge {
    animation: none !important;
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.18);
    border: 1.5px solid rgba(100,255,218,0.13);
    animation: neon-pulse 2.5s infinite alternate;
}

/* --- 3D CARD HOVER (TILT) --- */
.glass-card {
    perspective: 800px;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, border 0.3s;
}
.glass-card:hover {
    transform: rotateY(8deg) scale(1.03);
}

/* --- SCANLINE OVERLAY --- */
.scanlines {
    pointer-events: none;
    position: fixed;
    z-index: 100;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: repeating-linear-gradient(
        to bottom,
        rgba(100,255,218,0.04) 0px,
        rgba(100,255,218,0.04) 1px,
        transparent 1px,
        transparent 4px
    );
    mix-blend-mode: lighten;
    opacity: 0.18;
    pointer-events: none;
}

/* --- ANIMATED SVG DIVIDER --- */
.svg-divider svg path {
    stroke-dasharray: 12 6;
    stroke-dashoffset: 0;
    animation: svg-divider-dash 3s linear infinite alternate;
}
@keyframes svg-divider-dash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 36; }
}

/* --- SOCIAL ICON PULSE/GLITCH --- */
@keyframes social-pulse {
    0%, 100% { text-shadow: 0 0 8px #64ffda44, 0 0 0 #00f2fe00; }
    50% { text-shadow: 0 0 16px #00f2fe, 0 0 8px #64ffda; }
}
.social-links a {
    animation: social-pulse 2.2s infinite alternate;
}
.social-links a:hover {
    animation: social-pulse 0.4s infinite alternate, glitch-skew 1.5s infinite linear alternate-reverse;
}

/* --- PULSING GLOW FOR TITLES --- */
@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 16px #64ffda, 0 0 2px #00f2fe, 0 0 32px #007bff44; }
    50% { text-shadow: 0 0 32px #00f2fe, 0 0 8px #64ffda, 0 0 64px #00f2fe44; }
}
.glow-title, .timeline-title {
    animation: glow-pulse 2.5s infinite alternate;
}

/* --- ANIMATED GLOWING FOOTER BORDER --- */
@keyframes footer-glow {
    0%, 100% { box-shadow: 0 -2px 16px #00f2fe22, 0 0 0 #00f2fe00; border-top-color: #64ffda33; }
    50% { box-shadow: 0 -2px 32px #00f2fe99, 0 0 8px #64ffda; border-top-color: #00f2fe; }
}
footer {
    animation: footer-glow 2.5s infinite alternate;
}

/* --- ENSURE SCANLINES ON BODY --- */
body { position: relative; }

/* Fix certifications alignment */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}
.cert-badge {
    display: flex;
    align-items: center;
    background: rgba(100,255,218,0.08);
    color: #64ffda;
    border: 1px solid #64ffda44;
    border-radius: 18px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 8px #64ffda22;
    margin-bottom: 0.5rem;
}
.cert-badge i {
    margin-right: 0.5rem;
}

/* Fix achievements alignment */
.achievements-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-left: 0;
}
.achievements-list li {
    list-style: none;
    background: rgba(100,255,218,0.08);
    color: #64ffda;
    border: 1px solid #64ffda44;
    border-radius: 18px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 8px #64ffda22;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 600px;
    margin-bottom: 0.2rem;
}
.achievements-list li i {
    margin-right: 0.5rem;
    color: #00f2fe;
}

@media (max-width: 900px) {
    .skills-flex {
        flex-direction: column;
        align-items: center;
    }
    .skill-group {
        min-width: 0;
        width: 100%;
        max-width: 400px;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 220px;
    background: #0a192f;
    color: #e6f1ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    box-shadow: 2px 0 16px #11224044;
    padding: 2rem 0 1rem 0;
}
.sidebar-logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #64ffda;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    flex: 1;
}
.sidebar-nav a {
    color: #e6f1ff;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0.5rem 2rem;
    border-left: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.sidebar-nav a span {
    color: #64ffda;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 0.3rem;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #64ffda;
    background: #112240;
    border-left: 3px solid #64ffda;
}
.sidebar-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.sidebar-socials a {
    color: #64ffda;
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}
.sidebar-socials a:hover {
    color: #00f2fe;
    transform: scale(1.15);
}

/* Main Content Styles */
.main-content {
    margin-left: 220px;
    padding: 0;
    background: #0a192f;
    min-height: 100vh;
}
.section {
    padding: 80px 0 60px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10,25,47,0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.18);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-inner h2 {
    font-size: 2.2rem;
    color: #64ffda;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.section-inner h2 span {
    color: #00f2fe;
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Home Section */
.home-section .section-inner {
    background: none;
    box-shadow: none;
    padding: 5rem 2rem 3rem 2rem;
    align-items: center;
    text-align: center;
}
.main-title {
    font-size: 2.8rem;
    color: #64ffda;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1.2rem;
}
.subtitle {
    font-size: 1.5rem;
    color: #00f2fe;
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px #00f2fe;
}
.tagline {
    color: #e6f1ff;
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
}
.download-cv-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Share Tech Mono', monospace, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 2rem;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.download-cv-btn:hover {
    background: #64ffda;
    color: #0a192f;
    border: 2px solid #00f2fe;
    transform: scale(1.05);
}
.home-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.home-socials a {
    color: #64ffda;
    font-size: 1.7rem;
    transition: color 0.2s, transform 0.2s;
}
.home-socials a:hover {
    color: #00f2fe;
    transform: scale(1.15);
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 60px;
        min-width: 60px;
        height: 100vh;
        padding: 10px 0;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
        border-right: 2px solid #3498db;
        background: #1e1e1e;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sidebar-logo {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    .sidebar-nav a {
        font-size: 0.9em;
        padding: 8px 0;
        text-align: center;
        display: block;
    }
    .sidebar-socials {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .theme-switch-btn {
        font-size: 0.9em;
        padding: 8px 10px;
        margin-top: 10px;
    }
    .main-content {
        margin: 10px 0 0 70px;
        padding: 10px;
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100vw;
        height: 50px;
        min-width: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        border-right: none;
        border-bottom: 2px solid #3498db;
        box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }
    .sidebar-logo {
        font-size: 1em;
        margin: 0;
    }
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    .sidebar-nav a {
        font-size: 0.8em;
        padding: 0 4px;
    }
    .sidebar-socials {
        flex-direction: row;
        gap: 8px;
        margin: 0;
    }
    .theme-switch-btn {
        font-size: 0.8em;
        padding: 6px 8px;
        margin: 0;
    }
    .main-content {
        margin: 60px 0 0 0;
        padding: 6px;
        border-radius: 0;
    }
    .section-inner {
        padding: 0 2px;
    }
    .projects-grid, .skills-flex {
        flex-direction: column !important;
        gap: 12px;
    }
    .project-card, .skill-group {
        width: 100% !important;
        min-width: 0;
        font-size: 1em;
        margin: 0 auto 10px auto;
    }
    .intro-loading {
        font-size: 1.3em;
        padding: 0 10px;
        text-align: center;
    }
}

/* Hacker Terminal Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 1s ease-out;
}
.intro-terminal {
    font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
    color: #33ff33;
    font-size: 2em;
    background: #181818;
    padding: 40px 60px;
    border-radius: 10px;
    box-shadow: 0 0 40px #000;
}
.terminal-prompt {
    color: #00e0e0;
}
.blinking-cursor {
    animation: blink 1s steps(2, start) infinite;
    color: #33ff33;
}
@keyframes blink {
    to { opacity: 0; }
}

/* Hamburger Menu */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    z-index: 2100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #39ff14;
    border-radius: 2px;
    transition: 0.3s;
}
.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #181818ee;
    z-index: 2099;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: 0.3s;
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav a {
    color: #39ff14;
    font-size: 1.4em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover {
    background: #222;
    color: #fff;
}

/* Sticky Bottom Nav */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #181818ee;
    z-index: 2098;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    border-top: 2px solid #39ff14;
}
.bottom-nav a {
    color: #39ff14;
    font-size: 1.5em;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.bottom-nav a:hover {
    background: #222;
    color: #fff;
}

/* Card Redesign */
.project-card, .skill-group {
    background: #181818;
    border-radius: 12px;
    box-shadow: 0 2px 12px #000a;
    padding: 18px 16px;
    margin-bottom: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
}
.project-card:active, .skill-group:active, .project-card:hover, .skill-group:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px #39ff1444;
}

/* Scroll Reveal Animation */
.section, .project-card, .skill-group {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
.section.reveal, .project-card.reveal, .skill-group.reveal {
    opacity: 1;
    transform: none;
}

/* Responsive: Show/hide navs */
@media (max-width: 900px) {
    .sidebar { display: none !important; }
    .mobile-nav-toggle { display: flex; }
    .bottom-nav { display: flex; }
}
@media (max-width: 600px) {
    .mobile-nav a { font-size: 1.1em; padding: 10px 12px; }
    .project-card, .skill-group { font-size: 1em; padding: 12px 8px; }
} 