/* Reset and Base Styles */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #e5e7eb;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --accent-color: #3b82f6;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}
body, html {
    /* Removed cursor: none !important; */
}

html, body, button, a, input, textarea {
    /* Removed cursor: none !important; */
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

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

.contact-link {
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-link::after {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1002;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 5rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding-left: 2rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .contact-link {
        margin-top: 1rem;
        display: inline-block;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Buttons */
.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-btn::before {
    content: '📄';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

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

.social-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .highlight-card {
        text-align: center;
    }
}

/* About Page Styles */
.about-hero {
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    text-align: left;
}

.about-description {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 800px;
}

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

.detail-item {
    background: rgba(31, 41, 55, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.detail-item:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.detail-item h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.detail-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.5;
}

.detail-item p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.25rem;
}

.detail-item p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0.7;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--primary-color);
    position: relative;
    transform-origin: center;
}

.about-image .last-updated {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 90%;
    box-sizing: border-box;
}

.about-image .last-updated:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Responsive adjustments for last updated text */
@media (max-width: 768px) {
    .about-image .last-updated {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .about-image .last-updated {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 360px) {
    .about-image .last-updated {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        margin-top: 0.6rem;
    }
}

.transparent-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    backdrop-filter: blur(4px);
}

.transparent-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.profile-image.glow-effect {
    animation: glowingBorder 2s ease-in-out infinite;
}

@keyframes glowingBorder {
    0% {
        box-shadow: 0 0 2px var(--primary-color), /* Much more subtle glow */
                    0 0 4px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 6px var(--primary-color),
                    0 0 12px var(--primary-color),
                    0 0 18px var(--primary-color); /* Subtle peak glow intensity */
    }
    100% {
        box-shadow: 0 0 2px var(--primary-color), /* Return to subtle glow */
                    0 0 4px var(--primary-color);
    }
}

.profile-image:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 0 30px var(--primary-color),
                0 0 50px var(--primary-color),
                0 0 70px var(--primary-color);
    border-color: var(--secondary-color);
}

/* Skills Section */
.skills-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #1a2234 0%, #1f2937 100%);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.skills-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: rgba(31, 41, 55, 0.7);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.5;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 1rem;
    color: #9ca3af;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.skill-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 6rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .skill-list li {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .skills-section {
        padding: 5rem 1rem;
    }

    .skill-category {
        padding: 1.25rem;
    }

    .skill-category h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .skill-list li {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Interests Section */
.interests-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #111827 0%, #1a2234 100%);
    position: relative;
    overflow: hidden;
}

.interests-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.interests-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.interest-card {
    background: rgba(31, 41, 55, 0.7);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.interest-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.interest-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.interest-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.5;
}

.interest-card p {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.interest-card p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0.7;
}

@media (max-width: 992px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .interests-section {
        padding: 6rem 1.5rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .interest-card {
        padding: 1.5rem;
    }

    .interest-card h3 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .interest-card p {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .interests-section {
        padding: 5rem 1rem;
    }

    .interest-card {
        padding: 1.25rem;
    }

    .interest-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .interest-card p {
        font-size: 1rem;
    }
}

/* Achievements Page Styles */
.achievements-hero {
    padding: 12rem 2rem 4rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.achievements-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.achievements-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.section-description {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    animation: fadeInUp 0.8s ease-out;
}

.achievements-grid {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-category {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.achievement-category h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.achievement-card {
    background: rgba(31, 41, 55, 0.7);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.achievement-card h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.achievement-card p {
    color: #9ca3af;
    line-height: 1.6;
}

/* Action Buttons for Achievements */
.achievement-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    min-width: 200px;
    justify-content: center;
}

.action-btn span {
    font-size: 1.2rem;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.gallery-btn {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(4px);
}

.gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

@media (max-width: 768px) {
    .achievement-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
        margin-top: 2rem;
    }

    .action-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        min-width: unset;
    }

    .action-btn span {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .achievement-actions {
        padding: 0 1rem;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .action-btn {
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
    }

    .action-btn span {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .achievement-actions {
        padding: 0 0.75rem;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .action-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .action-btn span {
        font-size: 1.1rem;
    }
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 900px;
    height: 85vh;
    background: var(--bg-color);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
}

.gallery-modal.active {
    display: block;
    opacity: 1;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(31, 41, 55, 0.5);
}

.gallery-header h3 {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
}

.close-gallery {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    transform: scale(1);
    opacity: 1;
    animation: galleryItemAppear 0.5s ease forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: none;
}

.gallery-item:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.gallery-item.clicked {
    transform: scale(1.1);
    z-index: 1;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

@keyframes galleryItemAppear {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1); /* End at scale 1 */
        opacity: 1; /* End at opacity 1 */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }

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

    .gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 12px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-color: rgba(59, 130, 246, 0.2);
    }

    .gallery-item.clicked {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .gallery-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }

    .gallery-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
        margin-top: 1.2rem;
    }

    .gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-color: rgba(59, 130, 246, 0.2);
    }

    .gallery-item.clicked {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 360px) {
    .gallery-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }

    .gallery-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
        margin-top: 1rem;
    }

    .gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-color: rgba(59, 130, 246, 0.2);
    }

    .gallery-item.clicked {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

.gallery-modal.active .gallery-grid {
    display: grid; /* Show grid when modal is active */
}

.single-image-view {
    display: none; /* Hidden by default */
    width: 100%;
    height: calc(100% - 60px); /* Take up space below header */
    display: flex; /* Use flexbox to center image */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.single-image-view img {
    max-width: 100%; /* Max size is container width */
    max-height: 100%; /* Max size is container height */
    object-fit: contain; /* Contain the image within the area */
    border-radius: 8px; /* Match some item border radius */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Add shadow to the large image */
}

.gallery-modal.single-view .gallery-grid {
    display: none; /* Hide grid when single view is active */
}

.gallery-modal.single-view .single-image-view {
    display: flex; /* Show single image view when active */
}

.gallery-modal.single-view .single-image-view img {
    z-index: 99997; /* Ensure image is below cursor but above modal backdrop */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }

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

    .gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 12px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .gallery-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }

    .gallery-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
        margin-top: 1.2rem;
    }

    .gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 360px) {
    .gallery-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }

    .gallery-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
        margin-top: 1rem;
    }

    .gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .about-text {
        text-align: center;
        order: 1;
    }

    .about-image {
        order: 2;
        margin-top: 2rem;
    }

    .about-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
        line-height: 1.7;
    }

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

    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .about-content {
        gap: 2rem;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
        margin-top: 1.5rem;
    }

    .about-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .profile-image {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 5rem 0.75rem 2rem;
    }

    .about-content {
        padding: 0 0.75rem;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
        margin-top: 1.25rem;
    }

    .about-description {
        font-size: 0.95rem;
        padding: 0;
    }

    .profile-image {
        max-width: 200px;
    }
}

@media (max-width: 360px) {
    .about-hero {
        padding: 4rem 0.5rem 1.5rem;
    }

    .about-content {
        padding: 0 0.5rem;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
        margin-top: 1rem;
    }

    .profile-image {
        max-width: 180px;
    }
}
