﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

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

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Manrope", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --primary-color: #000000;
    --secondary-color: #1d1d1f;
    --accent-color: #0071e3;
    --text-primary: #1d1d1f;
    --text-secondary: #1d1d1f;
    --background: #ffffff;
    --card-background: #f5f5f7;
    --border-radius: 18px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f7;
    --accent-color: #2997ff;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --background: #000000;
    --card-background: #1c1c1e;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
    position: relative;
}

.synapse-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}

.hero-content,
.scroll-indicator,
section > .container,
.footer .container {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    border-bottom: none;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: transparent;
    border-bottom: none;
}

.nav-container {
    width: calc(100% - 20px);
    max-width: none;
    margin: 10px auto 0;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.44) 100%);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: saturate(145%) blur(18px);
    -webkit-backdrop-filter: saturate(145%) blur(18px);
}

[data-theme="dark"] .nav-container {
    background: linear-gradient(135deg, rgba(34, 34, 38, 0.66) 0%, rgba(20, 20, 24, 0.58) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.25px;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--card-background);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: var(--transition);
}

.mobile-nav-overlay {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    transition: var(--transition);
    position: relative;
    opacity: 0.95;
    font-family: var(--font-display);
}

.hero-title,
.hero-subtitle,
.section-title,
.project-content h3,
.contact-card h3,
.skill-item h3,
.cert-card h3 {
    font-family: var(--font-display);
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-menu a.active {
    opacity: 1;
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--card-background);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.sun-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

/* Profile Image */
.profile-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .profile-image {
    border-color: #2d2d2d;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: pointer;
}

[data-theme="dark"] .floating-icon {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.floating-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.floating-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.icon-1 {
    top: 0;
    right: 20px;
    animation: float 3s ease-in-out infinite;
}

.icon-2 {
    top: 80px;
    right: -20px;
    animation: float 3s ease-in-out infinite 0.5s;
}

.icon-3 {
    bottom: 80px;
    right: -20px;
    animation: float 3s ease-in-out infinite 1s;
}

.icon-4 {
    bottom: 0;
    left: 20px;
    animation: float 3s ease-in-out infinite 1.5s;
}

.icon-5 {
    bottom: 80px;
    left: -20px;
    animation: float 3s ease-in-out infinite 2s;
}

.icon-6 {
    top: 80px;
    left: -20px;
    animation: float 3s ease-in-out infinite 2.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--primary-color);
    min-height: 1.2em;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.highlight {
    background: linear-gradient(135deg, #0071e3, #00a8ff, #0071e3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

[data-theme="dark"] .highlight {
    background: linear-gradient(135deg, #2997ff, #00d4ff, #2997ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    position: relative;
    will-change: opacity, transform;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

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

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 5px;
        opacity: 1;
    }
    50% {
        top: 15px;
        opacity: 0.3;
    }
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 120px 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1.5px;
    color: var(--primary-color);
}

/* About Section */
.about {
    background: var(--background);
    position: relative;
}

/* About Section - No floating icons */

/* Stats Counter */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--card-background);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.15);
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.66) 0%, rgba(245, 245, 247, 0.56) 100%);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.66);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.quick-link-card:hover {
    background: var(--background);
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.25);
}

[data-theme="dark"] .quick-link-card:hover {
    box-shadow: 0 12px 30px rgba(41, 151, 255, 0.3);
}

.quick-link-card:active {
    transform: translateY(-1px) scale(1.02);
}

.quick-link-card svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    color: var(--accent-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.quick-link-card:hover svg {
    transform: scale(1.1);
}

.quick-link-card span {
    font-size: 0.95rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 60px;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.skill-item {
    background: var(--background);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: default;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .skill-item {
    background: #1f1f23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-item::before {
    content: none;
}

.skill-item::after {
    content: none;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.2);
    border-color: var(--accent-color);
}

[data-theme="dark"] .skill-item:hover {
    box-shadow: 0 20px 50px rgba(41, 151, 255, 0.25);
    border-color: var(--accent-color);
}

.skill-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
}

.skill-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Certifications Section */
.certifications {
    background: var(--card-background);
    padding: 80px 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(245, 245, 247, 0.56) 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.66);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: saturate(145%) blur(10px);
    -webkit-backdrop-filter: saturate(145%) blur(10px);
}

