
:root {
    --bg-color: #0f051d;
    --card-bg: #1a0b2e;
    --primary-accent: #8b5cf6;
    --secondary-accent: #6d28d9;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --neon-glow: 0 0 15px rgba(139, 92, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(139, 92, 246, 0.2);
    --img-container-bg: rgba(255, 255, 255, 0.03);
	
	--scrollbar-width: 10px;
    --scrollbar-track-bg: var(--bg-color);
    --scrollbar-thumb-bg: var(--secondary-accent);
    --scrollbar-thumb-hover: var(--primary-accent);
    --scrollbar-border-size: 2px;
}

/* Standard scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
}

/* Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width); /* For horizontal scroll */
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-bg);
    border-radius: 100vh; /* Ensures perfect pill shape */
    border: var(--scrollbar-border-size) solid var(--scrollbar-track-bg);
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
    /* Apply neon effect if defined in project vars */
    box-shadow: var(--neon-glow, none); 
}

/* Optional: Hide scrollbar for specific elements if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* html { */
    /* scroll-behavior: smooth; */
/* } */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#waveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 100px 0; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(15, 5, 29, 0.8);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: #fff; }
.logo span { color: var(--primary-accent); }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-accent); }

/* Floating Socials */
.floating-socials {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.social-icon {
    background: var(--card-bg);
    color: var(--primary-accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--primary-accent);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--neon-glow);
    opacity: 0;
    transform: translateY(20px);
    animation: iconAppear 0.8s forwards;
}

.social-icon:nth-child(1) { animation-delay: 0.2s; }
.social-icon:nth-child(2) { animation-delay: 0.4s; }
.social-icon:nth-child(3) { animation-delay: 0.6s; }

@keyframes iconAppear {
    to { opacity: 1; transform: translateY(0); }
}

.social-icon:hover {
    background: var(--primary-accent);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

/* Hero Section */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    gap: 2rem;
}

.hero-content h1 { font-size: 3.5rem; line-height: 1.1; }
.hero-content h2 { font-size: 1.5rem; color: var(--text-dim); margin: 1rem 0; }
.highlight { color: var(--primary-accent); text-shadow: var(--neon-glow); }
.hero-btns { margin-top: 2rem; display: flex; gap: 1rem; }

.bubble-container { position: relative; width: 320px; height: 320px; aspect-ratio: 1 / 1; margin: 2rem auto 0; }
.bubble {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-accent);
    box-shadow: var(--neon-glow);
    animation: float 6s ease-in-out infinite, morph 8s ease-in-out infinite;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 380px; 
    gap: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 50px;
    align-items: stretch;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.profile-photo {
    width: 100%;
    max-width: 280px; 
    aspect-ratio: 1 / 1; 
    margin: 0 auto 20px;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    box-shadow: var(--neon-glow);
}

.interests-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-accent);
    margin-bottom: 12px;
    font-weight: 600;
    display: block;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
	cursor: pointer;
}

