/* CSS Variables for Theme System */
:root {
    /* Light Theme Colors - More comfortable for eyes */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f4;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: #007bff;
    --accent-hover: #0056b3;
    --card-bg: #ffffff;
    --nav-bg: rgba(248, 249, 250, 0.95);
    --nav-shadow: rgba(0, 0, 0, 0.04);
    --icon-bg: #f8f9fa;
    --hover-bg: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0e0f12;
    --bg-secondary: #14171a;
    --bg-tertiary: #1e2329;
    --text-primary: #f5f7fa;
    --text-secondary: #c7ced6;
    --text-muted: #8a93a1;
    --border: #2b2f36;
    --shadow: rgba(0, 0, 0, 0.4);
    /* Modern vibrant gradients using the accent color */
    --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6ec7 0%, #7c4dff 100%);
    /* Accent-driven palette */
    --accent: #00e5ff;
    --accent-hover: #00b8d4;
    --card-bg: #14171a;
    --nav-bg: rgba(20, 23, 26, 0.95);
    --nav-shadow: rgba(0, 0, 0, 0.45);
    --icon-bg: #1e2329;
    --hover-bg: #20252b;
    --success-color: #22d3a6;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

/* Apply theme variables to existing elements with higher specificity */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .nav-logo {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.navbar.scrolled .nav-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.navbar.scrolled .nav-left .admin-btn {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
}

.navbar.scrolled .theme-switch,
.navbar.scrolled .lang-switch {
    padding: 2px 4px;
    min-width: 35px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    height: 70px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
    min-width: 180px;
}

.nav-logo {
    font-size: 1rem !important;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    letter-spacing: 0.3px !important;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
    padding: 0.2rem 0;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
    margin-right: 0 !important;
    min-width: 100px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    margin-right: 0 !important;
    margin-left: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.7rem 1.2rem !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    height: 36px;
    margin: 0 0.3rem;
}

.nav-menu a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: rgba(0, 123, 255, 0.15);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 0 !important;
    margin-right: 0;
    min-width: 90px;
}

.admin-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 16px;
    padding: 3px 6px;
    color: var(--card-bg);
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    flex-shrink: 0;
    min-width: 40px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.admin-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: var(--card-bg);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Compact Switch Styles */
.theme-switch,
.lang-switch {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 14px;
    padding: 2px 5px !important;
    color: var(--card-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 3px !important;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 35px !important;
    justify-content: center;
    height: 24px;
}

.theme-switch::before,
.lang-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.theme-switch:hover::before,
.lang-switch:hover::before {
    left: 100%;
}

.theme-switch:hover,
.lang-switch:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.theme-switch i,
.lang-switch i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
}

.theme-switch:hover i,
.lang-switch:hover i {
    transform: rotate(15deg);
}

.theme-switch span,
.lang-switch span {
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.hamburger:hover {
    background: rgba(0, 123, 255, 0.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

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

/* Navigation scroll effect */
.navbar.scrolled .nav-logo {
    font-size: 2.8rem;
    letter-spacing: 1.5px;
}

.navbar.scrolled .nav-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.navbar.scrolled .nav-left .admin-btn {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
}

.navbar.scrolled .theme-btn,
.navbar.scrolled .lang-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Enhanced navigation animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.navbar {
    animation: fadeInDown 0.6s ease-out;
}

.nav-menu a {
    animation: fadeInDown 0.6s ease-out;
    animation-fill-mode: both;
}

.nav-menu a:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-menu a:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-menu a:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-menu a:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-menu a:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-menu a:nth-child(6) {
    animation-delay: 0.6s;
}

.nav-menu a:nth-child(7) {
    animation-delay: 0.7s;
}

.nav-menu a:nth-child(8) {
    animation-delay: 0.8s;
}

/* Navigation focus states for accessibility */
.nav-menu a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
}

/* Enhanced button focus states */
.theme-btn:focus,
.lang-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    transform: scale(1.05);
}

/* Ensure all icons are visible */
.theme-btn i,
.lang-btn i,
.admin-btn i {
    display: inline-block !important;
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
}

/* Icon container styling */
.theme-btn,
.lang-btn,
.admin-btn {
    position: relative;
    overflow: visible;
}

/* Ensure proper icon spacing */
.theme-btn i,
.lang-btn i {
    margin-right: 4px;
}

.admin-btn i {
    margin-right: 6px;
}

/* Navigation loading state */
.navbar.loading {
    opacity: 0.8;
    pointer-events: none;
}

/* Navigation success state */
.navbar.success {
    border-bottom-color: var(--success-color);
}

/* Navigation error state */
.navbar.error {
    border-bottom-color: var(--error-color);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 15px;
        gap: 1rem;
    }

    .nav-left {
        gap: 0.8rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
        gap: 0.8rem;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
        animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu a {
        margin: 0.3rem 1.5rem;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        background: transparent;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
        transform: translateX(10px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-controls {
        gap: 0.8rem;
    }

    .theme-switch,
    .lang-switch {
        padding: 8px 14px;
        min-width: 70px;
        gap: 8px;
    }

    .theme-switch i,
    .lang-switch i {
        font-size: 0.95rem;
    }

    .theme-switch span,
    .lang-switch span {
        font-size: 0.8rem;
    }

    .admin-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    /* Mobile navigation enhancements */
    .nav-menu li {
        margin: 0.3rem 0;
        opacity: 0;
        animation: slideInLeft 0.4s ease forwards;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-menu.active li:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-menu.active li:nth-child(8) {
        animation-delay: 0.8s;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

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

    .language-switcher {
        margin-left: 0;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

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

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

.card,
.education-card,
.experience-card,
.service-card,
.project-card,
.achievement-card,
.testimonial-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 5px 20px var(--shadow) !important;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary) !important;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: var(--card-bg) !important;
}

.btn-secondary {
    background: var(--gradient-secondary) !important;
    color: var(--card-bg) !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow) !important;
}

/* Theme Switcher Styles */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
}

.theme-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.theme-btn i {
    font-size: 1rem;
    color: #000;
}

/* Responsive Theme Switcher */
@media (max-width: 768px) {
    .nav-controls {
        gap: 10px;
    }

    .theme-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .theme-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-controls {
        gap: 8px;
    }

    .theme-btn {
        padding: 5px 10px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, var(--accent) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--success-color) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--warning-color) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    text-shadow: 0 0 20px var(--shadow);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--shadow);
}

[data-theme="light"] .section-title::after {
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.15) !important;
}

/* Navigation - FORCE REFRESH */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--shadow);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--accent);
    background: var(--hover-bg);
    box-shadow: 0 0 15px var(--shadow);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    color: var(--card-bg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.lang-btn i {
    font-size: 1rem;
    color: #000;
}

#currentLang {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu a::after {
    left: 0;
    right: auto;
}

