/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #2f80ed;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
}

html { scroll-padding-top: 80px; }

:root {
    --nav-h: 80px;
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-text: #1f2a37;
    --color-muted: #6b7280;
    --color-accent: #6c63ff;
    --color-accent-2: #8b5cf6;
    --color-gradient-primary: linear-gradient(135deg, #6c63ff, #4c6ef5);
    --color-gradient-hero: radial-gradient(circle at 20% 20%, #fdfcff 0%, #eef2ff 45%, #e6f0ff 100%);
    --color-gradient-surface: radial-gradient(circle at 70% 0%, rgba(140, 120, 255, 0.18), transparent 55%), linear-gradient(180deg, #fefefe 0%, #f5f6fa 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 15px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
    background: rgba(248, 249, 250, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 30px;
    gap: 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: 16px;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.nav-link.is-active {
    color: var(--color-accent-2);
}

.nav-link.is-active::after {
    width: 100%;
}

/* Main Content */
.main-content {
    padding-top: calc(var(--nav-h) + 20px);
}

/* Full Page Sections */
.full-page {
    min-height: calc((var(--vh, 1vh) * 100) - 80px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 0px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 30px;
    background: var(--color-gradient-primary);
    -webkit-background-clip: text;
    text-align: center;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

/* Home Section */
.home-section {
    background: var(--color-gradient-hero);
    padding: 60px 0 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.hero-photo {
    margin: 15px 0 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    border: 6px solid rgba(255, 255, 255, 0.8);
    background: #1b1f3a;
    max-height: 460px;
    transform: translateY(var(--parallax-y, 0px));
    will-change: transform;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--color-gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.btn-ghost {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: var(--color-text);
}

.btn-ghost:hover {
    background: rgba(102, 126, 234, 0.15);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.text-link i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.text-link:hover i {
    transform: translate(3px, -3px);
}

.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.is-disabled:hover {
    transform: none !important;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.availability-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.availability-meta i {
    color: var(--color-accent);
    margin-right: 6px;
}

.availability-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.profile-info p {
    color: var(--color-muted);
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.info-card p {
    color: var(--color-muted);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--color-muted);
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    color: #ecedff;
    overflow: hidden;
}

.skills-section::before,
.skills-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,0.08), transparent 50%),
        linear-gradient(120deg, rgba(255,255,255,0.03) 20%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.05), transparent 55%);
    animation: drift 18s linear infinite;
    z-index: 0;
    opacity: 0.8;
}

.skills-section::after {
    filter: blur(40px);
    opacity: 0.4;
    animation-duration: 26s;
}

.skills-section .skills-inner {
    margin-top: 40px;
}

.skills-section .container,
.skills-section .skills-inner,
.skills-section .section-header,
.skills-section .section-helper,
.skills-section .skills-fallback {
    position: relative;
    z-index: 1;
}

.section-helper {
    text-align: center;
    color: rgba(236, 237, 255, 0.8);
    font-weight: 500;
    margin: 15px auto 25px;
    max-width: 640px;
}

.skills-section .section-title {
    background: none;
    color: #eef2ff;
    -webkit-text-fill-color: #eef2ff;
}

.skills-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.skills-fallback {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skills-fallback > div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-fallback h4 {
    margin-bottom: 10px;
    color: #f5f7ff;
}

.skills-fallback ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-fallback li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.skills-fallback li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: var(--color-gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-visual {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.project-content p {
    color: var(--color-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.project-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.project-actions .btn-ghost {
    width: 100%;
    text-align: center;
}

.project-actions .text-link {
    justify-content: flex-start;
    color: var(--color-text);
    font-size: 0.95rem;
}

.project-actions .text-link i {
    transform: none;
}

/* Experience Section */
.experience-section {
    background: var(--color-gradient-surface);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-bottom: 10px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35);
}

.timeline-line {
    flex: 1;
    width: 3px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.7), transparent);
    margin-top: 6px;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.timeline-content h4 {
    color: var(--color-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--color-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: var(--color-gradient-surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-cta {
    margin: 25px 0;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: rgba(102, 126, 234, 0.08);
    color: #4a5568;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-download i {
    margin-right: 8px;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-helper {
    color: var(--color-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-details p {
    color: var(--color-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--color-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Form Styles */
.form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--color-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #667eea;
    background: white;
    padding: 0 5px;
}

/* Animation Classes */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.slide-in-left.animate,
.slide-in-right.animate,
.slide-in-up.animate {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    html { scroll-padding-top: 64px; }
    .navbar { padding: 10px 0; }
    .nav-logo{display: none; }
    :root { --nav-h: 64px; }
    .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 2.2rem; }
    .full-page { padding: 40px 0; }
    .nav-toggle { display: flex; margin-left: 10px; }
    .nav-menu-wrapper {
        width: 100%;
        justify-content: center;
    }
    .nav-actions { margin-left: 10px; }
    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(10px);
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { padding: 10px 20px; }
    .nav-menu .nav-link { display: block; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-media {
        max-width: 420px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before { left: 20px; }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item .timeline-marker {
        left: 12px !important;
        right: auto !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .nav-logo {
    display: none;
    }
    .navbar{
    position:  sticky;
    }
    .container {
        padding: 0 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}
:root {
  --panel-width: 32%;
  --panel-open: 0;
  --icon-size: 86px;
  --icon-min: 52px;
}

/* Section layout */
.skills-section {
  padding: 80px 16px;
}

.skills-inner {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  height: 420px;
  overflow: hidden;
  display: block;
  border-radius: 18px;
  background: transparent;
  padding: 40px 30px 30px;
}

/* Sliding panel */
.skill-panel {
  left: calc(-1 * var(--panel-width));
  top: 0;
  height: 100%;
  width: var(--panel-width);
  min-width: 220px;
  max-width: 420px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
  /*box-shadow: 0 12px 30px rgba(0,0,0,0.6);*/
  /*border-right: 1px solid rgba(255,255,255,0.02);*/
  transform: translateX(calc((1 - var(--panel-open)) * -100%));
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms;
  z-index: 30;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
}

/* When open slide to 0 */
.skill-panel[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.panel-close {
  background: transparent;
  border: none;
  color: #ddd;
  font-size: 22px;
  align-self: flex-end;
  cursor: pointer;
}

/* Panel content */
.panel-content {
  overflow: auto;
  padding: 6px 2px 24px 2px;
}
.skill-title { margin: 0 0 8px 0; font-size: 18px;  }
.skill-body { font-size: 14px;  }

/* Floating icons container */
.floating-icons-container {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  pointer-events: none; /* allow clicks to pass to icons individually which will set pointer-events on each. */
  z-index: 10;
}

/* Each floating icon (circle) */
.floating-icon {
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  min-width: var(--icon-min);
  min-height: var(--icon-min);
  border-radius: 50%;
  background: var(--icon-bg, rgba(255,255,255,0.08));
  display: grid;
  place-items: center;
  box-shadow: var(--icon-shadow, 0 18px 38px rgba(2,6,23,0.35));
  transition: transform 560ms cubic-bezier(.2,.9,.2,1), left 560ms, top 560ms;
  transform-origin: center;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.floating-icon i {
  font-size: 34px;
  color: #ffffff;
}

/* Icon image inside */
.floating-icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

/* subtle individual float motion */
@keyframes floatY {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.floating-icon.anim {
  animation: floatY calc(8s + (var(--delay,0) * 1s)) ease-in-out infinite;
}

/* When panel open, icons shift to the right of the panel space */
.skills-inner.panel-open .floating-icons-container {
  /* nothing here; icons themselves compute position via JS using --panel-width */
}

/* Small screens: panel becomes bottom sheet */
@media (max-width: 720px) {
  :root { --panel-width: 92%; }
  .skills-inner { height: 420px; }
  .skill-panel {
    left: 0;
    bottom: calc(-1 * 100%);
    top: auto;
    width: 100%;
    height: 42%;
    transform: translateY(calc((1 - var(--panel-open)) * 100%));
  }
  .skill-panel[aria-hidden="false"] { transform: translateY(0); }
}