[data-theme="dark"] .cert-card {
    background: linear-gradient(160deg, rgba(38, 38, 42, 0.64) 0%, rgba(26, 26, 30, 0.58) 100%);
    border-color: rgba(255, 255, 255, 0.14);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.2);
    border-color: var(--accent-color);
}

[data-theme="dark"] .cert-card:hover {
    box-shadow: 0 20px 50px rgba(41, 151, 255, 0.25);
}

.cert-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057c2, #007fd4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.microsoft-badge {
    background: #ffffff;
    border: 2px solid #e5e5e5;
}

.microsoft-badge svg {
    width: 48px;
    height: 48px;
}

[data-theme="dark"] .microsoft-badge {
    background: #2d2d2d;
    border-color: #404040;
}

.oracle-badge {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

[data-theme="dark"] .oracle-badge {
    background: #f8f8f8;
    border-color: #d8d8d8;
}

.oracle-logo-img {
    width: 88px;
    height: auto;
    object-fit: contain;
}

.cert-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cert-id {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cert-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
}

.cert-download:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.cert-download svg {
    width: 18px;
    height: 18px;
}

/* Credly Button */
.credly-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0057c2, #0082d9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.2);
}

.credly-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.35);
}

.credly-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Projects Section */
.projects {
    background: var(--background);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

[data-theme="dark"] .projects::before {
    background: radial-gradient(circle, rgba(41, 151, 255, 0.08) 0%, transparent 70%);
}

.projects .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(245, 245, 247, 0.56) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    backdrop-filter: saturate(145%) blur(10px);
    -webkit-backdrop-filter: saturate(145%) blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

[data-theme="dark"] .project-card {
    background: linear-gradient(160deg, rgba(38, 38, 42, 0.66) 0%, rgba(26, 26, 30, 0.58) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.4), inset 0 0 0 1px rgba(0, 113, 227, 0.5);
    border-color: var(--accent-color);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.4), inset 0 0 0 1px rgba(41, 151, 255, 0.5);
}

.project-header {
    height: 160px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e1e1e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .project-header {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
}

.project-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.project-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.5s ease;
    z-index: 2;
}

