:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --card-bg: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --card-border: rgba(255, 255, 255, 0.1);
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 25%);
    background-attachment: fixed;
}



/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.highlight {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Glass Capsule Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.6rem 2rem;
    width: auto;
    max-width: fit-content;
    transition: all 0.3s ease;
}

.navbar .logo {
    display: none;
}

.navbar.scrolled {
    background: transparent;
    border: none;
    box-shadow: none;
}

.navbar.navbar-hidden {
    transform: translate(-50%, -120px);
    opacity: 0;
    pointer-events: none;
}

.logo-text {
    display: none;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.contact-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
}

.contact-btn:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

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

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: transparent;
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90vh;
    padding: 0 5%;
    gap: 2rem;
}

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-header .profile-image-container {
    margin-bottom: 0;
}

.profile-header .role {
    margin-bottom: 0;
}

.profile-image-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* Crop out the pre-baked white circular border */
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.28); /* Maintain interactive zoom effect */
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    white-space: nowrap;
}

.role {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

.hero-graphic {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.stat-card {
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 200px;
    animation: float 6s ease-in-out infinite;
}

.stat-card-alt {
    margin-right: 4rem;
    animation-delay: -3s;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections */
section {
    padding: 6rem 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.skill-category {
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

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

.skill-category .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

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

.skill-category li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category li::before {
    content: '→';
    color: var(--accent-color);
}
/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

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

.project-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
}

.project-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-card .project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-card .view-cert-btn,
.project-card .view-project-btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    margin-top: auto;
}

/* CTA */
.cta {
    padding-bottom: 6rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
/* Footer (Fully Transparent Taskbar) */
footer {
    margin: 4rem auto 2rem;
    width: 90%;
    max-width: 1200px;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}


/* Certifications 3D Visual Gallery (5 overlapping cards) */
.certifications-gallery-section {
    padding: 6rem 5%;
    overflow: hidden;
    position: relative;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-text {
    max-width: 500px;
}

.gallery-text h2 {
    font-size: 2.8rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
}

.gallery-text .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.gallery-visual-wrapper {
    perspective: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    overflow: visible;
}

.gallery-single-card {
    position: absolute;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1.414/1;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-single-card.card-1 {
    transform: rotateX(16deg) rotateY(-18deg) rotateZ(6deg) translate3d(0px, 0px, 20px);
    z-index: 5;
}

.gallery-single-card.card-2 {
    transform: rotateX(16deg) rotateY(-18deg) rotateZ(6deg) translate3d(20px, -15px, 0px);
    z-index: 4;
    opacity: 0.9;
}

.gallery-single-card.card-3 {
    transform: rotateX(16deg) rotateY(-18deg) rotateZ(6deg) translate3d(40px, -30px, -20px);
    z-index: 3;
    opacity: 0.8;
}

.gallery-single-card.card-4 {
    transform: rotateX(16deg) rotateY(-18deg) rotateZ(6deg) translate3d(60px, -45px, -40px);
    z-index: 2;
    opacity: 0.7;
}

.gallery-single-card.card-5 {
    transform: rotateX(16deg) rotateY(-18deg) rotateZ(6deg) translate3d(80px, -60px, -60px);
    z-index: 1;
    opacity: 0.6;
}

.gallery-single-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-single-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.3);
}

.gallery-single-card.card-1:hover {
    transform: rotateX(4deg) rotateY(-4deg) rotateZ(2deg) translate3d(-30px, 0px, 120px) scale(1.08);
    z-index: 100;
    opacity: 1;
}

.gallery-single-card.card-2:hover {
    transform: rotateX(4deg) rotateY(-4deg) rotateZ(2deg) translate3d(-10px, -15px, 120px) scale(1.08);
    z-index: 100;
    opacity: 1;
}

.gallery-single-card.card-3:hover {
    transform: rotateX(4deg) rotateY(-4deg) rotateZ(2deg) translate3d(10px, -30px, 120px) scale(1.08);
    z-index: 100;
    opacity: 1;
}

.gallery-single-card.card-4:hover {
    transform: rotateX(4deg) rotateY(-4deg) rotateZ(2deg) translate3d(30px, -45px, 120px) scale(1.08);
    z-index: 100;
    opacity: 1;
}

.gallery-single-card.card-5:hover {
    transform: rotateX(4deg) rotateY(-4deg) rotateZ(2deg) translate3d(50px, -60px, 120px) scale(1.08);
    z-index: 100;
    opacity: 1;
}

.gallery-single-card:hover img {
    transform: scale(1.03);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-single-card:hover .card-glow {
    opacity: 1;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 70%, transparent 100%);
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    pointer-events: none;
}

.gallery-single-card:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}

.item-overlay h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-overlay span {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .certifications-gallery-section {
        padding: 4rem 5%;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-visual-wrapper {
        min-height: auto;
    }
    
    .gallery-single-card {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        z-index: auto !important;
        max-width: 100%;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        margin-bottom: 2rem;
    }
    
    .gallery-single-card:last-child {
        margin-bottom: 0;
    }
    
    .gallery-single-card:hover {
        transform: translateY(-5px) scale(1.02) !important;
    }
    
    .item-overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 1rem;
    }
    
    .item-overlay h4 {
        font-size: 0.95rem;
    }
    
    .item-overlay span {
        font-size: 0.75rem;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--card-border);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content-wrapper {
    transform: scale(1);
}

.modal-content {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Modal Navigation Arrows */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
    user-select: none;
}

.modal-arrow:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

@media (max-width: 768px) {
    footer {
        width: 100%;
        margin: 2rem auto;
        padding: 1.5rem 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .profile-header {
        flex-direction: column;
        gap: 1rem;
    }

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

    .subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-graphic {
        flex-direction: row;
        align-items: center;
        margin-top: 3rem;
    }

    .stat-card-alt {
        margin-right: 0;
    }

    .navbar {
        top: 1rem;
        padding: 0.5rem 1.2rem;
    }

    .nav-links {
        display: flex;
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 2rem;
    }

    .modal-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .modal-prev {
        left: 0.5rem;
    }
    
    .modal-next {
        right: 0.5rem;
    }
}