
:root {
    --bg-base: #050816;
    --bg-surface: rgba(11, 16, 38, 0.7);
    --bg-surface-light: rgba(17, 25, 54, 0.7);
    --neon-cyan: #0ff;
    --neon-blue: #3b82f6;
    --neon-purple: #a855f7;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-border: rgba(0, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.text-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-glow {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3), 0 0 20px var(--neon-blue);
}

.tracking-wider {
    letter-spacing: 2px;
}


.particles-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--bg-surface-light) 0%, var(--bg-base) 100%);
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.p1 {
    width: 400px; height: 400px;
    background: var(--neon-blue);
    top: -100px; left: -100px;
    animation: float 15s infinite alternate ease-in-out;
}
.p2 {
    width: 300px; height: 300px;
    background: var(--neon-purple);
    bottom: 20%; right: -50px;
    animation: float 20s infinite alternate-reverse ease-in-out;
}
.p3 {
    width: 250px; height: 250px;
    background: var(--neon-cyan);
    top: 40%; left: 30%;
    animation: float 18s infinite alternate ease-in-out;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}


.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-badge {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-family: var(--font-heading);
}


.futuristic-nav {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}
.futuristic-nav.scrolled {
    padding: 0.8rem 0;
    background: rgba(11, 16, 38, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-link {
    color: var(--text-secondary) !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-left: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 255, 255,0.5);
}
.nav-link::before {
    content: '[';
    position: absolute;
    left: -10px;
    opacity: 0;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}
.nav-link::after {
    content: ']';
    position: absolute;
    right: -10px;
    opacity: 0;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}
.nav-link:hover::before, .nav-link.active::before {
    left: -15px; opacity: 1;
}
.nav-link:hover::after, .nav-link.active::after {
    right: -15px; opacity: 1;
}

.custom-toggler {
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
}
.custom-toggler:focus {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}


.btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-neon {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255,0.2), inset 0 0 10px rgba(0, 255, 255,0.1);
}
.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-base);
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px rgba(255,255,255,0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-2px);
}


.social-btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}


.hero {
    position: relative;
}
.greeting {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
}
.name {
    letter-spacing: 2px;
}


.hero-image-wrapper {
    position: relative;
    width: 340px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-pic {
    width: 280px;
    height: 380px;
    border-radius: 15px;
    object-fit: cover;
    z-index: 5;
    border: 3px solid rgba(0, 255, 255,0.5);
    filter: contrast(1.1) brightness(0.9);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}
.animated-ring {
    position: absolute;
    border-radius: 18px;
    border: 1px solid transparent;
}
.ring-1 {
    width: 300px; height: 400px;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    border-left-color: rgba(0,255,255,0.2);
    border-right-color: rgba(0,255,255,0.2);
    animation: pulse-ring 4s ease-in-out infinite;
}
.ring-2 {
    width: 320px; height: 420px;
    border-left-color: var(--neon-purple);
    border-right-color: var(--neon-purple);
    border-top-color: rgba(168,85,247,0.2);
    border-bottom-color: rgba(168,85,247,0.2);
    animation: pulse-ring 4s ease-in-out infinite 1s;
}
.ring-3 {
    width: 340px; height: 440px;
    border-color: var(--neon-blue);
    border-style: dashed;
    animation: pulse-ring 4s ease-in-out infinite 2s;
    opacity: 0.5;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}


.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    margin: 10px auto 0;
}


.card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.glass-card:hover .card-glow {
    opacity: 1;
}
.stat-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
}


.custom-progress {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: visible;
}
.progress-neon {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    position: relative;
    border-radius: 4px;
}
.progress-neon::after {
    content: '';
    position: absolute;
    right: -4px; top: -4px;
    width: 16px; height: 16px;
    background: var(--bg-base);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.skill-circ-card {
    transition: all 0.3s ease;
}
.skill-circ-card:hover {
    background: rgba(0, 255, 255,0.1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 255,0.2);
}


.futuristic-project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.1);
}
.project-img-box {
    position: relative;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
}
.project-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(40%) contrast(1.2);
}
.futuristic-project-card:hover .project-img-box img {
    transform: scale(1.1);
    filter: grayscale(0%);
}
.project-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
}
.project-number {
    font-family: var(--font-heading);
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    background: rgba(3, 10, 22, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--neon-cyan);
    z-index: 10;
}
.horizontal-project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.horizontal-project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.15);
}


.futuristic-timeline {
    position: relative;
}
.futuristic-timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), var(--neon-purple), transparent);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0; padding-right: 3rem;
}
.timeline-item:nth-child(even) {
    left: 50%; padding-left: 3rem;
}
.timeline-node {
    position: absolute;
    top: 20px;
    width: 20px; height: 20px;
    background: var(--bg-base);
    border: 3px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-cyan);
    z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-node {
    right: -10px;
}
.timeline-item:nth-child(even) .timeline-node {
    left: -10px;
}
.timeline-item .glass-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255,0.1);
    transform: translateX(odd ? -10px : 10px);
}