.project-card:hover .project-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-content h3 svg {
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.project-card:hover h3 svg {
    opacity: 1;
    transform: translateX(0);
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    border-radius: 6px;
    font-weight: 600;
}

[data-theme="dark"] .project-tag {
    background: rgba(20, 78, 130, 0.55);
    color: #f2f8ff;
}

/* Specific Project Gradients */
.project-card:nth-child(1) .project-header { background: linear-gradient(135deg, #FF9900 0%, #FFCC00 100%); } /* OpenStack - Orange */
.project-card:nth-child(2) .project-header { background: linear-gradient(135deg, #2b3448 0%, #4f6ea5 55%, #6ea8ff 100%); } /* Stickly - Improved */
.project-card:nth-child(3) .project-header { background: linear-gradient(135deg, #4EAA25 0%, #87CD33 100%); } /* CoinDonation - Green */
.project-card:nth-child(4) .project-header { background: linear-gradient(135deg, #E34F26 0%, #F06529 100%); } /* Portfolio - Orange/Red */
.project-card:nth-child(5) .project-header { background: linear-gradient(135deg, #3776AB 0%, #5A9FD4 100%); } /* NeuroCynx - Blue */

.project-card:nth-child(3) .project-icon {
    filter: contrast(1.18) saturate(1.12) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 8px;
}

[data-theme="dark"] .project-card:nth-child(2) .project-header {
    background: linear-gradient(135deg, #1f2a44 0%, #2f4f8a 55%, #3b82f6 100%);
}

[data-theme="dark"] .project-card:nth-child(2) .project-icon,
[data-theme="dark"] .project-card:nth-child(3) .project-icon {
    filter: brightness(0) invert(1) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 8px;
}

.project-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85); /* Light mode overlay to soften */
    z-index: 1;
}
[data-theme="dark"] .project-header::before {
    background: rgba(0,0,0,0.6); /* Dark mode overlay */
}

[data-theme="dark"] .project-card:nth-child(2) .project-header::before {
    background: rgba(0,0,0,0.35);
}

/* Contact Section */
.contact {
    background: var(--background);
    padding-top: 72px;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact .section-title {
    margin-bottom: 14px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(245, 245, 247, 0.56) 100%);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    backdrop-filter: saturate(145%) blur(10px);
    -webkit-backdrop-filter: saturate(145%) blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 113, 227, 0.2);
    background: white;
}

[data-theme="dark"] .contact-card:hover {
    background: #2d2d2d;
    box-shadow: 0 25px 50px rgba(41, 151, 255, 0.25);
}

[data-theme="dark"] .contact-card {
    background: linear-gradient(160deg, rgba(38, 38, 42, 0.66) 0%, rgba(26, 26, 30, 0.58) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contact-card svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-card:hover svg {
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Visitor Stats Section */
.visitor-stats {
    background: var(--card-background);
    padding: 60px 20px;
    margin-top: 80px;
}

.stats-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.visitor-count {
    background: var(--background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.count-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.count-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.count-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.visitor-graph {
    background: var(--background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 300px;
}

#visitorChart {
    width: 100% !important;
    height: 100% !important;
}

.back-to-top-container {
    position: fixed;
    right: 24px;
    bottom: 28px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
}

.back-to-top-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(245, 245, 247, 0.56) 100%);
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.36);
    backdrop-filter: saturate(145%) blur(10px);
    -webkit-backdrop-filter: saturate(145%) blur(10px);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 113, 227, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.back-to-top-nav {
    position: absolute;
    right: 0;
    bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top-container.open .back-to-top-nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top-option {
    min-width: 110px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(245, 245, 247, 0.56) 100%);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 8px 14px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: saturate(145%) blur(10px);
    -webkit-backdrop-filter: saturate(145%) blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.back-to-top-option:hover {
    transform: translateY(-2px);
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .back-to-top {
    background: linear-gradient(160deg, rgba(38, 38, 42, 0.66) 0%, rgba(26, 26, 30, 0.58) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    color: #8fc8ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .back-to-top-option {
    background: linear-gradient(160deg, rgba(38, 38, 42, 0.66) 0%, rgba(26, 26, 30, 0.58) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e7ecf5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .back-to-top-option:hover {
    color: #8fc8ff;
    box-shadow: 0 10px 20px rgba(41, 151, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Skills Visualization Section */
.skills-visualization {
    background: var(--background);
    padding: 80px 20px;
}

.skills-viz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.viz-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.radar-chart-container {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#skillsRadar {
    width: 100% !important;
    max-width: 400px;
    height: 400px !important;
}

.tech-stack-container {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.tech-item {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.2);
}

.tech-item:hover::before {
    opacity: 0.1;
}

.tech-item svg,
.tech-item img.tech-icon {
    width: 40px;
    height: 40px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.tech-item:hover svg,
.tech-item:hover img.tech-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 113, 227, 0.3));
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Tech item specific colors */
.tech-item[data-tech="aws"] svg { color: #FF9900; }
.tech-item[data-tech="azure"] svg { color: #0089D6; }
.tech-item[data-tech="docker"] svg { color: #2496ED; }
.tech-item[data-tech="kubernetes"] svg { color: #326CE5; }
.tech-item[data-tech="terraform"] svg { color: #7B42BC; }
.tech-item[data-tech="jenkins"] svg { color: #D24939; }
.tech-item[data-tech="git"] svg { color: #F05032; }
.tech-item[data-tech="python"] svg { color: #3776AB; }
.tech-item[data-tech="prometheus"] svg { color: #E6522C; }
.tech-item[data-tech="ansible"] svg { color: #EE0000; }
.tech-item[data-tech="grafana"] svg { color: #F46800; }
.tech-item[data-tech="github"] svg { color: #181717; }

[data-theme="dark"] .tech-item[data-tech="github"] svg { color: #ffffff; }

.tech-item[data-tech="github"] img.tech-icon {
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .tech-item[data-tech="github"] img.tech-icon {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .tech-item[data-tech="aws"] img.tech-icon {
    filter: brightness(0) invert(1) contrast(1.05) drop-shadow(0 3px 8px rgba(255, 255, 255, 0.18));
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

[data-theme="dark"] .tech-item[data-tech="aws"]:hover img.tech-icon {
    filter: brightness(0) invert(1) contrast(1.1) drop-shadow(0 5px 10px rgba(41, 151, 255, 0.35));
}

/* Animation for tech items */
.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.15s; }
.tech-item:nth-child(3) { animation-delay: 0.2s; }
.tech-item:nth-child(4) { animation-delay: 0.25s; }
.tech-item:nth-child(5) { animation-delay: 0.3s; }
.tech-item:nth-child(6) { animation-delay: 0.35s; }
.tech-item:nth-child(7) { animation-delay: 0.4s; }
.tech-item:nth-child(8) { animation-delay: 0.45s; }
.tech-item:nth-child(9) { animation-delay: 0.5s; }
.tech-item:nth-child(10) { animation-delay: 0.55s; }
.tech-item:nth-child(11) { animation-delay: 0.6s; }
.tech-item:nth-child(12) { animation-delay: 0.65s; }

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

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

[data-theme="dark"] .footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.7;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 15px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        gap: 0;
        justify-content: space-between;
    }

    .navbar {
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    [data-theme="dark"] .navbar {
        background: rgba(29, 29, 31, 0.72);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .theme-toggle {
        order: 3;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: fit-content;
        max-width: 250px;
        height: 100vh;
        margin: 0;
        padding: 90px 20px 24px;
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 22px;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
        z-index: 1102;
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(20, 20, 24, 0.95);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }

    body.mobile-nav-open .nav-menu {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1101;
    }

    body.mobile-nav-open .mobile-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        display: flex;
        align-items: center;
        width: auto;
        opacity: 0;
        transform: translateX(16px);
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.mobile-nav-open .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }

    body.mobile-nav-open .nav-menu li:nth-child(1) { transition-delay: 0.06s; }
    body.mobile-nav-open .nav-menu li:nth-child(2) { transition-delay: 0.09s; }
    body.mobile-nav-open .nav-menu li:nth-child(3) { transition-delay: 0.12s; }
    body.mobile-nav-open .nav-menu li:nth-child(4) { transition-delay: 0.15s; }
    body.mobile-nav-open .nav-menu li:nth-child(5) { transition-delay: 0.18s; }

    body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu a,
    .yayy-btn {
        font-size: 1.05rem;
        padding: 10px 2px;
        min-height: 44px;
        display: flex;
        align-items: center;
        width: auto;
    }

    .yayy-btn {
        justify-content: flex-start !important;
    }

    section {
        padding: 60px 15px;
    }

    .contact {
        padding-top: 52px;
    }

    .hero {
        min-height: 100vh;
        padding: 60px 15px 40px;
    }

    .hero-title {
        font-size: clamp(2.1rem, 9vw, 2.9rem);
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: clamp(1.25rem, 4.8vw, 1.7rem);
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: clamp(1.1rem, 4.1vw, 1.25rem);
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .profile-image-wrapper {
        width: 250px;
        height: 250px;
    }

    .floating-icon {
        width: 44px;
        height: 44px;
    }

    .floating-icon svg {
        width: 22px;
        height: 22px;
    }

    .icon-1 {
        top: -5px;
        right: 5px;
    }

    .icon-2 {
        top: 40px;
        right: -5px;
    }

    .icon-3 {
        bottom: 40px;
        right: -5px;
    }

    .icon-4 {
        bottom: -5px;
        left: 5px;
    }

    .icon-5 {
        bottom: 40px;
        left: -5px;
    }

    .icon-6 {
        top: 40px;
        left: -5px;
    }

    .quick-links {
        gap: 10px;
        margin-bottom: 40px;
    }

    .quick-link-card {
        padding: 10px 14px;
        font-size: 0.95rem;
        min-height: 44px;
        gap: 8px;
    }

    .quick-link-card span {
        font-size: 0.95rem;
    }

    .quick-link-card svg {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        flex-shrink: 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 40px;
    }

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

    .skill-item {
        padding: 25px 20px;
    }

    .skill-item h3 {
        font-size: 1.2rem;
    }

    .hero-cta {
        gap: 12px;
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }

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

    .cert-card {
        padding: 25px 20px;
    }

    .cert-badge {
        width: 60px;
        height: 60px;
    }

    .microsoft-badge svg {
        width: 32px !important;
        height: 32px !important;
    }

    .cert-download {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .cert-download svg {
        width: 14px !important;
        height: 14px !important;
    }

    .credly-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .about-text p,
    .project-content p,
    .contact-card p,
    .cert-issuer,
    .cert-id {
        font-size: 1rem;
    }

    .credly-button svg {
        width: 16px !important;
        height: 16px !important;
    }

    .project-header {
        height: 140px;
    }

    .project-icon {
        width: 56px;
        height: 56px;
    }

    .skills-viz-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    #skillsRadar {
        height: 350px !important;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-card svg {
        width: 28px !important;
        height: 28px !important;
    }

    .back-to-top-container {
        right: 16px;
        bottom: 18px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .back-to-top-nav {
        bottom: 50px;
    }

    .back-to-top-option {
        min-width: 96px;
        font-size: 0.82rem;
        padding: 7px 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .nav-container {
        padding: 12px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-menu {
        width: fit-content;
        max-width: 240px;
        gap: 18px;
    }

    .nav-menu a,
    .yayy-btn {
        font-size: 1rem;
    }

    section {
        padding: 50px 12px;
    }

    .contact {
        padding-top: 44px;
    }

    .hero {
        padding: 55px 12px 30px;
    }

    .skills-visualization {
        padding: 50px 12px;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-item {
        padding: 15px;
    }

    .tech-item svg,
    .tech-item img.tech-icon {
        width: 32px;
        height: 32px;
    }

    .tech-item span {
        font-size: 0.8rem;
    }

    .project-header {
        height: 130px;
    }

    .project-icon {
        width: 50px;
        height: 50px;
    }

    #skillsRadar {
        height: 300px !important;
    }

    .radar-chart-container,
    .tech-stack-container {
        padding: 25px 20px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }

    .hero-description {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
    }

    .about-text p,
    .project-content p,
    .contact-card p,
    .cert-issuer,
    .cert-id,
    .quick-link-card,
    .quick-link-card span {
        font-size: 0.98rem;
    }

    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .floating-icon {
        width: 32px;
        height: 32px;
    }

    .floating-icon svg {
        width: 16px;
        height: 16px;
    }

    .icon-1 {
        top: -3px;
        right: 3px;
    }

    .icon-2 {
        top: 50px;
        right: -5px;
    }

    .icon-3 {
        bottom: 50px;
        right: -5px;
    }

    .icon-4 {
        bottom: -5px;
        left: 5px;
    }

    .icon-5 {
        bottom: 50px;
        left: -5px;
    }

    .icon-6 {
        top: 50px;
        left: -5px;
    }

    .visitor-stats {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .stats-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .stats-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .visitor-count {
        padding: 30px;
    }

    .count-number {
        font-size: 2.5rem;
    }

    .visitor-graph {
        height: 250px;
        padding: 20px;
    }

    .quick-links {
        gap: 12px;
    }

    .quick-link-card {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .quick-link-card svg {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }
}

/* Tablet responsive - adjust floating icons */
@media (max-width: 900px) and (min-width: 769px) {
    .floating-icon {
        width: 50px;
        height: 50px;
    }

    .floating-icon svg {
        width: 28px;
        height: 28px;
    }

    .icon-1 {
        top: -10px;
        right: 10px;
    }

    .icon-2 {
        top: 60px;
        right: -10px;
    }

    .icon-3 {
        bottom: 60px;
        right: -10px;
    }

    .icon-4 {
        bottom: -10px;
        left: 10px;
    }

    .icon-5 {
        bottom: 60px;
        left: -10px;
    }

    .icon-6 {
        top: 60px;
        left: -10px;
    }

}
/* RESET Yayy Button to look like Nav Link */
.yayy-btn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: var(--text-primary) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.35px;
    font-family: var(--font-display) !important;
    opacity: 0.95;
    position: relative;
    display: inline-block !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
    height: auto !important;
    width: auto !important;
}

.yayy-btn:hover {
    transform: none !important;
    filter: none !important;
    opacity: 1;
    color: var(--accent-color) !important;
    box-shadow: none !important;
}

.yayy-btn:active {
    transform: none !important;
}

/* Add underline effect to Yayy button */
.yayy-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.yayy-btn:hover::after {
    width: 100%;
}

/* Placely.ai Gradient */
.project-card:nth-child(6) .project-header {
    background: linear-gradient(135deg, #61DAFB 0%, #9B5DE5 100%) !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
