/* ===== CSS Variables for Theming ===== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #212529;
    --bg-secondary: #1a1d21;
    --bg-card: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #34e89e;
    --accent-dark: #2bc47f;
    --accent-shadow: rgba(51, 232, 158, 0.75);
    --accent-shadow-light: rgba(51, 232, 158, 0.3);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.4);
    --education-bg: #055160;
    --border-color: rgba(255, 255, 255, 0.1);
    --navbar-bg: #212529;
    --link-color: #34e89e;
    --link-hover: #2bc47f;
}

[data-theme="light"] {
    /* Light Theme (White background, slightly higher contrast) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #0f1720;
    --text-secondary: #585e66;
    --accent: #34e89e;
    --accent-dark: #28b776;
    --accent-shadow: rgba(52, 232, 158, 0.15);
    --accent-shadow-light: rgba(52, 232, 158, 0.08);
    --card-shadow: rgba(16, 24, 40, 0.08);
    --card-shadow-hover: rgba(16, 24, 40, 0.10);
    --education-bg: #f0fdf9;
    --border-color: rgba(0, 0, 0, 0.12);
    --navbar-bg: #ffffff;
    --link-color: var(--accent);
    --link-hover: #279e67;
}

/* ===== Light theme overrides for Bootstrap utility classes ===== */
[data-theme="light"] .bg-dark {
    background-color: var(--bg-primary) !important;
}

[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .card.bg-dark {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .footer.bg-dark,
[data-theme="light"] footer.bg-dark {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Navbar specific overrides */
[data-theme="light"] .navbar {
    background-color: var(--navbar-bg) !important;
}
[data-theme="light"] .navbar .navbar-brand,
[data-theme="light"] .navbar .nav-link {
    color: var(--text-primary) !important;
}
[data-theme="light"] .navbar .nav-link:hover,
[data-theme="light"] .navbar .nav-link.active {
    color: var(--accent) !important;
}

/* Ensure shadows are lighter in light mode */
[data-theme="light"] .shadow {
    box-shadow: 0 6px 18px var(--card-shadow) !important;
}

/* ===== Base Styles ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
}

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

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

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

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

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

/* ===== Navbar Overrides ===== */
.navbar {
    background-color: var(--navbar-bg) !important;
}

.navbar-brand,
.nav-link {
    color: var(--text-primary) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

/* ===== Section Backgrounds ===== */
.bg-dark {
    background-color: var(--bg-primary) !important;
}

.bg-secondary-custom {
    background-color: var(--bg-secondary) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

/* ===== Hero Section Animations ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(52, 232, 158, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 116, 181, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(52, 232, 158, 0.05) 0%, transparent 30%);
    animation: bgPulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgPulse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Floating Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.geo-shape-1 {
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 8s ease-in-out infinite, morph 12s ease-in-out infinite;
}

.geo-shape-2 {
    bottom: 20%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
    animation: float2 10s ease-in-out infinite;
}

.geo-shape-3 {
    top: 40%;
    right: 5%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: float3 7s ease-in-out infinite, spin 20s linear infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(45deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Profile Image Container */
.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    perspective: 1000px;
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    animation: profileFloat 6s ease-in-out infinite;
}

.profile-image-wrapper:hover {
    transform: scale(1.05) rotateY(10deg);
}

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

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.profile-image.primary {
    opacity: 1;
    z-index: 2;
}

.profile-image.secondary {
    opacity: 0;
    z-index: 1;
}

.profile-image-wrapper:hover .profile-image.primary {
    opacity: 0;
    transform: scale(0.95);
}

.profile-image-wrapper:hover .profile-image.secondary {
    opacity: 1;
    transform: scale(1);
}

/* Unified profile headshot (applies to any headshot class) */
.profile-headshot,
.profile-thumb,
.profile-about {
    width: 300px; /* desktop default */
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* Glowing Border Animation */
.profile-image-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--accent), #4074b5, var(--accent), #4074b5);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    animation: glowBorder 4s ease infinite;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--accent), #4074b5, var(--accent), #4074b5);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -2;
    filter: blur(20px);
    opacity: 0.7;
    animation: glowBorder 4s ease infinite;
}

@keyframes glowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Name with Gradient */
.hero-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, #4074b5 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite, fadeSlideUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typewriter Effect - Fixed for mobile */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent);
    animation: typing 3s steps(40, end) forwards, blink 0.75s step-end infinite;
    animation-delay: 1s;
    width: 0;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Fade Slide Up Animation */
.fade-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Staggered List Animation */
.animated-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

.animated-list li:nth-child(1) { animation-delay: 1.2s; }
.animated-list li:nth-child(2) { animation-delay: 1.4s; }
.animated-list li:nth-child(3) { animation-delay: 1.6s; }
.animated-list li:nth-child(4) { animation-delay: 1.8s; }
.animated-list li:nth-child(5) { animation-delay: 2.0s; }
.animated-list li:nth-child(6) { animation-delay: 2.2s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Social Icons Bounce */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary) !important;
}

.social-icon:hover i {
    color: var(--bg-primary) !important;
}

/* Contact Info Animation */
.contact-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    width: 30px;
    color: var(--accent);
}

/* Hero Title Styles */
.hero-greeting {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Highlight badges */
.highlight-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 10px;
    margin: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.highlight-badge:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 232, 158, 0.2);
}

