/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --neon-cyan: #00f7ff;
    --neon-purple: #b700ff;
    --neon-magenta: #ff00ff;
    --neon-blue: #00d4ff;
    --bg-primary: #000000;
    --bg-secondary: #0a0e27;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 247, 255, 0.2);
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========================================
   Global Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at top, var(--bg-secondary), var(--bg-primary));
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.fp-watermark {
    display: none !important;
}

/* ========================================
   Typography
   ======================================== */
h1 {
    font-family: var(--font-title);
    font-size: 2.8em;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow:
        0 0 7px var(--neon-cyan),
        0 0 15px var(--neon-cyan),
        0 0 30px var(--neon-cyan),
        0 0 50px rgba(0, 247, 255, 0.3);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

h2 {
    font-family: var(--font-title);
    font-size: 2.2em;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow:
        0 0 7px var(--neon-cyan),
        0 0 15px var(--neon-cyan),
        0 0 30px rgba(0, 247, 255, 0.3);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

h3 {
    font-family: var(--font-title);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--neon-purple);
    text-shadow:
        0 0 5px var(--neon-purple),
        0 0 10px rgba(183, 0, 255, 0.3);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    color: var(--text-secondary);
}

/* ========================================
   Glow Text Utility
   ======================================== */
.glow-text {
    color: var(--neon-purple);
    text-shadow:
        0 0 7px var(--neon-purple),
        0 0 15px var(--neon-purple),
        0 0 30px var(--neon-purple),
        0 0 50px rgba(183, 0, 255, 0.4);
}

/* ========================================
   Glass Panel
   ======================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(135deg,
        rgba(0, 247, 255, 0.05) 0%,
        transparent 50%,
        rgba(183, 0, 255, 0.05) 100%);
    pointer-events: none;
}

/* ========================================
   Layout
   ======================================== */
.section {
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 247, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ========================================
   Section Entry Animations
   ======================================== */
.section .container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active .container > * {
    opacity: 1;
    transform: translateY(0);
}

.section.active .container > *:nth-child(1) { transition-delay: 0.1s; }
.section.active .container > *:nth-child(2) { transition-delay: 0.2s; }
.section.active .container > *:nth-child(3) { transition-delay: 0.3s; }
.section.active .container > *:nth-child(4) { transition-delay: 0.4s; }
.section.active .container > *:nth-child(5) { transition-delay: 0.5s; }
.section.active .container > *:nth-child(6) { transition-delay: 0.6s; }
.section.active .container > *:nth-child(7) { transition-delay: 0.7s; }
.section.active .container > *:nth-child(8) { transition-delay: 0.8s; }

/* ========================================
   Particles Background
   ======================================== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow:
        0 0 6px var(--neon-cyan),
        0 0 12px var(--neon-cyan);
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(50px);
    }
}

/* ========================================
   Typewriter Effect
   ======================================== */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-cyan);
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: fit-content;
}

.typewriter.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-cyan); }
}

/* ========================================
   Cyber Button
   ======================================== */
.cyber-btn {
    background: transparent;
    color: var(--neon-cyan);
    padding: 14px 40px;
    text-decoration: none;
    border: 2px solid var(--neon-cyan);
    border-radius: 0;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: inline-block;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 5px rgba(0, 247, 255, 0.3),
        inset 0 0 5px rgba(0, 247, 255, 0.1);
    animation: float 3s ease-in-out infinite;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.cyber-btn:hover {
    background: rgba(0, 247, 255, 0.15);
    box-shadow:
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px rgba(0, 247, 255, 0.3),
        inset 0 0 10px rgba(0, 247, 255, 0.2);
    text-shadow: 0 0 8px var(--neon-cyan);
    transform: translateY(-3px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   Achievements
   ======================================== */
.achievements-panel {
    margin: 15px 0;
    max-width: 900px;
    width: 100%;
}

.achievements-panel table {
    width: 100%;
    border-collapse: collapse;
}

.achievements-panel td {
    vertical-align: top;
    padding: 10px 20px;
    width: 50%;
}

.achievements-list {
    list-style: none;
    margin: 0;
    text-align: left;
}

.achievements-list li {
    margin: 8px 0;
    font-size: 1em;
    font-weight: 400;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.achievements-list li:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.3);
}

.achievements-list li::before {
    content: ">";
    color: var(--neon-cyan);
    font-family: var(--font-title);
    font-weight: 700;
    margin-right: 12px;
    font-size: 0.9em;
    text-shadow: 0 0 5px var(--neon-cyan);
    flex-shrink: 0;
}

/* ========================================
   Portfolio Slider
   ======================================== */
.portfolio-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
}

.portfolio-slider {
    display: flex;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-item {
    min-width: 100%;
    transition: transform 0.5s ease;
    padding: 20px;
}

.portfolio-item img {
    width: 100%;
    max-width: 600px;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.15);
    transition: all 0.4s ease;
}

.portfolio-item:hover img {
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 15px rgba(0, 247, 255, 0.3),
        0 0 30px rgba(0, 247, 255, 0.15);
    transform: scale(1.02);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(0, 247, 255, 0.1);
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 0 8px rgba(0, 247, 255, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 247, 255, 0.25);
    box-shadow:
        0 0 15px var(--neon-cyan),
        0 0 30px rgba(0, 247, 255, 0.3);
    transform: scale(1.15);
}

/* ========================================
   Card Grid & Cards
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
}

.card {
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 247, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 10px rgba(0, 247, 255, 0.2),
        0 0 25px rgba(0, 247, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(183, 0, 255, 0.3);
    box-shadow: 0 0 8px rgba(183, 0, 255, 0.15);
    transition: all 0.4s ease;
}

.card:hover img {
    border-color: var(--neon-magenta);
    box-shadow:
        0 0 12px rgba(255, 0, 255, 0.3),
        0 0 25px rgba(255, 0, 255, 0.15);
    transform: scale(1.03);
}

/* Card Icon */
.card-icon {
    display: inline-block;
    font-size: 1.5em;
    margin-right: 8px;
    filter: drop-shadow(0 0 4px var(--neon-cyan));
    transition: transform 0.4s ease, filter 0.4s ease;
    vertical-align: middle;
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 15px var(--neon-cyan));
}