[dir="rtl"] .timeline::before {
    right: 50%;
    left: auto;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    left: auto;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
}

[dir="rtl"] .floating-element.element-1 {
    left: 10%;
    right: auto;
}

[dir="rtl"] .floating-element.element-2 {
    right: 20%;
    left: auto;
}

[dir="rtl"] .floating-element.element-3 {
    left: 80%;
    right: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 98%, var(--accent) 100%),
        linear-gradient(0deg, transparent 98%, var(--accent) 100%);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--accent);
}

.hero-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
    color: var(--text-secondary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--card-bg);
    box-shadow: 0 0 20px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--accent);
    color: var(--card-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.5s both;
}

/* Circular avatar that keeps the photo's proportions without distortion */
.profile-avatar {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    /* let image touch the circle edge */
    background: transparent;
    /* no inner background */
    border: none;
    /* remove ring so photo fills avatar */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-avatar .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fully fill the circle */
    object-position: center 12%;
    display: block;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #00ffff, #0080ff, #8000ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(0, 255, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: #00ffff;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.stat h3 {
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat p {
    color: #b0b0b0;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow:
        0 20px 40px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.about-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* Education Section */
.education {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 0, 0.1) 100%);
    background-size: 100px 100px;
    opacity: 0.3;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.education-card {
    background: rgba(0, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.education-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.education-card h3 {
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.education-card p {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.skills-content {
    display: grid;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.skill-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: #00ff00;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #00ff00);
    border-radius: 5px;
    transition: width 2s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.6);
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00ffff, #00ff00, #ff00ff);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    text-align: left;
}

.timeline-content {
    background: rgba(0, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #00ffff;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-date {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.timeline-content h3 {
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #00ff00;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #b0b0b0;
}

/* Timeline header with image */
.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-info {
    flex: 1;
}

.timeline-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-image:hover {
    border-color: rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.experience-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.timeline-image:hover .experience-img {
    transform: scale(1.1);
}

/* Responsive timeline header */
@media (max-width: 768px) {
    .timeline-header {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-image {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }
}

/* Experience list styling */
.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-list li::before {
    content: '•';
    color: #00ffff;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(0, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.service-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

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

.project-card {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #00ffff, #0080ff, #8000ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ffff, #0080ff, #8000ff);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.project-content p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.demo-options {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    text-decoration: none;
    color: #00ff00;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.project-link:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

/* Project demo link styling */
.project-demo {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.project-demo:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
    color: #ff6666;
}

/* Demo Modal */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.demo-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.demo-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 70vh;
    border-radius: 10px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.5) transparent;
}

.demo-container::-webkit-scrollbar {
    width: 8px;
}

.demo-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.demo-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.demo-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
}

.demo-container video {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.demo-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    display: block;
}

.close-demo {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-demo:hover {
    color: #00ffff;
}

.demo-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Achievements Section */
.achievements {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

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

.achievement-card {
    background: rgba(0, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.achievement-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.achievement-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.achievement-card p {
    color: #b0b0b0;
}

.achievement-card h4 {
    color: #00ffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.certificate-date {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    background: rgba(0, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.testimonial-translation {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Delete testimonial button */
.delete-testimonial-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    opacity: 0.7;
}

.delete-testimonial-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    opacity: 1;
}

.delete-testimonial-btn:active {
    transform: scale(0.95);
}

.delete-testimonial-btn i {
    font-size: 14px;
}

/* No testimonials state */
.no-testimonials {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-testimonials i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--accent);
}

.no-testimonials h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.no-testimonials p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.testimonial-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.8;
    font-style: normal;
}

.testimonial-device {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
    opacity: 0.9;
    font-style: normal;
    background: rgba(0, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.testimonials-cta .btn {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.testimonials-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, #00e6e6, #0066cc);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.author-info h4 {
    color: #00ffff;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #00ff00;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.contact-details h3 {
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #b0b0b0;
    margin: 0;
}

.contact-form {
    background: rgba(0, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #808080;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Thank You Section */
.thank-you {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(0, 255, 0, 0.05) 50%, rgba(255, 0, 255, 0.05) 100%);
    overflow: hidden;
}

.thank-you::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 255, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.thank-you-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.thank-you-icon {
    margin-bottom: 2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

.thank-you-icon i {
    font-size: 4rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.thank-you-message {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.thank-you-main {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.thank-you-sub {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.7;
    font-weight: 300;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.thank-you-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.thank-you-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.thank-you-footer {
    margin-top: 3rem;
}

.thank-you-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thank-you-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-logo p {
    color: #b0b0b0;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.footer-social a:hover {
    background: linear-gradient(45deg, #00ff00, #00ffff);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: #b0b0b0;
}

/* 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 fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

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

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
        animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu a {
        margin: 0.5rem 2rem;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        background: transparent;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
        transform: translateX(10px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    /* Mobile navigation enhancements */
    .nav-menu li {
        margin: 0.5rem 0;
        opacity: 0;
        animation: slideInLeft 0.4s ease forwards;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-menu.active li:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-menu.active li:nth-child(8) {
        animation-delay: 0.8s;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

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

    .language-switcher {
        margin-left: 0;
    }

    .theme-btn,
    .lang-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .nav-container {
        padding: 0 15px;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -45px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .thank-you {
        padding: 4rem 0;
    }

    .thank-you-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .thank-you-stats {
        gap: 2rem;
    }

    .thank-you-icon i {
        font-size: 3rem;
    }

    .thank-you-main {
        font-size: 1.1rem;
    }

    .thank-you-sub {
        font-size: 1rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text h3 {
        font-size: 1.2rem;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }

    .about-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .education-grid,
    .services-grid,
    .projects-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skill-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .skills-tags {
        justify-content: center;
    }

    .thank-you {
        padding: 3rem 0;
    }

    .thank-you-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .floating-element {
        display: none;
    }

    .language-switcher {
        margin-left: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .lang-btn i {
        font-size: 0.9rem;
    }
}

/* Testimonials Submission Section */
.testimonials-submission {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(0, 255, 0, 0.03) 50%, rgba(255, 0, 255, 0.03) 100%);
}

.testimonials-submission .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.feedback-intro {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feedback-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.testimonials-submission form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonials-submission .form-group {
    margin-bottom: 1.5rem;
}

.testimonials-submission input,
.testimonials-submission textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.testimonials-submission input:focus,
.testimonials-submission textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.testimonials-submission input::placeholder,
.testimonials-submission textarea::placeholder {
    color: #b0b0b0;
}

.testimonials-submission .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.testimonials-submission .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
}

/* Responsive styles for testimonials submission */
@media (max-width: 768px) {
    .testimonials-submission {
        padding: 3rem 0;
    }

    .testimonials-submission form {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-submission form {
        padding: 1.5rem;
    }

    .testimonials-submission .btn {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* Notification Styles */
.notification {
    font-family: 'Poppins', sans-serif;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content span {
    line-height: 1.4;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Additional Theme-Specific Styles */
input,
textarea,
select {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.contact-item,
.about-stats .stat {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
}

.about-placeholder,
.education-icon,
.experience-icon,
.service-icon,
.achievement-icon {
    background: var(--gradient-primary);
}

.testimonial-text p {
    color: var(--text-secondary);
}

.author-info span {
    color: var(--text-muted);
}

.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

.footer-content h3,
.footer-content p {
    color: var(--text-primary);
}

.footer-social a {
    color: var(--text-secondary);
}

.footer-social a:hover {
    color: var(--accent);
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .navbar {
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .section {
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .education-card:hover,
[data-theme="dark"] .experience-card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .achievement-card:hover,
[data-theme="dark"] .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="dark"] .hero::before {
    opacity: 0.1;
}

[data-theme="dark"] body::before {
    opacity: 0.1;
}

/* Light theme specific adjustments */
[data-theme="light"] .navbar {
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .section {
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .hero::before {
    opacity: 0.08;
}

[data-theme="light"] body::before {
    opacity: 0.04;
}

/* Additional theme-specific styles for better coverage */
[data-theme="light"] .service-icon,
[data-theme="light"] .achievement-icon,
[data-theme="light"] .education-icon {
    background: var(--icon-bg);
}

[data-theme="light"] .skill-tag:hover {
    background: var(--hover-bg);
    color: var(--accent);
    transform: translateY(-1px);
}

[data-theme="light"] .timeline-content:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .education-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .achievement-card:hover {
    background: var(--hover-bg);
    border-color: var(--accent);
}

[data-theme="light"] .contact-item:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .stat:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .stat-item:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .testimonial-card:hover {
    background: var(--hover-bg);
}

/* Dark theme specific hover effects */
[data-theme="dark"] .service-icon,
[data-theme="dark"] .achievement-icon,
[data-theme="dark"] .education-icon {
    background: var(--icon-bg);
}

[data-theme="dark"] .skill-tag:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .timeline-content:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .education-card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .achievement-card:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .contact-item:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .stat:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .stat-item:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .testimonial-card:hover {
    background: var(--hover-bg);
}

/* Theme-specific notification colors */
[data-theme="light"] .notification.success {
    background: var(--success-color);
}

[data-theme="light"] .notification.warning {
    background: var(--warning-color);
}

[data-theme="light"] .notification.error {
    background: var(--error-color);
}

[data-theme="dark"] .notification.success {
    background: var(--success-color);
}

[data-theme="dark"] .notification.warning {
    background: var(--warning-color);
}

[data-theme="dark"] .notification.error {
    background: var(--error-color);
}

/* Additional comprehensive theme selectors for complete coverage */
[data-theme="light"] body,
[data-theme="dark"] body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .navbar,
[data-theme="dark"] .navbar {
    background: var(--nav-bg) !important;
    box-shadow: 0 4px 20px var(--nav-shadow) !important;
    border-bottom: 1px solid var(--border) !important;
}

[data-theme="light"] .navbar.scrolled,
[data-theme="dark"] .navbar.scrolled {
    background: rgba(248, 249, 250, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 8px 32px var(--nav-shadow) !important;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(33, 37, 41, 0.98) !important;
}

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

[data-theme="light"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(0, 123, 255, 0.04)) !important;
    color: var(--accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15) !important;
}

[data-theme="light"] .nav-menu a.active,
[data-theme="dark"] .nav-menu a.active {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(0, 123, 255, 0.08)) !important;
    color: var(--accent) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2) !important;
}

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

[data-theme="light"] .card,
[data-theme="light"] .education-card,
[data-theme="light"] .experience-card,
[data-theme="light"] .service-card,
[data-theme="light"] .project-card,
[data-theme="light"] .achievement-card,
[data-theme="light"] .testimonial-card,
[data-theme="dark"] .card,
[data-theme="dark"] .education-card,
[data-theme="dark"] .experience-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .testimonial-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 5px 20px var(--shadow) !important;
}

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

[data-theme="light"] p,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="dark"] p,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

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

[data-theme="light"] .btn-secondary,
[data-theme="dark"] .btn-secondary {
    background: var(--gradient-secondary) !important;
    color: var(--card-bg) !important;
}

[data-theme="light"] .btn:hover,
[data-theme="dark"] .btn:hover {
    box-shadow: 0 6px 20px var(--shadow) !important;
}

/* Force theme application with !important */
[data-theme] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Comprehensive section-specific theme styles */
[data-theme="light"] .hero,
[data-theme="dark"] .hero {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Theme-specific form and input styles */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Theme-specific icon and button styles */
[data-theme="light"] .service-icon,
[data-theme="light"] .achievement-icon,
[data-theme="light"] .education-icon,
[data-theme="light"] .contact-icon,
[data-theme="dark"] .service-icon,
[data-theme="dark"] .achievement-icon,
[data-theme="dark"] .education-icon,
[data-theme="dark"] .contact-icon {
    background: var(--icon-bg) !important;
    color: var(--accent) !important;
}

/* Theme-specific hover effects */
[data-theme="light"] .education-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .achievement-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .contact-item:hover,
[data-theme="dark"] .education-card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .achievement-card:hover,
[data-theme="dark"] .testimonial-card:hover,
[data-theme="dark"] .contact-item:hover {
    background: var(--hover-bg) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px var(--shadow) !important;
}

/* Theme-specific skill bar styles */
[data-theme="light"] .skill-bar,
[data-theme="dark"] .skill-bar {
    background: var(--bg-tertiary) !important;
}

[data-theme="light"] .skill-bar {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .skill-progress,
[data-theme="dark"] .skill-progress {
    background: var(--gradient-primary) !important;
}

/* Theme-specific timeline styles */
[data-theme="light"] .timeline::before,
[data-theme="dark"] .timeline::before {
    background: var(--border) !important;
}

[data-theme="light"] .timeline::before {
    background: #e9ecef !important;
    opacity: 0.6 !important;
}

[data-theme="light"] .timeline-content,
[data-theme="dark"] .timeline-content {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
}

/* Theme-specific navigation styles */
[data-theme="light"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a:hover {
    background: var(--hover-bg) !important;
    color: var(--accent) !important;
}

[data-theme="light"] .nav-menu a:hover {
    background: #f1f3f4 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Theme-specific delete button styles */
[data-theme="light"] .delete-testimonial-btn {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

[data-theme="light"] .delete-testimonial-btn:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #c82333 !important;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3) !important;
}

[data-theme="dark"] .delete-testimonial-btn {
    background: rgba(255, 68, 68, 0.1) !important;
    color: #ff4444 !important;
    border: 1px solid rgba(255, 68, 68, 0.3) !important;
}

[data-theme="dark"] .delete-testimonial-btn:hover {
    background: rgba(255, 68, 68, 0.2) !important;
    color: #ff6666 !important;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3) !important;
}

/* Theme-specific no-testimonials styles */
[data-theme="light"] .no-testimonials,
[data-theme="dark"] .no-testimonials {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .no-testimonials i,
[data-theme="dark"] .no-testimonials i {
    color: var(--accent) !important;
}

[data-theme="light"] .no-testimonials h3,
[data-theme="dark"] .no-testimonials h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .no-testimonials p,
[data-theme="dark"] .no-testimonials p {
    color: var(--text-muted) !important;
}

/* Theme-specific scroll indicator */
[data-theme="light"] .scroll-indicator,
[data-theme="dark"] .scroll-indicator {
    color: var(--accent) !important;
}

[data-theme="light"] .scroll-indicator {
    color: #007bff !important;
    opacity: 0.7 !important;
}

/* Theme-specific floating elements */
[data-theme="light"] .floating-element,
[data-theme="dark"] .floating-element {
    background: var(--accent) !important;
    opacity: 0.1 !important;
}

[data-theme="light"] .floating-element {
    opacity: 0.04 !important;
}

/* Admin button */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--icon-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--nav-shadow);
    min-width: 100px;
    justify-content: center;
}

.admin-btn:hover {
    transform: translateY(-2px);
    background: var(--hover-bg);
}

.admin-btn i {
    font-size: 16px;
    display: inline-block;
}

.admin-btn.active {
    background: linear-gradient(135deg, #4dabf7, #228be6);
    color: #fff;
    border-color: transparent;
}

/* Hide delete buttons by default (visitors) */
.delete-testimonial-btn {
    display: none;
}

/* Show when admin mode enabled */
.admin-enabled .delete-testimonial-btn {
    display: flex;
}

/* Modern Confirmation Modal Styles */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

/* When modal is shown, make it visible */
.confirmation-modal[style*="display: flex"] {
    opacity: 1 !important;
}

.confirmation-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: modalSlideIn 0.4s ease forwards;
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.7) translateY(30px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.modal-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.modal-btn-cancel:hover {
    background: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-btn-delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.modal-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #d84315);
}

.modal-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Theme-specific modal styles */
[data-theme="light"] .modal-content {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .modal-btn-cancel {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .modal-btn-cancel:hover {
    background: #e9ecef !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .modal-content {
    background: #1a1a1a !important;
    border: 1px solid #404040 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .modal-btn-cancel {
    background: #2a2a2a !important;
    color: #b0b0b0 !important;
    border: 1px solid #404040 !important;
}

[data-theme="dark"] .modal-btn-cancel:hover {
    background: #404040 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        min-width: auto;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    .modal-icon i {
        font-size: 2rem;
    }

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

/* Compact navigation controls to better match nav text */
.nav-controls {
    gap: 1.5rem;
    /* increase space between translate and theme switches */
}

.nav-controls .lang-btn,
.nav-controls .theme-btn,
.nav-controls .admin-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    gap: 6px;
    min-width: auto;
    line-height: 1;
    box-shadow: 0 2px 8px var(--shadow);
}

.nav-controls .lang-btn i,
.nav-controls .theme-btn i,
.nav-controls .admin-btn i {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* When navbar is scrolled, make them even more compact */
.navbar.scrolled .nav-controls .lang-btn,
.navbar.scrolled .nav-controls .theme-btn,
.navbar.scrolled .nav-controls .admin-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
}

/* Ensure admin button doesn't force width */
.nav-controls .admin-btn {
    min-width: auto;
}

/* Ensure menu leaves room for controls on the right */
.nav-menu {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    gap: 1.5rem;
}

.nav-menu a {
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

.nav-controls {
    margin-left: 0;
    flex-shrink: 0;
    gap: 1.5rem;
    padding-left: 1rem;
}

/* Prevent overflow on smaller desktops */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Keep logo compact at far left to free space */
.nav-left .nav-logo {
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    margin-right: 1.5rem;
    padding: 0.5rem 0;
    text-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--accent);
}

.navbar.scrolled .nav-left .nav-logo {
    font-size: 2.2rem;
}

/* Show icons only to ensure everything fits at typical laptop widths */
@media (max-width: 1400px) {

    #currentLang,
    #currentTheme,
    #adminState {
        display: none;
    }

    .nav-left .admin-btn,
    .nav-controls .lang-btn,
    .nav-controls .theme-btn {
        padding: 6px 8px;
        min-width: auto;
    }

    .nav-controls #currentLang,
    .nav-controls #currentTheme {
        display: none;
    }
}

/* Tablet Navigation */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 20px;
        gap: 1.5rem;
    }

    .nav-logo {
        font-size: 1.4rem;
        margin-right: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .nav-controls {
        gap: 1rem;
    }

    .theme-switch,
    .lang-switch {
        padding: 9px 15px;
        min-width: 78px;
        gap: 9px;
    }

    .theme-switch i,
    .lang-switch i {
        font-size: 1rem;
    }

    .theme-switch span,
    .lang-switch span {
        font-size: 0.85rem;
    }

    .admin-btn {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
    }
}

/* Small desktop screens */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-container {
        padding: 0 22px;
        gap: 1.6rem;
    }

    .nav-menu {
        gap: 1.1rem;
    }

    .nav-menu a {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .nav-controls {
        gap: 1.2rem;
    }
}

/* Dynamic testimonial card */
.testimonial-card {
    display: none;
    background: rgba(0, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.testimonial-card.show {
    display: block;
}

/* Form actions styling */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-actions .btn {
    min-width: 120px;
}

/* Language selector styling */
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Translation button states */
#translateBtn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    transition: all 0.3s ease;
}

#translateBtn:hover {
    background: linear-gradient(135deg, #ff5252, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

#translateBtn.translating {
    background: linear-gradient(135deg, #4dabf7, #228be6);
    pointer-events: none;
}

#translateBtn.translating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Testimonial translation indicator */
.testimonial-translation {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Responsive form actions */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .form-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Testimonial actions container */
.testimonial-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Translation button styling - REMOVED */

/* Delete button positioning */
.delete-testimonial-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.delete-testimonial-btn:hover {
    background: linear-gradient(135deg, #ff5252, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Responsive testimonial actions */
@media (max-width: 768px) {
    .testimonial-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .delete-testimonial-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}