/* General Enhancements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0b1531;
    --secondary-color: #ffffff;
    /* Cluely-style blue palette */
    --accent-color: #2563eb;
    --accent-color-2: #1d4ed8;
    --accent-color-3: #60a5fa;
    --text-color: #0f172a;
    /* Main body text on light sections */
    --text-light: #1e3a8a;
    --bg-light: #f9fafb;
    --bg-gradient-1: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --bg-gradient-2: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    --bg-gradient-3: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    --bg-gradient-4: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    --border-color: #e5e7eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 6px 18px rgba(37, 99, 235, 0.25);
    --shadow-md: 0 12px 30px rgba(37, 99, 235, 0.3);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.55);
    --mobile-gutter: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, #4f8dfc 0%, #7fb3ff 35%, #cfe6ff 65%, #ffffff 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.6) 0%, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
        radial-gradient(circle at 30% 80%, rgba(129, 178, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Enhancements */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section Enhancements */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    z-index: -1;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.title-line {
    display: block;
    font-weight: 300;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.title-name {
    display: block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-2) 50%, var(--accent-color-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    font-weight: 900;
}

.title-role {
    display: block;
    font-weight: 400;
    font-size: 0.5em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.9;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-2) 100%);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color-2) 0%, var(--accent-color-3) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    animation: fadeInRight 0.8s ease-out;
}

.profile-picture-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-picture-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
}

.id-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.id-card-img {
    width: 100%;
    max-width: 350px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: block;
    transition: var(--transition);
}

.id-card-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    animation: profileFloat 6s ease-in-out infinite;
    transition: var(--transition);
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-2) 50%, var(--accent-color-3) 100%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.profile-initials {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

.profile-ring-outer {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 2px solid var(--accent-color-3);
    opacity: 0.2;
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: 1.8;
    font-weight: 400;
}

/* About Section – blue and white colour mixing, rounded edges */
.about {
    position: relative;
    padding: 100px 0 120px;
    margin: 0 20px;
    background: linear-gradient(160deg, #ffffff 0%, #eff6ff 20%, #dbeafe 40%, #bfdbfe 60%, #e0f2fe 80%, #ffffff 100%);
    overflow: hidden;
    border-radius: 32px;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color-3) 25%, var(--accent-color) 50%, var(--accent-color-3) 75%, transparent 100%);
    opacity: 0.6;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.06) 100%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about .section-title {
    color: var(--primary-color);
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.15rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-weight: 400;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1200px;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: rotateY(-2deg) rotateX(1deg);
}