/* Card staggered entrance */
.card-grid .card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease-out, border-color 0.4s ease-out;
}

.section.active .card-grid .card {
    opacity: 1;
    transform: translateY(0);
}

.section.active .card-grid .card:nth-child(1) { transition-delay: 0.3s; }
.section.active .card-grid .card:nth-child(2) { transition-delay: 0.5s; }
.section.active .card-grid .card:nth-child(3) { transition-delay: 0.7s; }

.section.active .card-grid .card:hover {
    transition-delay: 0s;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-panel {
    margin: 20px 0;
    max-width: 600px;
    width: 100%;
}

.contact-info {
    margin: 0;
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.15em;
    color: var(--text-secondary);
    text-align: left;
    max-width: none;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: var(--text-primary);
}

.contact-info a {
    color: var(--neon-cyan);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transition: width 0.4s ease;
}

.contact-info a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
}

.contact-info a:hover::after {
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */
#footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta)) 1;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

#footer p {
    max-width: none;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

#footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

#footer a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* ========================================
   Fullpage.js Navigation Override
   ======================================== */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background: transparent !important;
    border: 2px solid var(--neon-cyan) !important;
    width: 10px !important;
    height: 10px !important;
    margin: -5px 0 0 -5px !important;
    box-shadow: 0 0 6px rgba(0, 247, 255, 0.4);
    transition: all 0.3s ease !important;
}

#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a span {
    background: var(--neon-cyan) !important;
    box-shadow:
        0 0 8px var(--neon-cyan),
        0 0 16px var(--neon-cyan) !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.fp-tooltip {
    color: var(--neon-cyan) !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 4px 12px !important;
    border: 1px solid rgba(0, 247, 255, 0.3) !important;
    border-radius: 3px !important;
    backdrop-filter: blur(10px) !important;
    text-shadow: 0 0 5px rgba(0, 247, 255, 0.3);
}

/* ========================================
   Scan Line Effect (subtle)
   ======================================== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
        text-shadow:
            0 0 5px var(--neon-cyan),
            0 0 10px var(--neon-cyan);
    }

    h2 {
        font-size: 1.6em;
        text-shadow:
            0 0 5px var(--neon-cyan),
            0 0 10px rgba(0, 247, 255, 0.3);
    }

    h3 {
        font-size: 1.1em;
    }

    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievements-panel {
        max-width: 100%;
        padding: 15px;
    }

    .achievements-panel td {
        display: block;
        width: 100%;
        padding: 5px 10px;
    }

    .achievements-panel tr {
        display: block;
    }

    .portfolio-item img {
        height: 250px;
    }

    .cyber-btn {
        padding: 12px 25px;
        font-size: 0.85em;
        animation: none;
    }

    .card:hover {
        transform: translateY(-5px);
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-panel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.3em;
    }

    .container {
        padding: 0 10px;
    }

    .glass-panel {
        padding: 15px;
    }

    .portfolio-item {
        padding: 10px;
    }

    .portfolio-item img {
        height: 200px;
    }
}
