/* Global CSS & Variables */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Dark Theme Variables (Default) */
    --bg-primary: #030712;
    --bg-secondary: #0b0f19;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.45);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: #0b0f19;
    --card-bg-hover: #111827;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --pill-bg: rgba(11, 15, 25, 0.8);
    --pill-border: rgba(255, 255, 255, 0.08);
    --pill-active-bg: rgba(255, 255, 255, 0.08);
    --grid-color: rgba(255, 255, 255, 0.015);
    --glow-color: rgba(37, 99, 235, 0.15);
}

/* Light Theme Variables */
body[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --border-color: rgba(15, 23, 42, 0.08);
    --card-bg: #ffffff;
    --card-bg-hover: #f1f5f9;
    --card-shadow: 0 10px 35px -10px rgba(15, 23, 42, 0.08);
    --pill-bg: rgba(255, 255, 255, 0.8);
    --pill-border: rgba(15, 23, 42, 0.08);
    --pill-active-bg: rgba(15, 23, 42, 0.05);
    --grid-color: rgba(15, 23, 42, 0.02);
    --glow-color: rgba(37, 99, 235, 0.05);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 8rem 1.5rem; /* Large bottom padding for floating navbar */
}

/* Background Design */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.4s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--pill-active-bg);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-avatar-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.hero-avatar-wrapper:hover .hero-avatar {
    transform: scale(1.05);
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-gradient);
    filter: blur(15px);
    opacity: 0.3;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-avatar-wrapper:hover .avatar-glow {
    opacity: 0.6;
}

/* General Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.subsection-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
}

/* About Section */
.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 800px;
}

/* What I can do - Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px -10px var(--accent-glow);
}

.service-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: capitalize;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Work Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 6px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent);
    transition: transform 0.25s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Projects Section Header */
.projects-header {
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--accent);
    color: white;
    margin-bottom: 0.75rem;
}

.section-title-large {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

/* Category Filter Buttons */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px -15px var(--accent-glow);
}