.highlight-badge i {
    color: var(--accent);
    margin-right: 10px;
}

/* Accent button used in hero */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ===== Button contrast fixes for light theme ===== */
[data-theme="light"] .btn-outline-light {
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .btn-outline-light:hover,
[data-theme="light"] .btn-outline-light:focus {
    background-color: rgba(0,0,0,0.04);
    color: var(--text-primary);
}

/* Ensure accent buttons remain legible on light background (subtle shadow) */
[data-theme="light"] .btn-accent {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 4px 12px var(--accent-shadow-light);
}
[data-theme="light"] .btn-accent:hover {
    background: var(--accent-dark);
}

/* When buttons sit on cards with light backgrounds, ensure outline visibility */
.card .btn-outline-light {
    border-color: rgba(255,255,255,0.1);
}
[data-theme="light"] .card .btn-outline-light {
    border-color: rgba(0,0,0,0.06);
}

/* ===== Dark theme: ensure CTA contrast and focus states (no !important) ===== */
[data-theme="dark"] .btn-outline-light {
    color: #ffffff;
    border-color: rgba(255,255,255,0.14);
    background: transparent;
}

[data-theme="dark"] .btn-outline-light:hover,
[data-theme="dark"] .btn-outline-light:focus {
    background-color: rgba(255,255,255,0.04);
    color: #ffffff;
}

[data-theme="dark"] .card .btn-outline-light {
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .btn-accent {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 4px 12px var(--accent-shadow-light);
}
[data-theme="dark"] .btn-accent:hover {
    background: var(--accent-dark);
}

/* Accessibility: provide a stronger focus ring for keyboard users */
.btn:focus {
    outline: 3px solid rgba(52,232,158,0.25);
    outline-offset: 2px;
}
[data-theme="light"] .btn:focus {
    outline: 3px solid rgba(0,184,148,0.18);
}
[data-theme="dark"] .btn:focus {
    outline: 3px solid rgba(52,232,158,0.25);
}

/* Original styles for compatibility */
h1 .intro_text {
    font-size: 32px;
}

h1 .name {
    font-size: 64px;
}

.hightlights li {
    font-size: 18px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hightlights li:hover {
    background: var(--bg-card);
    transform: translateX(10px);
}

/* ===== Card Styles ===== */
.profile_card,
.shadow_r {
    box-shadow: 10px 10px 5px 0px var(--accent-shadow);
    -webkit-box-shadow: 10px 10px 5px 0px var(--accent-shadow);
    -moz-box-shadow: 10px 10px 5px 0px var(--accent-shadow);
}

.shadow_l,
#skills {
    box-shadow: 10px 10px 5px 0px var(--accent-shadow) inset;
    -webkit-box-shadow: 10px 10px 5px 0px var(--accent-shadow) inset;
    -moz-box-shadow: 10px 10px 5px 0px var(--accent-shadow) inset;
}

.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

.card-body {
    color: var(--text-primary);
}

/* ===== Text Shadow Effect ===== */
.text_shadow {
    padding: 0 5px;
    border-radius: 5px;
    display: inline-block;
    color: #FFFFFF;
    background: rgba(49, 63, 141, 0.7);
    text-shadow: 2px 2px 0 #4074b5, 2px -2px 0 #4074b5, -2px 2px 0 #4074b5, -2px -2px 0 #4074b5, 2px 0px 0 #4074b5, 0px 2px 0 #4074b5, -2px 0px 0 #4074b5, 0px -2px 0 #4074b5;
}

[data-theme="light"] .text_shadow {
    background: rgba(0, 184, 148, 0.9);
    text-shadow: 2px 2px 0 #00896e, 2px -2px 0 #00896e, -2px 2px 0 #00896e, -2px -2px 0 #00896e, 2px 0px 0 #00896e, 0px 2px 0 #00896e, -2px 0px 0 #00896e, 0px -2px 0 #00896e;
}

/* Icon sizes */
.fab {
    font-size: 24px;
}

.fas {
    font-size: 18px;
    padding-right: 10px;
}

.f18 {
    font-size: 18px;
    line-height: 1.7;
}

/* ===== Skills Section ===== */
.skills-section {
    padding: 50px 15px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skill-category .frontend > li {
    display: inline;
    width: auto;
}

.skill-category {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    width: calc(33.333% - 20px);
    margin: 10px 0;
    box-shadow: 0px 4px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 25px var(--card-shadow-hover);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.skill-category p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.skill-category ul li {
    color: var(--text-primary);
}

/* ===== Skills UI Improvements ===== */
.skills-grid {
    margin-top: 10px;
}

.skill-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px var(--card-shadow-hover);
}

.skill-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-badge {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.skill-packages {
    margin-top: 8px;
    display: block;
}

.package {
    display: inline-block;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 4px 8px;
    border-radius: 8px;
    margin-right: 6px;
    font-size: 0.8rem;
}

[data-theme="light"] .package {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
    color: var(--text-secondary);
}

[data-theme="light"] .skill-badge {
    border-color: rgba(0,0,0,0.08);
    color: var(--text-secondary);
}

.skill-list {
    margin-top: 10px;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.skill-name {
    flex: 0 0 120px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: left;
}

.skill-line {
    flex: 1 1 auto;
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(.2,.9,.2,1);
}

/* ===== Education Section ===== */
.education-card {
    background-color: var(--education-bg) !important;
    color: var(--text-primary);
}

[data-theme="light"] .education-card {
    border: 2px solid var(--accent);
}

/* ===== Border Styles ===== */
.border-bottom {
    border-color: var(--border-color) !important;
}

/* ===== Case Studies Section ===== */
.case-studies-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.case-study-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--accent-shadow-light);
}

.case-study-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
}

.case-study-content {
    padding: 25px;
}

.case-study-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.case-study-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-badge {
    background-color: var(--accent);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

[data-theme="light"] .tech-badge {
    background-color: var(--accent);
    color: #ffffff;
}

.case-study-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.case-study-link:hover {
    gap: 10px;
    color: var(--accent-dark);
}

/* ===== FAQ Section ===== */
.faq-section {
    background: linear-gradient(135deg, rgba(52, 232, 158, 0.06), rgba(64, 116, 181, 0.05));
}

.faq-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 24px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px var(--accent-shadow-light);
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===== Go To Top Button ===== */
.go-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Profile hype text and interpersonal badges */
.profile-hype {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.interpersonal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-accent {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px var(--accent-shadow-light);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.go-top.show {
    opacity: 1;
    transform: translateY(0);
}

.go-top:focus {
    outline: 2px solid rgba(255,255,255,0.15);
}

/* ===== Sidebar Sticky Fix ===== */
.sidebar-sticky {
    position: sticky;
    top: 30px;
    height: fit-content;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .skills-section {
        padding: 40px 15px;
    }

    .skill-category {
        width: calc(50% - 15px);
    }

    .skill-name {
        flex: 0 0 100px;
    }

    .profile-headshot,
    .profile-thumb,
    .profile-about {
        width: 220px;
        height: 220px;
    }

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

/* Mobile landscape / Small tablet (768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-greeting {
        font-size: 1.2rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Typewriter fix - wrap on mobile */
    .typewriter {
        white-space: normal;
        width: auto;
        border-right: none;
        animation: fadeSlideUp 0.8s ease forwards;
        animation-delay: 1s;
        opacity: 0;
    }

    /* Profile images */
    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    .profile-headshot,
    .profile-thumb,
    .profile-about {
        width: 180px;
        height: 180px;
    }

    /* Hide geometric shapes on mobile */
    .geo-shape {
        display: none;
    }

    /* Profile card adjustments */
    .profile_card {
        margin-top: 30px;
    }

    .profile_card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .profile_card .me-3 {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    /* Skills */
    .skill-category {
        width: 100%;
    }

    .skills-section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .skill-name {
        flex: 0 0 90px;
        font-size: 0.8rem;
    }

    /* Highlights list */
    .hightlights li {
        font-size: 16px;
        padding: 8px;
    }

    h1 .name {
        font-size: 42px;
    }

    h1 .intro_text {
        font-size: 24px;
    }

    /* Case studies */
    .case-study-card {
        margin-bottom: 30px;
    }

    .case-study-image {
        font-size: 3rem;
        height: 150px;
    }

    .case-study-content {
        padding: 20px;
    }

    .case-study-title {
        font-size: 1.2rem;
    }

    /* Sidebar - remove sticky on mobile */
    .sidebar-sticky {
        position: static;
    }

    /* Buttons */
    .btn-accent,
    .btn-outline-light {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .mt-4.d-flex.gap-2 {
        flex-wrap: wrap;
    }

    /* Highlight badges */
    .highlight-badge {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile portrait (480px) */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-greeting {
        font-size: 1rem;
    }

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

    .profile-thumb,
    .profile-about {
        width: 140px;
        height: 140px;
    }

    .profile-image-container {
        width: 160px;
        height: 160px;
    }

    .skills-section {
        padding: 20px 10px;
    }

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

    .skill-card {
        padding: 15px !important;
    }

    .skill-card-title {
        font-size: 0.95rem;
    }

    .skill-badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .skill-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .skill-name {
        flex: none;
        width: 100%;
    }

    .skill-line {
        width: 100%;
    }

    h1 .name {
        font-size: 32px;
    }

    h1 .intro_text {
        font-size: 20px;
    }

    .hightlights li {
        font-size: 14px;
        padding: 6px;
        margin-bottom: 8px;
    }

    /* Stack buttons vertically */
    .mt-4.d-flex.gap-2 {
        flex-direction: column;
        gap: 10px !important;
    }

    .mt-4.d-flex.gap-2 .btn {
        width: 100%;
        text-align: center;
    }

    /* Case studies */
    .case-study-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Education cards */
    .education-card {
        padding: 20px !important;
    }

    .education-card h3 {
        font-size: 1.1rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .typewriter {
        width: auto;
        border-right: none;
    }

    .hero-name,
    .hero-greeting,
    .fade-slide-up,
    .animated-list li {
        opacity: 1;
        transform: none;
    }

    .geo-shape {
        display: none;
    }
}