.stat-item:nth-child(1) {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.stat-item:nth-child(2) {
    transform: rotateY(0deg) rotateX(0deg);
    z-index: 1;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
}

.stat-item:nth-child(3) {
    transform: rotateY(2deg) rotateX(1deg);
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.stat-item:nth-child(2)::before {
    opacity: 0.9;
}

.stat-item:hover {
    transform: rotateY(0) rotateX(0) translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-item:nth-child(1):hover {
    transform: rotateY(0) rotateX(0) translateY(-8px);
}

.stat-item:nth-child(3):hover {
    transform: rotateY(0) rotateX(0) translateY(-8px);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0 100px;
    }
    .stat-item,
    .stat-item:nth-child(2),
    .stat-item:nth-child(3) {
        transform: none;
    }
    .stat-item:hover {
        transform: translateY(-6px);
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

/* Project video: thumbnail acts as play/pause button; visible button is hidden */
.project-image {
    cursor: pointer;
}
.project-video-toggle {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}
.project-video-toggle .icon-play,
.project-video-toggle .icon-pause {
    display: none;
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.project-video-toggle[data-state="paused"] .icon-play {
    display: block;
    margin-left: 3px;
}
.project-video-toggle[data-state="playing"] .icon-pause {
    display: block;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-1);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.project-card:nth-child(2) .project-placeholder {
    background: var(--bg-gradient-2);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.project-card:nth-child(3) .project-placeholder {
    background: var(--bg-gradient-3);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.project-card:nth-child(4) .project-placeholder {
    background: var(--bg-gradient-4);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 8px;
    transition: var(--transition);
}

.project-link:hover {
    background: white;
    color: var(--primary-color);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Thumbnails Section */
.thumbnails {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.thumbnail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
}

.thumbnail-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.thumbnail-card:hover::before {
    opacity: 1;
}

.thumbnail-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.thumbnail-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-1);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.thumbnail-card:nth-child(2) .thumbnail-placeholder {
    background: var(--bg-gradient-2);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.thumbnail-card:nth-child(3) .thumbnail-placeholder {
    background: var(--bg-gradient-3);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.thumbnail-card:nth-child(4) .thumbnail-placeholder {
    background: var(--bg-gradient-4);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.thumbnail-card:nth-child(5) .thumbnail-placeholder {
    background: var(--bg-gradient-1);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.thumbnail-card:nth-child(6) .thumbnail-placeholder {
    background: var(--bg-gradient-2);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.thumbnail-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 8px;
    transition: var(--transition);
}

.thumbnail-link:hover {
    background: white;
    color: var(--primary-color);
}

.thumbnail-info {
    padding: 1.5rem;
}

.thumbnail-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.thumbnail-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.thumbnail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    flex: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    position: absolute;
    top: -10px;
    left: -5px;
    font-family: Georgia, serif;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 400;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.avatar-1 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.avatar-2 {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.avatar-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.avatar-4 {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.avatar-5 {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.avatar-6 {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    letter-spacing: -0.2px;
    margin-top: 0.5rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.4;
}

/* Skills Section */
.skills {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Rate Card & Identity Card Sections */
.rate-card,
.identity-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
}

.card-upload-grid,
.card-display-grid {
    max-width: 700px;
    margin: 3rem auto 0;
}

.card-upload {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-upload-preview {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px dashed rgba(59, 130, 246, 0.4);
    background: var(--bg-light);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 1.5rem;
    text-align: center;
}

.card-upload-placeholder span {
    font-size: 1rem;
}

.card-upload-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.card-upload-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.card-upload-title {
    font-weight: 600;
    color: var(--primary-color);
}

.card-upload-input {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    background: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-light);
    transition: var(--transition);
}

.card-upload-input:hover,
.card-upload-input:focus-visible {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Identity Card Display Styles */
.card-display {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: var(--transition);
}

.card-display:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-display-preview {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-display-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

.card-display-placeholder {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 1.5rem;
    text-align: center;
}

.card-display-placeholder span {
    font-size: 1rem;
}

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color-2) 50%, var(--accent-color-3) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite, slideIn 1s ease-out;
    border-radius: 4px;
    transition: width 1s ease-out;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.contact-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.contact-link-muted {
    opacity: 0.6;
    cursor: default;
}

.contact-cta-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-cta-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.contact-cta-text {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-cta-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    box-shadow: var(--shadow-sm);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--shadow-md);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes profileFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Equal side margins on mobile: single gutter from body, safe-area aware */
    html {
        overflow-x: hidden;
    }
    body {
        padding-left: max(var(--mobile-gutter), env(safe-area-inset-left));
        padding-right: max(var(--mobile-gutter), env(safe-area-inset-right));
    }
    .container {
        padding-left: 0;
        padding-right: 0;
    }
    .nav-container {
        padding-left: max(var(--mobile-gutter), env(safe-area-inset-left));
        padding-right: max(var(--mobile-gutter), env(safe-area-inset-right));
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .profile-picture-container {
        flex-direction: column;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .thumbnails-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .profile-picture-wrapper {
        max-width: 280px;
    }

    .profile-initials {
        font-size: 4rem;
    }

    .id-card-img {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    section {
        padding: 60px 0;
    }

    /* Force side-by-side contact columns on small screens */
    .contact-content {
        gap: 2rem;
    }

    .contact-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .contact-column-title {
        font-size: 1rem;
    }

    .contact-link {
        font-size: 0.9rem;
    }
}