.project-img-wrapper {
    height: 180px;
    position: relative;
    background-color: #0b0f19;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Interactive SVG & CSS Graphics in lieu of missing images */
.project-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.p-graphic-neuraid {
    background: radial-gradient(circle at center, #020617 0%, #1e1b4b 100%);
}

.circle-orbit {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1.5px dashed rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 20s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    background-color: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 10px #06b6d4;
}

.core-brain {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 99, 235, 0.2);
    border: 1.5px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    animation: pulse 2s infinite ease-in-out;
}

.core-brain svg {
    width: 24px;
    height: 24px;
}

.p-graphic-eda {
    background: radial-gradient(circle at center, #020617 0%, #064e3b 100%);
}

.agent-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.2);
    border: 1.5px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    z-index: 5;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.node svg {
    width: 16px;
    height: 16px;
}

.node.n1 { top: 60%; left: 15%; }
.node.n2 { top: 20%; left: 50%; transform: translateX(-50%); animation: float-slow 3s infinite ease-in-out; }
.node.n3 { top: 60%; left: 75%; }

.connector-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.connector-lines line {
    stroke: rgba(16, 185, 129, 0.25);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.p-graphic-cv {
    background: radial-gradient(circle at center, #020617 0%, #311042 100%);
}

.bounding-box-demo {
    position: relative;
    width: 140px;
    height: 100px;
    border: 1.5px solid #a855f7;
    border-radius: 6px;
    background-color: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.box {
    position: absolute;
    border-top: 1.5px solid #a855f7;
    border-left: 1.5px solid #a855f7;
    padding: 2px 6px;
}

.box span {
    font-size: 0.65rem;
    font-family: monospace;
    color: #a855f7;
    background-color: #0b0f19;
    border: 1.5px solid #a855f7;
    border-radius: 3px;
    position: absolute;
    top: -15px;
    left: -1px;
    white-space: nowrap;
}

.box.b1 {
    top: 20px;
    left: 20px;
    width: 60px;
    height: 50px;
    border: 1.5px solid #e11d48;
}
.box.b1 span {
    color: #e11d48;
    border-color: #e11d48;
}

.box.b2 {
    top: 40px;
    left: 70px;
    width: 50px;
    height: 40px;
    border: 1.5px solid #10b981;
}
.box.b2 span {
    color: #10b981;
    border-color: #10b981;
}

.p-graphic-code {
    background: radial-gradient(circle at center, #020617 0%, #172554 100%);
}

.code-tree {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1.5px solid #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon {
    color: #3b82f6;
}
.folder-icon svg {
    width: 32px;
    height: 32px;
}

.search-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1.5px solid #06b6d4;
    animation: ping-custom 2.5s infinite ease-out;
}

/* YouTube Q&A Chatbot Graphic */
.p-graphic-youtube {
    background: radial-gradient(circle at center, #0f051d 0%, #7f1d1d 100%);
}

.video-container {
    position: relative;
    width: 120px;
    height: 75px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.play-btn {
    width: 36px;
    height: 36px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #ef4444;
    transition: transform 0.2s ease;
}

.play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.chat-bubble-overlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: float-slow 2.5s infinite ease-in-out;
}

.chat-bubble-overlay svg {
    width: 14px;
    height: 14px;
}

/* ResearchPilot AI Graphic */
.p-graphic-research {
    background: radial-gradient(circle at center, #020617 0%, #115e59 100%);
}

.document-scan {
    position: relative;
    width: 80px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(20, 184, 166, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.doc-icon {
    color: rgba(20, 184, 166, 0.4);
}

.doc-icon svg {
    width: 40px;
    height: 40px;
}

.agent-pilot {
    position: absolute;
    color: #14b8a6;
    animation: float-slow 3s infinite ease-in-out;
}

.agent-pilot svg {
    width: 22px;
    height: 22px;
}

.scan-bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #14b8a6;
    box-shadow: 0 0 8px #14b8a6;
    top: 0;
    left: 0;
    animation: scan-move 4s linear infinite;
}

/* 4-Bit Adder FPGA Blog Graphic */
.p-graphic-adder {
    background: radial-gradient(circle at center, #020617 0%, #1e293b 100%);
}

.fpga-chip {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: #1e293b;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
}

.chip-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.binary-stream {
    position: absolute;
    bottom: -35px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #06b6d4;
    white-space: nowrap;
    animation: float-slow 3s infinite ease-in-out;
}

/* RGB LED Controller Blog Graphic */
.p-graphic-rgb {
    background: radial-gradient(circle at center, #020617 0%, #111827 100%);
}

.rgb-led-glow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.led-diodes {
    display: flex;
    gap: 12px;
    z-index: 5;
}

.diode {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.diode.red-d {
    background-color: #ef4444;
    box-shadow: 0 0 15px #ef4444, 0 0 30px #ef4444;
    animation: pulse 1.8s infinite ease-in-out;
}

.diode.green-d {
    background-color: #10b981;
    box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    animation: pulse 2.2s infinite ease-in-out;
}

.diode.blue-d {
    background-color: #3b82f6;
    box-shadow: 0 0 15px #3b82f6, 0 0 30px #3b82f6;
    animation: pulse 2s infinite ease-in-out;
}

.glow-halo {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.project-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.project-tag {
    background-color: var(--pill-active-bg);
    color: var(--text-primary);
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 4px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.72rem;
    font-weight: 500;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.88rem;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--accent);
}

.project-link-placeholder {
    color: var(--text-muted);
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Education & Certifications Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.edu-card, .certs-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: border-color 0.3s ease;
}

.edu-card:hover, .certs-card:hover {
    border-color: var(--accent);
}

.edu-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.edu-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-degree {
    font-size: 1.25rem;
    font-weight: 600;
}

.edu-major {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.edu-school {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.edu-duration, .edu-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.edu-duration svg, .edu-location svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.certs-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.certs-card-title svg {
    color: var(--accent);
}

.certs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.certs-list li {
    display: flex;
    gap: 0.75rem;
}

.cert-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
}

.cert-name {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.cert-provider {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-group-title {
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -5px var(--accent-glow);
}

/* Footer wrapper */
.footer-wrapper {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 5rem;
}

.footer-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Bottom Floating Navbar */
.floating-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.floating-nav.hidden {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--pill-bg);
    border: 1px solid var(--pill-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem;
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: var(--pill-active-bg);
}

.nav-item.active {
    color: var(--accent);
    background-color: var(--pill-active-bg);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
    margin: 0 0.25rem;
}

/* Theme toggle inside navbar */
.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: block;
}

body[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: block;
}

body[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: none;
}

/* Animations declarations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(37, 99, 235, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(37, 99, 235, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(37, 99, 235, 0.3); }
}

@keyframes float-slow {
    0% { transform: translate(-50%, 0px); }
    50% { transform: translate(-50%, -10px); }
    100% { transform: translate(-50%, 0px); }
}

@keyframes ping-custom {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes scan-move {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px -10px var(--accent-glow);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--pill-active-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background-color: var(--accent);
    color: white;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.contact-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* University Logo Styles */
.edu-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.edu-icon.logo-only {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: calc(-1.5rem - 6px);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
