/* Test style to verify CSS connection */
body {
    background-color: #ffffff;
}

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --gradient-start: #4f46e5;
    --gradient-end: #2563eb;
    --container-width: 1200px;
    --section-padding: 3.5rem 2rem;
    --card-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10B981;
    --error-color: #EF4444;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Brand */
.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: none;
}

/* Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
    border-radius: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

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

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

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

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

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

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 105px;
    right: 37px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 998;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

/* ── Mobile nav ≤900px ── */
@media (max-width: 900px) {
    .nav-brand {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-content {
        padding: 0.8rem 1.2rem;
        justify-content: space-between;
    }

    /* Slide-in panel from right */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: var(--background);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 80px 0 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding: 1rem 1.5rem 0;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        background: rgba(37, 99, 235, 0.08);
        border-left: 3px solid var(--primary-color);
        padding-left: calc(1.5rem - 3px);
    }

    /* Backdrop overlay */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
        backdrop-filter: blur(2px);
    }

    .nav-backdrop.active {
        display: block;
    }

    .theme-toggle {
        margin: 0;
    }
}

/* Dark mode nav */
[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
}

[data-theme="dark"] .nav-links {
    background: var(--background);
}

[data-theme="dark"] .mobile-menu-btn span {
    background: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    overflow: hidden;
    margin-top: 0;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232563eb' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-description {
    max-width: 480px;
    margin: 0 auto 2rem;
}

.hero-description p {
    font-size: 1.05rem;
    color: var(--light-text);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    width: auto;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
}

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

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

