/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #030712;
    --card-bg: rgba(17, 24, 39, 0.45);
    --card-bg-hover: rgba(31, 41, 55, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 40%, var(--accent-purple) 100%);
    --bg-gradient: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #030712 100%);
    
    /* Shadows & Effects */
    --shadow-glow: 0 0 25px rgba(168, 85, 247, 0.25);
    --shadow-cyan-glow: 0 0 25px rgba(6, 182, 212, 0.25);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 5px;
    border: 2px solid #030712;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* ==========================================================================
   CANVAS BACKGROUND
   ========================================================================== */
#gnn-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASS
   ========================================================================== */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-hover);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-accent {
    color: var(--accent-cyan);
    font-family: var(--font-code);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 3rem 2rem;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.glow-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-family: var(--font-code);
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* BUTTONS */
.btn {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: var(--accent-cyan);
    transform: scale(1.15);
}

/* ==========================================================================
   SECTIONS & MAIN LAYOUT
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-container {
    padding: 6rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle-desc {
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.text-accent {
    color: var(--accent-cyan);
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    align-items: start;
}

.profile-card {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-img-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: var(--accent-gradient);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #1f2937;
}

.profile-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-row {
    display: flex;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    gap: 1rem;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-column .glass-panel {
    padding: 2rem;
}

.card-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.timeline-item {
    position: relative;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(6, 182, 212, 0.4);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.timeline-institution {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.styled-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.styled-list li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.styled-list li strong {
    color: var(--text-primary);
}

.list-icon {
    font-size: 1.15rem;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mt-1 {
    margin-top: 0.5rem !important;
}

/* ==========================================================================
   TECHNICAL SKILLS
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-category h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
}

.skill-tag-simple {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.1);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */
.projects-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    overflow: hidden;
    gap: 1rem;
    padding: 0;
}

.project-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-glow);
}

.project-img-wrapper {
    position: relative;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(3, 7, 18, 0.45);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.project-type-tag {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.project-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.project-meta {
    display: flex;
    gap: 0.5rem;
}

.status-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-tag.active {
    background: rgba(234, 179, 8, 0.1);
    color: #fef08a;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.status-tag.ongoing {
    background: rgba(6, 182, 212, 0.1);
    color: #cffafe;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-tag.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.patent-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.1);
    color: #f3e8ff;
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-bullet-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 0.25rem;
}

.project-bullet-details li {
    position: relative;
    padding-left: 1.15rem;
}

.project-bullet-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tech-badge {
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
}

.project-links {
    margin-top: 0.75rem;
}

.project-link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.04);
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    background: var(--accent-cyan);
    color: #030712;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   CONTACT / FOOTER SECTION
   ========================================================================== */
.footer-section {
    padding: 6rem 0 3rem 0;
}

.footer-content {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.footer-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-content p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

.contact-card {
    flex: 1;
    min-width: 260px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card i {
    font-size: 1.75rem;
    color: var(--accent-cyan);
}

.contact-card span {
    font-size: 0.9rem;
    font-weight: 550;
    word-break: break-all;
}

.contact-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: var(--shadow-cyan-glow);
}

.footer-social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.footer-copyright {
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 2rem;
    margin-top: 1rem;
}

.footer-copyright p {
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-img-wrapper {
        height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 65px;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .toggle-active i::before {
        content: "\f13e"; /* Close/X icon in Remix Icon */
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-container {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   CAROUSEL SYSTEM
   ========================================================================== */
.project-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-carousel-slides .project-img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(3, 7, 18, 0.45);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    color: #030712;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
    background: rgba(3, 7, 18, 0.45);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
    background: var(--accent-cyan);
    width: 18px;
    border-radius: 4px;
}