.achievement {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.achievement i { width: 14px; height: 14px; color: var(--primary-accent); }

.achievement:hover {
    border-color: var(--primary-accent);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.achievement:last-child {
    grid-column: span 2;
    justify-content: center;
}

/* Skills Section */
/* .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: scale(0);
    transition: 0.4s ease;
}

.skill-card:hover {
    transform: rotateY(15deg) rotateX(10deg) translateY(-10px) !important;
    border-color: var(--primary-accent);
    box-shadow: var(--neon-glow);
}

.skill-card.burst {
    animation: burstIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}



@keyframes burstIn {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
} */

/* Skills Section V2*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    perspective: 1000px;
}

.skill-card {
    background: var(--card-bg);
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: scale(0);
    transition: 0.4s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 100px;
}

.skill-card:hover {
    transform: rotateY(15deg) rotateX(10deg) translateY(-10px) !important;
    border-color: var(--primary-accent);
    box-shadow: var(--neon-glow);
}

.skill-card.burst {
    animation: burstIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


.skill-card i, .skill-card svg {
    width: 40px; 
    height: 40px;
    color: var(--primary-accent);
    stroke-width: 1.5px; 
    transition: all 0.3s ease;
    display: block;
}


.skill-card:hover i, .skill-card:hover svg {
    color: #fff;
    filter: drop-shadow(0 0 8px var(--primary-accent));
    transform: scale(1.1);
}

.skill-card span {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 500;
}

@keyframes burstIn {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.project-img-container img { 
    width: 70%; 
    height: 70%; 
    object-fit: contain; 
    padding: 20px; 
    box-sizing: border-box;
    transition: 1s ease; 
    margin: auto;
    display: block;
}

.project-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--img-container-bg); 
}

.project-card:hover .project-img-container img { transform: scale(1.1); }

.project-action { display: flex; justify-content: center; margin-top: -20px; z-index: 10; }

.btn-github {
    background: #fff;
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.project-card:hover .btn-github { background: var(--primary-accent); color: white; transform: translateY(-5px); box-shadow: var(--neon-glow); }

.project-info { padding: 1.5rem 1.5rem 2rem; text-align: center; }
.project-info h3 { margin-bottom: 0.7rem; color: var(--primary-accent); font-size: 1.4rem; }
.project-info p { color: var(--text-dim); font-size: 0.9rem; }

/* Timeline Section */
.timeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
	cursor: pointer;
}

.column-title i {
    color: var(--primary-accent);
    width: 28px;
    height: 28px;
}

.timeline-line {
    border-left: 2px solid var(--glass-border);
    padding-left: 2.5rem;
    position: relative;
}

.timeline-item {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: var(--neon-glow);
}

.timeline-dot {
    position: absolute;
    left: calc(-2.5rem - 9px); 
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-accent);
    border: 4px solid var(--bg-color);
    box-shadow: var(--neon-glow);
}

.timeline-item img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 15px;
    background: var(--img-container-bg);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--glass-border);
    box-sizing: border-box;
	cursor: pointer;
}

.timeline-date {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.timeline-item h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.timeline-item h5 {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* .timeline-item li {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
} */

.timeline-item li {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    
    margin-bottom: 12px;     
    position: relative;        
    list-style-type: none;    
    padding-left: 20px;        
}


.timeline-item li::before {
    content: "•";             
    color: var(--primary-accent); 
    font-weight: bold;
    position: absolute;
    left: 0;                   
}


.timeline-item li:last-child {
    margin-bottom: 0;
}


/* Button Courses */
.btn-more-certificates{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-more-certificates i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-more-certificates:hover {
    color: var(--primary-accent);
}

.btn-more-certificates:hover i {
    transform: translateX(5px);
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-links span {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-links a:hover {
    color: var(--primary-accent);
}

/* Contact Form */
.contact-wrapper-centered { max-width: 600px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
input, textarea { padding: 1rem; background: var(--card-bg); border: 1px solid var(--glass-border); color: white; border-radius: 8px; font-family: inherit; }
textarea { resize: vertical; min-height: 120px; }

/* Buttons */
.btn { padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; cursor: pointer; border: none; }
.primary { background: var(--primary-accent); color: white; }
.primary:hover { transform: scale(1.05); box-shadow: var(--neon-glow); }
.secondary { border: 2px solid var(--primary-accent); color: white; background: transparent; }

/* Footer */
.footer { padding: 1rem 0; background: #0a0414; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.trademark-disclaimer {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
    line-height: 0.1;
}

/* Mobile Navigation */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: white; margin: 5px; transition: 0.3s; }

/* Responsive Rules */
@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; gap: 40px; padding: 30px; }
    .sidebar-right { height: auto; gap: 30px; }
    .profile-photo { aspect-ratio: 1/1; width: 250px; margin: 0 auto; }
    
    /* Timeline Responsive */
    .timeline-wrapper { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .floating-socials { display: none; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 1000;
    }
	
	.contact-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 10px;
        justify-items: center;
        align-items: center;
    }

    .contact-links a, 
    .contact-links span {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .contact-links span:last-child {
        word-break: break-all;
        font-size: 0.85rem; 
        font-weight: 500;
    }
	
    .trademark-disclaimer {
        font-size: 0.7rem;      
        line-height: 1.4;
        word-wrap: break-word;
    }

    .nav-active { right: 0; }
    .burger { display: block; z-index: 1001; }
    .hero-wrapper { flex-direction: column-reverse; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
	.hero-btns { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center;}
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}