.btn-secondary:hover,
.btn-outline:hover {
    color: white;
    border-color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(45deg);
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.8rem;
        white-space: normal;
    }

    .cta-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        white-space: normal;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .btn {
        width: auto;
        padding: 0.7rem 1.4rem;
        font-size: 0.88rem;
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    margin: 0 auto;
    border-radius: 2px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

/* Projects */
.projects-section {
    padding: 80px 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    align-items: stretch !important;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: auto !important;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.project-github,
.project-demo {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-github:hover,
.project-demo:hover {
    color: var(--primary-color);
}

.project-github i,
.project-demo i {
    font-size: 1rem;
}

[data-theme="dark"] .project-github,
[data-theme="dark"] .project-demo {
    color: var(--text-color);
}

[data-theme="dark"] .project-github:hover,
[data-theme="dark"] .project-demo:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0 !important; /* Consistent reduced padding for all sections on mobile */
    }
    
    .project-links {
        flex-direction: row;
        justify-content: center !important; /* Centered for better mobile balance */
        gap: 1.5rem;
        padding: 1.2rem 1.5rem;
    }
}

/* Dark Mode Styles for Project Links */
[data-theme="dark"] .project-links {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .project-github {
    color: var(--text-color);
}

[data-theme="dark"] .project-github:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-tech span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    .project-info {
        padding: 1rem;
    }
}

/* Contact Form Layout base */
.contact-form {
    width: 100%;
}

/* Footer Styles */
.footer {
    background: var(--section-bg);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: var(--bg-color-light);
}

.copyright {
    color: var(--light-text);
    font-size: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dark Mode Footer Styles */
[data-theme="dark"] .footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-links a {
    background: var(--bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-links a:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .copyright {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0;
    }

    .footer-content {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.5rem;
        padding: 0.6rem;
        width: 3rem;
        height: 3rem;
    }

    .copyright {
        font-size: 0.9rem;
        padding: 1.25rem 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .social-links {
        gap: 1.25rem;
    }

    .social-links a {
        font-size: 1.3rem;
        padding: 0.5rem;
        width: 2.8rem;
        height: 2.8rem;
    }

    .copyright {
        font-size: 0.85rem;
        padding: 1rem 0;
    }
}

/* Hero Section Additional Styles */
.highlight {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.typing-text {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    position: relative;
    display: block;
    min-height: 2rem;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.social-links-hero {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links-hero a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-links-hero a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* About Section Styles */
.about-section {
    padding: var(--section-padding);
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-image {
    flex: 0 0 300px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    background: var(--bg-color-light);
    padding: 1rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    padding: 2rem;
}

.about-text .lead {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.about-text p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    background: var(--bg-color-light);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.detail-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.detail-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-item p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .about-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-item {
        padding: 1.25rem;
    }

    .detail-item i {
        font-size: 1.75rem;
    }

    .detail-item h4 {
        font-size: 1.1rem;
    }

    .detail-item p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .detail-item {
        padding: 1rem;
    }

    .detail-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-image {
        flex: 0 0 250px;
        height: 400px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 480px) {
    .about-image {
        flex: 0 0 200px;
        height: 350px;
    }
}

/* Skills Section Styles */
.skills-section {
    padding: var(--section-padding);
    background: var(--section-bg);
    width: 100%;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.skills-category {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.skills-category:hover {
    transform: translateY(-5px);
}

.skills-category:last-child {
    grid-column: 1 / span 2;
}


.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--section-bg);
}

.skills-category h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--section-bg);
}

/* Custom scrollbar styles */
.skills-grid::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.skills-grid::-webkit-scrollbar-track {
    background: var(--section-bg);
    border-radius: 4px;
    margin: 0 1rem;
}

.skills-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    border: 2px solid var(--section-bg);
}

.skills-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.skill-card {
    background: var(--section-bg);
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 140px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.skill-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1);
}

.skill-card h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

.skill-level {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
}

.dot.filled {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.skill-card:hover .dot.filled {
    transform: scale(1.2);
}

/* Experience Section Styles */
.experience-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-light) 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-color-light);
    color: var(--primary-color);
    transform: rotate(15deg);
}

.theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: inline-block;
}

/* Experience Tabs */
.experience-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn:hover {
    background: var(--bg-color-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Timeline Container */
.timeline-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.timeline-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            var(--primary-color),
            var(--primary-color),
            transparent);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    display: block;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.academic {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.tag.technical {
    background: rgba(46, 196, 182, 0.1);
    color: #2ec4b6;
}

.tag.leadership {
    background: rgba(255, 183, 3, 0.1);
    color: #ffb703;
}

.tag.event {
    background: rgba(239, 71, 111, 0.1);
    color: #ef476f;
}

.tag.internship {
    background: rgba(118, 83, 252, 0.1);
    color: #7653fc;
}

.tag.opportunity {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-content .achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content .achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.timeline-content .achievements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --bg-color-light: #2a2a2a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --background: #1a1a1a;
    --section-bg: #2a2a2a;
    --light-text: #a0a0a0;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

[data-theme="dark"] .hero::before {
    opacity: 0.1;
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .certification-card,
[data-theme="dark"] .hackathon-card,
[data-theme="dark"] .hobby-card,
[data-theme="dark"] .favorite-card,
[data-theme="dark"] .contact-item {
    background: var(--bg-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skill-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .certification-card:hover,
[data-theme="dark"] .hackathon-card:hover,
[data-theme="dark"] .hobby-card:hover,
[data-theme="dark"] .favorite-card:hover,
[data-theme="dark"] .contact-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--text-color);
}

[data-theme="dark"] .filter-btn {
    background: var(--bg-color-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .filter-btn i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

[data-theme="dark"] .filter-btn:hover i,
[data-theme="dark"] .filter-btn.active i {
    color: white;
}

[data-theme="dark"] .project-tech span {
    background: var(--bg-color-light);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .notification {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

[data-theme="dark"] .skills-category {
    background: var(--bg-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skills-category h3 {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .dot {
    background-color: var(--border-color);
}

[data-theme="dark"] .nav-links {
    background: var(--bg-color);
}

[data-theme="dark"] .mobile-menu-btn {
    color: var(--text-color);
}

[data-theme="dark"] .scroll-indicator .mouse {
    border-color: var(--text-color);
}

[data-theme="dark"] .scroll-indicator .wheel {
    background: var(--text-color);
}

[data-theme="dark"] .scroll-indicator .arrow span {
    border-color: var(--text-color);
}

[data-theme="dark"] .social-links-hero a {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .social-links-hero a:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-item {
    background: var(--bg-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-modal {
    background: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .close-modal {
    color: var(--text-color);
}

[data-theme="dark"] .modal-content p {
    color: var(--text-color);
}

[data-theme="dark"] .skills-grid::-webkit-scrollbar-track {
    background: var(--bg-color-light);
}

[data-theme="dark"] .skills-grid::-webkit-scrollbar-thumb {
    border-color: var(--bg-color-light);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-controls {
        width: 100%;
        justify-content: center;
    }

    .experience-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 50px !important;
    }
}

@media (max-width: 480px) {
    .experience-section {
        padding: 3rem 0;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .timeline-content .achievements li {
        font-size: 0.8rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4.5rem 0;
    background-color: var(--background);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Info Panel styling */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 1;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.contact-info-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-info-text p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.contact-info-text a,
.contact-info-text span {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

/* Form Panel styling */
.contact-form-panel {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.contact-form-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.textarea-wrapper i {
    top: 1.2rem;
    transform: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--background);
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Input Focus Effects */
.input-wrapper:focus-within i {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.textarea-wrapper:focus-within i {
    transform: scale(1.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: var(--background);
}

/* Form Submit Container */
.form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.contact-form-panel .btn-primary {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.contact-form-panel .btn-primary i {
    transition: transform 0.3s ease;
}

.contact-form-panel .btn-primary:hover i {
    transform: translate(4px, -4px);
}

/* Dark mode premium enhancements */
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-panel {
    background: rgba(30, 30, 30, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-info-card:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(15, 15, 15, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(10, 10, 10, 0.7);
    border-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-panel {
        padding: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Certifications Section Styles */
.certifications-section {
    padding: var(--section-padding);
    background: var(--section-bg);
}

.certifications-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.certification-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.certification-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.certification-card:hover .certification-icon {
    transform: scale(1.1);
}

.certification-content {
    flex-grow: 1;
}

.certification-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.certification-content .platform {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.certification-content .date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.certification-content .description {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.certification-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.certification-tags .tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certification-card:hover .certification-tags .tag {
    background: var(--primary-color);
    color: white;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
    background: transparent;
    box-shadow: none;
}

.certificate-link:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* Dark Mode Styles for Certifications */
[data-theme="dark"] .certification-card {
    background: var(--bg-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .certification-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .certification-tags .tag {
    background: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .certification-card:hover .certification-tags .tag {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .certificate-link {
    color: var(--primary-color);
}

[data-theme="dark"] .certificate-link:hover {
    color: var(--accent-color);
}

/* Responsive Design for Certifications */
@media (max-width: 768px) {
    .certification-card {
        flex-direction: column;
        text-align: center;
    }

    .certification-icon {
        margin: 0 auto 1rem;
    }

    .certification-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certification-content h3 {
        font-size: 1.2rem;
    }

    .certification-content .description {
        font-size: 0.9rem;
    }
}

/* Hackathons Section Styles */
.hackathons-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-light) 100%);
    position: relative;
    overflow: hidden;
}

.hackathons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.hackathon-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hackathon-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hackathon-header h3,
.hackathon-header p {
    padding-right: 70px;
    margin: 0;
}

.hackathon-header h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
}

.hackathon-date {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-align: center;
}

.hackathon-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hackathon-date .year {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.1rem;
}

.hackathon-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hackathon-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-weight: 600;
}

.hackathon-content .role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.hackathon-description {
    margin-bottom: 0.8rem;
}

.hackathon-description p {
    color: var(--light-text);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
}

.achievement i {
    font-size: 1rem;
}

.achievement span {
    font-weight: 500;
    font-size: 0.9rem;
}

.hackathon-media {
    margin: 0.8rem 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

/* Add styles for single image */
.media-grid:has(.media-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.media-item {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

.hackathon-links {
    margin-top: 0.8rem;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hackathons-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 1rem auto;
    }

    .media-item {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .hackathons-section {
        padding: 30px 0;
    }

    .media-item {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .media-grid:has(.media-item:only-child) {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .media-grid:has(.media-item:only-child) {
        max-width: 300px;
    }
}

/* Fun Section Styles */
.fun-section {
    padding: var(--section-padding);
    background: var(--section-bg);
}

.fun-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.hobbies-section,
.favorites-section {
    margin-bottom: 4rem;
}

.hobbies-section h3,
.favorites-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hobbies-section h3 i,
.favorites-section h3 i {
    color: var(--primary-color);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.hobby-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
}

.hobby-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hobby-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hobby-card p {
    color: var(--light-text);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.favorite-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.favorite-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.favorite-card ul {
    list-style: none;
}

.favorite-card ul li {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.favorite-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .certification-card {
        flex-direction: column;
        text-align: center;
    }

    .certification-icon {
        margin: 0 auto 1rem;
    }

    .certification-tags {
        justify-content: center;
    }

    .certificate-link {
        width: 100%;
        justify-content: center;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Responsive Design for Skills Section */
@media (max-width: 1200px) {
    .skills-content {
        grid-template-columns: 1fr;
    }

    .skills-category:last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .skills-category {
        padding: 1.2rem;
    }

    .skills-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .skill-card {
        min-width: 120px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .skill-card {
        min-width: 100px;
    }
}

/* Remove memories section styles */
.memories-section {
    padding: var(--section-padding);
    background: var(--background);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memory-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.memory-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.memory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
}

.memory-content {
    position: relative;
    z-index: 1;
}

/* Memory Modal */
.memory-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.memory-modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.modal-date {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-description {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Dark Mode Styles */
[data-theme="dark"] .memories-section {
    background: var(--background);
}

[data-theme="dark"] .memory-item {
    background: var(--card-bg);
}

[data-theme="dark"] .memory-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

/* Responsive Styles */
@media (max-width: 768px) {
    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }

    .modal-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-content h3 {
        font-size: 1.3rem;
    }

    .memory-date {
        font-size: 0.9rem;
    }

    .memory-description {
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-info h3 {
        font-size: 1.5rem;
    }

    .modal-date {
        font-size: 1rem;
    }

    .modal-description {
        font-size: 1rem;
    }
}

/* Certificate Button Styles */
.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    margin-left: 8px;
    font-size: 0.8rem;
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 28px;
    height: 28px;
}

.cert-btn:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-1px);
}

.cert-btn i {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For the full certificate button */
.certificate-links {
    margin-top: 8px;
}

.certificate-links .cert-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Ensure list items don't break with certificate buttons */
.achievements li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Add subtle animation for certificate icons */
.cert-btn i {
    transition: transform 0.3s ease;
}

.cert-btn:hover i {
    transform: scale(1.1);
}

.hackathon-media {
    margin: 1.5rem 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.media-item {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hackathon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.media-item:hover .hackathon-image {
    transform: scale(1.05);
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Dark mode styles */
.dark-mode .media-item {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .media-item {
        height: 160px;
    }
}

/* ================= COMMUNITY & LEADERSHIP SECTION ================= */

.community-section {
    padding: var(--section-padding);
    background: var(--background);
}

.community-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Card */
.community-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Header strip */
.community-header {
    padding: .9rem 1.4rem;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: white;
    font-weight: 600;
    font-size: .95rem;
}

/* Image grid */
.community-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .5rem;
    padding: .8rem;
}

.community-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* Content */
.community-content {
    padding: 1.3rem 1.5rem;
}

.community-content h3 {
    font-size: 1.25rem;
    margin-bottom: .3rem;
    color: var(--text-color);
}

.community-role {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: .3rem;
}

.community-year {
    color: var(--light-text);
    font-size: .9rem;
    margin-bottom: .9rem;
}

/* Description */
.community-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tags */
.community-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .6rem;
}

.community-tag {
    padding: .28rem .75rem;
    border-radius: 50px;
    font-size: .78rem;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-weight: 500;
}

/* Link Button */
.community-links a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 50px;
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(37, 99, 235, .25);
    color: #2563eb;
    font-size: .85rem;
    text-decoration: none;
    transition: .25s ease;
}

.community-links a:hover {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, .18);
}

/* -------- DARK MODE -------- */
[data-theme="dark"] .community-card {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .community-content p {
    color: #d4d4d8;
}

[data-theme="dark"] .community-tag {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

/* Slider Container */
.community-slider {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 14px;
    margin-top: .8rem;
}

/* Image Track */
.community-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .5s ease-in-out;
}

/* Images */
.community-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Left & Right Positions */
.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Dark mode already fits :) */

@media (max-width: 768px) {
    .slider-btn {
        height: 30px;
        width: 30px;
    }
}

/* ================= COMMUNITY & LEADERSHIP ================= */

.community-section {
    padding: var(--section-padding);
    background: var(--background);
}

.community-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Card */
.community-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: .25s ease;
}

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

/* Header */
.community-header {
    padding: .9rem 1.4rem;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: white;
    font-weight: 600;
    font-size: .95rem;
}

/* Image */
.community-media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Content */
.community-content {
    padding: 1.3rem 1.5rem;
}

.community-content h3 {
    font-size: 1.25rem;
    margin-bottom: .3rem;
    color: var(--text-color);
}

.community-role {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: .3rem;
}

.community-year {
    color: var(--light-text);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.community-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tags */
.community-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .8rem;
}

.community-tag {
    padding: .28rem .75rem;
    border-radius: 50px;
    font-size: .78rem;
    background: rgba(37, 99, 235, .12);
    color: #2563eb;
    font-weight: 500;
}

/* Links */
.community-links a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 50px;
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(37, 99, 235, .25);
    color: #2563eb;
    text-decoration: none;
    font-size: .85rem;
    transition: .25s ease;
}

.community-links a:hover {
    transform: translateY(-2px);
}

/* -------- DARK MODE -------- */
[data-theme="dark"] .community-card {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .community-content p {
    color: #d4d4d8;
}

[data-theme="dark"] .community-tag {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}


/* ================= HERO 3-COLUMN LAYOUT ================= */

.hero-3col {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Side panels */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-side-left {
    padding-right: 1rem;
}

.hero-side-right {
    padding-left: 1rem;
}

.hero-side-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.1rem;
    opacity: 0.85;
}

.hero-side-more a {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s, gap 0.2s;
}

.hero-side-more a:hover {
    opacity: 1;
    gap: 0.5rem;
}

/* Cubes */
.hero-cube {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: block;
}

.hero-cube:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.15);
}

/* Platform header strip */
.cube-platform {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.cube-platform i {
    font-size: 0.85rem;
}

.cube-spinner {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.85;
}

.journal-bg, .hashnode-bg {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.leetcode-bg {
    background: linear-gradient(135deg, #FFA116, #e8920f);
}

.codeforces-bg {
    background: linear-gradient(135deg, #1976D2, #1255a3);
}

.codechef-bg {
    background: linear-gradient(135deg, #6d4c41, #4e342e);
}

.tuf-bg {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.github-bg {
    background: linear-gradient(135deg, #24292e, #0d1117);
}

/* Cube body */
.cube-body {
    padding: 0.75rem 0.9rem 0.8rem;
}

.cube-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cube-meta {
    font-size: 0.68rem;
    color: var(--light-text);
    display: block;
    margin-bottom: 0.4rem;
}

/* Stats grid inside cube */
.cube-stats {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    justify-content: space-between;
}

.cs-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--section-bg);
    border-radius: 8px;
    padding: 0.6rem 0.5rem;
    min-width: 0;
}

.cs-val {
    font-size: 1.15rem;
    /* Increased from 0.95 */
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    width: 100%;
    text-align: center;
}

.cs-item.easy .cs-val {
    color: #00b8a3;
}

.cs-item.medium .cs-val {
    color: #ffc01e;
}

.cs-item.hard .cs-val {
    color: #ff375f;
}

.cs-lbl {
    font-size: 0.62rem;
    /* Increased from 0.55 */
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.cube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.2s;
}

.cube-link:hover {
    gap: 0.5rem;
}

.cube-tuf-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.4rem;
}

/* Error state */
.cube-error {
    font-size: 0.7rem;
    color: var(--light-text);
    font-style: italic;
}

/* Dark mode */
[data-theme="dark"] .hero-cube {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cs-item {
    background: #2a2a2a;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hero-3col {
        grid-template-columns: 230px 1fr 230px;
        padding: 0 1rem;
    }
}

@media (max-width: 900px) {
    .hero-3col {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .hero-side-left {
        order: 2;
        padding-right: 0;
    }

    .hero-content {
        order: 1;
    }

    .hero-side-right {
        order: 3;
        padding-left: 0;
    }

    .hero-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-cube {
        width: 220px;
        flex-shrink: 0;
    }

    .hero-side-label {
        width: 100%;
        justify-content: center;
    }

    .hero-side-more {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cube {
        width: 150px;
    }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 900px) {

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        width: 220px;
        height: 280px;
        margin: 0 auto;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    /* Skills */
    .skills-content {
        grid-template-columns: 1fr;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter {
        flex-wrap: wrap;
    }

    /* Timeline */
    .timeline::before {
        left: 16px;
    }

    .timeline-dot {
        left: 16px;
    }

    .timeline-content {
        width: calc(100% - 44px) !important;
        margin-left: 44px !important;
    }

    /* Experience tabs */
    .experience-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1;
        min-width: 110px;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.5rem 0.75rem;
    }

    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certification-card {
        flex-direction: column;
        text-align: center;
    }

    .certification-icon {
        margin: 0 auto 0.5rem;
    }

    .certification-tags {
        justify-content: center;
    }

    /* Hackathons */
    .hackathons-grid {
        grid-template-columns: 1fr;
    }

    /* Community */
    .community-grid {
        grid-template-columns: 1fr;
    }

    /* Profiles */
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Articles */
    .article-card-new {
        flex-direction: column;
    }

    .article-card-left {
        width: 100%;
        flex-direction: row;
        padding: 0.6rem 1rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .article-card-body {
        padding: 1rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.4rem;
        white-space: normal;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .typing-text {
        font-size: 1rem;
        white-space: normal;
    }

    .cta-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Hero 3-col */
    .hero-3col {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .hero-side-left {
        order: 2;
        padding-right: 0;
    }

    .hero-content {
        order: 1;
        padding: 1.5rem 0.5rem;
    }

    .hero-side-right {
        order: 3;
        padding-left: 0;
    }

    .hero-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-cube {
        width: 160px;
        flex-shrink: 0;
    }

    .hero-side-label {
        width: 100%;
        justify-content: center;
    }

    .hero-side-more {
        width: 100%;
        text-align: center;
    }

    /* Scroll-top */
    .scroll-top-btn {
        bottom: 105px;
        right: 37px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cube {
        width: 290px;
        max-width: 100%;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.88rem;
    }

    .about-image {
        width: 180px;
        height: 230px;
    }

    .filter-btn {
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top-btn {
        bottom: 95px;
        right: 30px;
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}


/* ============================================================
   MOBILE — SHOW ONLY TOP 3 CARDS + VIEW ALL BUTTON
   ============================================================ */

@media (max-width: 900px) {

    /* Hidden cards on mobile (JS adds this class) */
    .mobile-hidden {
        display: none !important;
    }

    /* View All / Show Less button */
    .mobile-view-all-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin: 1.2rem auto 0;
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: 2px solid var(--primary-color);
        border-radius: 50px;
        color: var(--primary-color);
        font-family: 'Poppins', sans-serif;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        max-width: 220px;
    }

    .mobile-view-all-btn:hover {
        background: var(--primary-color);
        color: white;
    }

    .mobile-view-all-btn i {
        transition: transform 0.3s ease;
    }

    .mobile-view-all-btn.expanded i {
        transform: rotate(180deg);
    }
}

/* Hide button on desktop completely */
@media (min-width: 901px) {
    .mobile-view-all-btn {
        display: none !important;
    }
}

/* View All Projects Bar - Premium Theme */
.view-all-projects-bar {
    margin: 2.5rem auto 0;
    max-width: 250px;
    /* Reduced from 600px */
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 10;
}

[data-theme="dark"] .view-all-projects-bar {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.view-all-projects-bar:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.bar-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
}

.bar-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-projects-bar.active .bar-icon {
    transform: rotate(180deg);
}

/* Hidden project cards */
.project-card.hidden-project {
    display: none !important;
}

.project-card.show-project {
    display: flex !important;
    animation: projectFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensuring project cards have a consistent base for animation */
.project-card {
    will-change: transform, opacity;
    position: relative; /* Context for absolute positioning of status badges */
}

/* Project Status Badge Styles */
.project-info h3 {
    padding-right: 5.5rem; /* Reserve space in top-right for the badge */
}

.status-badge {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(120, 120, 120, 0.1);
    border: 1px solid rgba(120, 120, 120, 0.15);
    z-index: 5;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888;
    transition: background-color 0.3s ease;
}

/* Status States */
.status-badge.checking {
    color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
}
.status-badge.checking .status-dot {
    background-color: var(--primary-color, #2563eb);
    animation: status-pulse 1.5s infinite ease-in-out;
}

.status-badge.online {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.15);
}
.status-badge.online .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-badge.offline {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.15);
}
.status-badge.offline .status-dot {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes status-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Card Flip System (Preserves Layout Space Entirely) */
.flip-container {
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.cube-inner {
    position: relative;
    width: 100%;
    height: 165px; /* Fixed expanded height for clean line charts readability */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Toggle rotation state */
.flip-container.flipped .cube-inner {
    transform: rotateY(180deg);
}

.cube-front, .cube-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .cube-front,
[data-theme="dark"] .cube-back {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cube-back {
    transform: rotateY(180deg);
}

/* Custom Chart Layout inside Cards */
.cube-body-chart {
    padding: 0.55rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 95px; /* Expanded canvas height for readable, spacious sparklines */
}

/* Toggle trigger buttons */
.cube-toggle-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem;
    margin-left: auto; /* Push to the absolute right side of headers */
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Actions container grouping Profile and Toggle button */
.cube-front .cube-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cube-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.cube-body .cube-toggle-btn {
    color: var(--primary-color);
    margin-left: 0;
    opacity: 0.85;
}

.cube-body .cube-toggle-btn:hover {
    color: var(--secondary-color, #1e40af);
}

/* Floating Resume AI Chatbot Widget Styles */
.resume-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

/* Toggle button with pulse glow */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #2563eb));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

.chat-toggle-btn i {
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover i {
    transform: rotate(15deg);
}

/* Notification pulse dot */
.chat-notification-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-notification-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: pulse-ring 1.5s infinite ease-out;
}

@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Chat window card */
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 370px;
    height: 500px;
    max-height: calc(100vh - 120px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Chat header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #2563eb));
    color: white;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-header-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.72rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0.2rem;
}

.chat-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Chat body containing scrolls */
.chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.4);
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Chat messages structure */
.message {
    max-width: 82%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.82rem;
    line-height: 1.45;
    word-wrap: break-word;
    animation: slide-bubble 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    transform-origin: left bottom;
}

@keyframes slide-bubble {
    0% { transform: translateY(12px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.message.bot {
    background: white;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    transform-origin: right bottom;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Suggestion buttons pill grid */
.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.suggestion-btn {
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--primary-color);
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.suggestion-btn:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

/* Animated typing status indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.6rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Chat footer input bar */
.chat-footer {
    padding: 0.9rem 1.2rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.chat-footer input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    font-size: 0.82rem;
    outline: none;
    transition: all 0.2s ease;
    color: #334155;
    background: #f8fafc;
}

.chat-footer input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.chat-footer button:hover {
    background: var(--secondary-color, #1e40af);
    transform: scale(1.05);
}

/* ── Dark Theme Overrides ────────────────────────────────────────────────── */
[data-theme="dark"] .chat-window {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .chat-body {
    background: rgba(9, 15, 29, 0.3);
}

[data-theme="dark"] .message.bot {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .suggestion-btn {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
}

[data-theme="dark"] .suggestion-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .chat-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-footer input {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

[data-theme="dark"] .chat-footer input:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary-color);
}

/* Responsiveness overrides */
@media (max-width: 480px) {
    .resume-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    .chat-window {
        width: 320px;
        height: 440px;
        bottom: 70px;
    }
}

/* Document View Transitions circular ripple theme switcher */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* Ensure ::view-transition-new is rendered on top during circular morph */
::view-transition-new(root) {
    z-index: 99999;
}

::view-transition-old(root) {
    z-index: 1;
}

/* Enable circular clipping transition for data-theme change animations */
[data-theme] {
    view-transition-name: root;
}

/* Featured / Industry Sponsored Project Card Styling */
.project-card.featured {
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.03);
}

.project-card.featured:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.08);
}

[data-theme="dark"] .project-card.featured {
    border: 1.5px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.02);
}

[data-theme="dark"] .project-card.featured:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.06);
}

/* Sponsored Tag Badge */
.sponsored-badge {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
}

.project-card.featured:hover .sponsored-badge {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .sponsored-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .project-card.featured:hover .sponsored-badge {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Chatbot Message Markdown Styles */
.message p {
    margin: 0 0 0.5rem;
}

.message p:last-child {
    margin-bottom: 0;
}

.message ul, .message ol {
    padding-left: 1.1rem;
    margin: 0.4rem 0;
}

.message li {
    margin-bottom: 0.25rem;
}

.message li:last-child {
    margin-bottom: 0;
}

.message a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    word-break: break-all;
    transition: opacity 0.2s ease;
}

.message a:hover {
    opacity: 0.8;
}

[data-theme="dark"] .message a {
    color: #60a5fa;
}

.message code {
    background: rgba(0, 0, 0, 0.05);
    color: #dc2626;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: monospace, monospace;
    font-size: 0.82rem;
}

[data-theme="dark"] .message code {
    background: rgba(255, 255, 255, 0.08);
    color: #fca5a5;
}

/* ── Hero Canvas Background ───────────────────────────────────────────────── */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Architecture Explorer Component ───────────────────────────────────────── */
.project-arch-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-arch-btn:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.project-arch-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.project-arch-explorer {
    border-top: 1px dashed var(--border-color);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: archSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-theme="dark"] .project-arch-explorer {
    background: rgba(255, 255, 255, 0.015);
    border-top-color: #333333;
}

@keyframes archSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.arch-flow::-webkit-scrollbar {
    height: 4px;
}

.arch-flow::-webkit-scrollbar-track {
    background: transparent;
}

.arch-flow::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 85px;
    flex: 1;
    transition: all 0.3s ease;
}

.arch-node .node-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .arch-node .node-icon {
    background: #2a2a2a;
}

.arch-node .node-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--light-text);
    max-width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s ease;
}

.arch-node:hover .node-icon {
    transform: scale(1.08) translateY(-2px);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.arch-node.active .node-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.arch-node.active .node-name {
    color: var(--text-color);
    font-weight: 600;
}

.arch-connector {
    color: var(--light-text);
    opacity: 0.45;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.2rem;
}

.arch-details {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    min-height: 80px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .arch-details {
    background: #222222;
    border-color: #333333;
}

.arch-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    transition: opacity 0.15s ease-in-out;
}

.arch-details p {
    font-size: 0.76rem;
    color: var(--light-text);
    line-height: 1.45;
    transition: opacity 0.15s ease-in-out;
}

/* Responsive adjustment for explorer flow */
@media (max-width: 600px) {
    .arch-flow {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-left: 0.5rem;
    }
    
    .arch-node {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
        min-width: unset;
        gap: 1rem;
    }
    
    .arch-node .node-name {
        max-width: unset;
        text-align: left;
        white-space: normal;
        font-size: 0.8rem;
    }
    
    .arch-connector {
        display: none;
    }
}

/* ── Native CSS Scroll-Driven Animations ────────────────────────────────────── */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes scrollRevealEffect {
        from {
            opacity: 0.15;
            transform: translateY(35px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    section.fade-in,
    .project-card,
    .timeline-item,
    .certification-card {
        animation: scrollRevealEffect linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 30%;
        /* Disables manual fade transition to avoid conflicting actions */
        transition: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    section.fade-in,
    .project-card,
    .timeline-item,
    .certification-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}