.service-card {
    border-top: 3px solid transparent;
}
.service-card:hover {
    border-top-color: var(--neon-cyan);
    transform: translateY(-10px);
}
.service-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.2);
}


.contact-link {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.contact-link:hover {
    background: rgba(0, 255, 255,0.05);
    border-color: rgba(0, 255, 255,0.1);
    transform: translateX(10px);
}
.contact-icon {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 255, 255,0.1);
    border-radius: 12px;
    font-size: 1.2rem;
}

.futuristic-input {
    position: relative;
}
.futuristic-input .form-control {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.futuristic-input .form-control:focus {
    background: rgba(0, 255, 255,0.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255,0.1);
}
.futuristic-input label {
    position: absolute;
    top: 1rem; left: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}
.futuristic-input .form-control:focus ~ label,
.futuristic-input .form-control:not(:placeholder-shown) ~ label {
    top: -10px; left: 10px;
    font-size: 0.8rem;
    background: var(--bg-surface);
    padding: 0 5px;
    color: var(--neon-cyan);
}


.hover-neon:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 5px var(--neon-cyan);
}
.back-to-top {
    position: absolute;
    top: -25px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-surface);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0; pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 255, 255,0.2);
    text-decoration: none;
}
.back-to-top.show {
    opacity: 1; pointer-events: auto;
}
.back-to-top:hover {
    background: var(--neon-cyan);
    color: var(--bg-base);
    box-shadow: 0 0 25px var(--neon-cyan);
}


.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1; transform: translate(0);
}


.contact-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(13,202,240,0.2);
}
.contact-card .icon-wrapper {
    transition: all 0.4s ease;
}
.contact-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 25px currentColor;
}


@media (max-width: 991px) {
    .futuristic-timeline::before { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px !important; padding-right: 0 !important; left: 0 !important; }
    .timeline-node { left: 20px !important; }
    
    .hero { text-align: center; padding-top: 100px; }
    .nav-link { margin-left: 0; padding: 1rem 0; text-align: center; }
    .nav-link::before, .nav-link::after { display: none; }
    .hero-image-wrapper { width: 300px; height: 300px; margin-top: 2rem; }
    .profile-pic { width: 240px; height: 240px; }
    .ring-1 { width: 280px; height: 280px; }
    .ring-2 { width: 300px; height: 300px; }
    .ring-3 { width: 320px; height: 320px; }
}


.cert-card {
    transition: all 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
}
.hover-glow:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
}


.tech-node {
    background: rgba(3, 10, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}
.tech-node:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}
.tech-node.border-neon:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 15px var(--neon-cyan);
}
.tech-node.border-purple:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 5px 15px var(--neon-purple);
}

.mission-roadmap {
    background: linear-gradient(135deg, rgba(13, 25, 48, 0.8), rgba(3, 10, 22, 0.9));
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.mission-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(168,85,247,0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(0, 255, 255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}


.skill-futuristic-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.05);
}
.skill-futuristic-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(13, 25, 48, 0.8);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.1);
}
.hover-glow-green:hover { border-color: #198754; box-shadow: 0 15px 35px rgba(25, 135, 84, 0.15); }
.hover-glow-blue:hover { border-color: #0d6efd; box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15); }
.hover-glow-cyan:hover { border-color: #0dcaf0; box-shadow: 0 15px 35px rgba(13, 202, 240, 0.15); }
.hover-glow-red:hover { border-color: #dc3545; box-shadow: 0 15px 35px rgba(220, 53, 69, 0.15); }


.certificate-wrapper {
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 6px;
    background: rgba(0, 255, 255, 0.03);
    cursor: pointer;
}
.certificate-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}
.certificate-wrapper:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), inset 0 0 15px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}
.certificate-wrapper:hover .certificate-img {
    filter: brightness(1.1) contrast(1.1);
}


.digital-profile-frame {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.digital-profile-frame img {
    transition: all 0.4s ease;
}
.digital-profile-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4), 0 0 20px rgba(0, 255, 255, 0.4) !important;
}
.digital-profile-frame:hover img {
    filter: brightness(1.15) contrast(1.05);
}
.digital-profile-frame .position-absolute {
    transition: all 0.4s ease;
}
.digital-profile-frame:hover .position-absolute {
    opacity: 0.3;
}

.floating-element {
    animation: floatingEffect 6s ease-in-out infinite;
}

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


@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .grid-overlay {
        animation: none !important;
    }
    

/* Futuristic PDF Modal Styles */
.futuristic-modal .modal-content {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.futuristic-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.pdf-viewer-container iframe {
    background-color: #ffffff;
}

.border-cyan {
    border-color: rgba(0, 255, 255, 0.4) !important;
}


