/* Base Styles */

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

body {
    color: white;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    transition: background 1s ease;
}

/* Background Layers */
:root {
    --space-gradient-1: linear-gradient(45deg, #0f0f1a 0%, #1a1a2f 100%);
    --space-gradient-2: linear-gradient(45deg, #0f1a1f 0%, #1a2f2a 100%);
    --space-gradient-3: linear-gradient(45deg, #1f0f1a 0%, #2a1a2f 100%);
    --space-gradient-4: linear-gradient(45deg, #0f1f1a 0%, #1a2f2f 100%);
    --accent: #ff0076;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--space-gradient-1);
    z-index: -2;
}

/* Header Section */
.parallax-bg {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-content {
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 0 2rem;
}

.dynamic-title {
    font-size: 4rem;
    background: linear-gradient(45deg, #009ffd, #ff0076);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleFloat 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1 rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 1; }
}

/* Astronaut styling */

.resume-float {
    position: absolute;
    left: 5%;
    top: 20%;
    width: 25vw;
    max-width: 400px;
    min-width: 200px;
    z-index: 5;
    animation: floatOpposite 10s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    border: 2px solid transparent;
}

@keyframes floatOpposite {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.resume-float:hover {
    filter: drop-shadow(0 0 25px rgba(0,200,255,0.5));
    border-color: rgba(0,200,255,0.5);
}

.astronaut {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 25vw;
    max-width: 400px;
    min-width: 200px;
    z-index: 5;
    animation: float 10s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* Content Sections Base Styles*/
.neon-card {
    min-height: 85vh;
    padding: 3rem 2rem;
    margin: 1rem auto;
    border-radius: 15px;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    background: transparent;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 0 15px rgba(0, 100, 255, 0.2),
        inset 0 0 20px rgba(0, 200, 255, 0.1) !important;
}

.section-header {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.section-header::before {
    content: attr(data-text);
    position: relative;
    color: black;
    text-shadow: 
        0 0 2px rgba(255,255,255,0.8),
        0 0 8px rgba(100,255,255,0.6),
        0 0 12px rgba(0,200,255,0.4);
    z-index: 1;
    white-space: nowrap;
}

.section-header::after {
    content: '';
    position: relative;
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0,255,200,0.8) 0%, 
        rgba(0,150,255,0.6) 50%, 
        transparent 100%);
    margin-right: 1rem;
}

/* Individual gradient definitions */
[data-section="about"] .section-header {
    --grad-start: #072da8;
    --grad-end: #ff00a2;
}
[data-section="experience"] .section-header {
    --grad-start: #00ff88;
    --grad-end: #ff006e;
}
[data-section="projects"] .section-header {
    --grad-start: #7d00ff;
    --grad-end: #ff9100;
}
[data-section="awards"] .section-header {
    --grad-start: #ff0080;
    --grad-end: #00ffd5;
}

/* Navigation */
.sidebar {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    color: white;
}

.nav-btn:hover {
    transform: translateX(-8px);
    background: var(--accent);
}

/* Social Buttons */
.social-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
}

.linkedin { background: #0077b5; }
.github { background: #333; }

.social-btn:hover {
    transform: scale(1.2) rotate(360deg);
}

/* Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.star {
    border-radius: 50%;
    position: absolute;
    will-change: transform;
    background-color: white;
}

/* Content Component: About Me*/
.info-box {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 10px 10px 0;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tech-item {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255,50,50,0.1) 0%, 
        rgba(200,0,0,0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,0,0,0.1);
}

.tech-item:hover::before {
    opacity: 1;
}

/* Add subtle pulse animation on hover */
.tech-item:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(191, 104, 104, 0.3) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 20px;
}

.project-card {
    position: relative;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    background: rgba(0,0,0,0.2);
}

.project-title {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.project-title h3 {
    color: white;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.project-title:hover h3 {
    text-shadow: 0 0 20px rgba(222, 0, 0, 0.8);
}

.project-title:hover::after {
    opacity: 1;
    color: rgba(0,200,255,0.8);
}

.experience-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.experience-gallery {
    position: sticky;
    top: 2rem;
    height: 100vh;
    perspective: 1000px;
    z-index: 3;
}

.photo-stack {
    position: relative;
    height: 80vh;
    margin-top: 2rem;
    z-index: 3;
}

.photo-item {
    position: absolute;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 3;
}

.active-photo {
    z-index: 10 !important;
    transform: rotateZ(0deg) translateY(-20px) !important;
    box-shadow: 0 15px 40px rgba(0,200,255,0.3) !important;
}

.photo-nav-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    z-index: 20;
    position: relative;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(0,200,255,0.8);
    transform: scale(1.2);
}

.photo-1 {
    top: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(45deg, #0f0f1a, #1a1a2f);
    transform: rotateZ(-2deg);
}

.photo-2 {
    top: 10%;
    right: -10%;
    z-index: 4;
    background: linear-gradient(45deg, #0f1a1f, #1a2f2a);
    transform: rotateZ(3deg);
}

.photo-3 {
    top: 20%;
    right: -5%;
    z-index: 3;
    background: linear-gradient(45deg, #1f0f1a, #2a1a2f);
    transform: rotateZ(-5deg);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.photo-1 { background-image: url('photos/JD.png')}
.photo-2 { background-image: url('photos/adaptive_pulse.png')}
.photo-3 { background-image: url('photos/ICCAS.png') }

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    background: rgba(0,0,0,0.3);
}

.timeline-date {
    color: rgba(0, 200, 255, 0.8);
    margin: 0.5rem 0;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .experience-container {
        grid-template-columns: 1fr;
    }
    
    .experience-gallery {
        display: none;
    }
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-photo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.photo-frame {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    backdrop-filter: blur(5px);
}

.photo-placeholder {
    background: rgba(0,0,0,0.3);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
}

.photo-placeholder p {
    margin-top: 1rem;
    font-size: 1rem;
}

.photo-caption {
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255,0.7);
}

.accordion-item {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    text-align: left;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-header:hover::before {
    left: 100%;
}

.accordion-header:hover {
    box-shadow: 0 0 20px rgba(46, 191, 186, 0.3);
    border-color: rgba(0, 255, 200, 0.3);
}

.accordion-header span {
    position: relative;
    z-index: 1;
}

.accordion-icon {
    font-size: 1.5rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
    background: rgba(0,0,0,0.1);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1.2rem;
}

.accordion-item.active .accordion-header {
    animation: pulseGlow 2s infinite;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-photo {
        order: -1;
    }
}

@media (max-width: 768px) {
    .dynamic-title {
        font-size: 2.5rem;
    }
    
    .astronaut {
        width: 40vw;
        right: 2%;
        top: 15%;
    }
    
    .sidebar {
        left: 0.5rem;
    }
    
    .neon-card {
        padding: 2rem 1rem;
        margin: 1rem;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 200, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
    }
}
    /* Footer Section */
.cosmic-footer {
    width: 100%;
    padding: 2rem 2rem;
    background: linear-gradient(135deg,
        rgba(255, 50, 100, 0.15) 0%,
        rgba(200, 0, 80, 0.25) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 100, 150, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.cosmic-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"/></svg>');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.pulse-heart {
    display: inline-block;
    animation: heartPulse 2s infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-divider {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

