/* Modern Portfolio Theme - Cyber/Tech Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;700&display=swap');

:root {
    /* Core Palette - Deep Space & Neon */
    --bg-body: #0a0e17;
    --bg-surface: #111625;
    --bg-surface-transparent: rgba(17, 22, 37, 0.7);

    --primary: #00f2ff;
    /* Neon Cyan */
    --primary-dim: rgba(0, 242, 255, 0.1);
    --secondary: #7000ff;
    /* Electric Purple */
    --secondary-dim: rgba(112, 0, 255, 0.1);
    --accent: #ff0055;
    /* Neon Pink */

    --text-main: #ffffff;
    --text-muted: #a0a8c0;
    --text-dim: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);

    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: radial-gradient(circle at center, var(--secondary-dim) 0%, transparent 70%);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 242, 255, 0.15);

    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Premium Light Theme Palette */
    --bg-body: #f0f2f5;
    --bg-surface: #ffffff;
    --bg-surface-transparent: rgba(255, 255, 255, 0.9);

    --primary: #006fee;
    /* Vibrant Tech Blue */
    --primary-dim: rgba(0, 111, 238, 0.1);
    --secondary: #7828c8;
    /* Deep Purple */
    --secondary-dim: rgba(120, 40, 200, 0.1);
    --accent: #f31260;
    /* Bright Pink */

    --text-main: #11181c;
    /* Almost Black */
    --text-muted: #374151;
    /* Dark Gray */
    --text-dim: #6b7280;
    /* Medium Gray */

    --border-color: rgba(0, 0, 0, 0.12);
    --glass-border: rgba(0, 0, 0, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(0, 111, 238, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, var(--secondary-dim) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, var(--primary-dim) 0%, transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center !important;
    margin-bottom: 3rem;
    position: relative;
    display: block !important;
    width: 100%;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes float {

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

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

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.3);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Typewriter Animation */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary)
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Header & Nav */
.site-header {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface-transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: var(--transition-smooth);
}

.logo-link {
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.3));
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    display: flex;
    gap: 5px;
}

.logo-highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light Theme Logo Text */
[data-theme="light"] .logo-text {
    color: var(--text-main);
}

.header-center {
    display: flex;
    align-items: center;
}

/* Desktop: Hide mobile-specific elements */
.nav-menu-header,
.mobile-menu-footer,
.close-menu {
    display: none;
}

/* Desktop: Reset nav links container */
.nav-links-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

/* Desktop: Hide icons in nav links if they are only for mobile */
.nav-link i {
    display: none;
}


[data-theme="light"] .nav-link {
    color: var(--text-muted);
    font-weight: 600;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.header-right {
    display: flex;
    gap: 15px;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon:hover {
    background: var(--bg-surface-transparent);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    gap: 50px;
}

.hero-text {
    flex: 1;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;

    /* Typewriter styles */
    overflow: hidden;
    /* Ensures the content is not revealed until the animation */
    border-right: .15em solid var(--primary);
    /* The typwriter cursor */
    white-space: nowrap;
    /* Keeps the content on a single line */
    margin: 0 auto 15px 0;
    /* Gives that scrolling effect as the typing happens */
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    max-width: fit-content;
}

.hero-profession {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: 0px;
    /* profile photo positioned higher */
}

.profile-avatar {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
        var(--gradient-main) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 242, 255, 0.3),
        inset 0 0 20px rgba(0, 242, 255, 0.1);
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.profile-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 242, 255, 0.5),
        0 0 100px rgba(112, 0, 255, 0.3),
        inset 0 0 30px rgba(0, 242, 255, 0.2);
    border-color: var(--primary);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s ease;
}

.profile-avatar:hover .hero-photo {
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: float 2s infinite;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-body);
}

.about-bio {
    background: var(--bg-surface-transparent);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-md);
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.about-bio p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-dim);
    box-shadow: var(--shadow-glow);
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat p {
    color: var(--text-dim);
    font-weight: 500;
}

/* Education & Experience & Services - Card Style */
.education,
.experience,
.services,
.projects,
.skills {
    padding: 100px 0;
}

.education-grid,
.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.education-card,
.service-card,
.project-card,
.timeline-item {
    background: var(--bg-surface-transparent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.education-card:hover,
.service-card:hover,
.project-card:hover,
.timeline-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Icons in cards */
.education-icon,
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary);
}

/* Timeline specific */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-dim);
    border-radius: 20px;
}

.timeline-image img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

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

.skills-category h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* Cursor Animation Canvas */
#interaction-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allow clicks to pass through */
    z-index: 9999;
    /* Ensure it's on top of everything */
    mix-blend-mode: screen;
    /* Optional: blends nicely with dark backgrounds */
}

[data-theme="light"] #interaction-canvas {
    mix-blend-mode: multiply;
}



.skill-progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 4px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

/* Projects */
.project-card {
    padding: 0;
    /* Reset padding for image */
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

.project-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

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

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.project-link:hover {
    color: var(--primary);
}

/* Contact (Assuming there is one, or using footer) */
/* Mobile Responsive */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

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

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

    .profile-avatar {
        width: 280px;
        height: 280px;
    }

    /* Mobile Navigation */
    .header-center {
        display: none;
        /* Hidden by default on mobile */
    }

    .header-right {
        display: flex;
        /* Keep icons visible */
        gap: 10px;
        margin-right: 15px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* Mobile Menu Active State - Glassmorphism Overlay */
    .header-center.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 23, 0.95);
        padding: 20px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        justify-content: flex-start;
    }

    /* Mobile Menu Header */
    .nav-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .close-menu {
        display: none;
        /* Override global display: none */
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
    }

    /* Mobile Menu Links Container */
    .nav-links-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    /* Mobile Menu Link Tiles */
    .header-center.active .nav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        color: var(--text-main);
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .header-center.active .nav-link i {
        display: inline-block;
        /* Override global display: none */
        font-size: 1.2rem;
        color: var(--text-muted);
        width: 24px;
        text-align: center;
        transition: color 0.3s ease;
    }

    /* Active & Hover States */
    .header-center.active .nav-link:active,
    .header-center.active .nav-link:hover {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.06);
    }

    .header-center.active .nav-link.active {
        background: rgba(0, 242, 255, 0.05);
        border-color: rgba(0, 242, 255, 0.2);
        color: white;
    }

    .header-center.active .nav-link.active i {
        color: var(--primary);
    }

    /* Cyan Accent Bar */
    .header-center.active .nav-link.active::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background: var(--primary);
        border-radius: 4px 0 0 4px;
        box-shadow: 0 0 10px var(--primary);
    }

    /* Mobile Menu Footer (CTA Buttons) */
    .mobile-menu-footer {
        margin-top: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-cta {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .btn-outline {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-main);
    }

    /* Animation Keyframes */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* --- Modern Forms (Contact & Feedback) --- */
.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

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

/* Light theme adjustments for inputs */
[data-theme="light"] input,
[data-theme="light"] textarea {
    background: #f1f3f5;
    border-color: #dee2e6;
    color: #212529;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

/* --- Certificates / Achievements --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    height: 300px;
    /* Fixed height for uniformity */
}

.certificate-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.certificate-frame object {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevent interaction with PDF inside card */
}

/* Fallback for PDF preview */
.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.pdf-fallback i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.pdf-fallback p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.pdf-fallback-button {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

.pdf-fallback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.3);
}

/* Overlay - Modern Glassmorphism Slide-up */
.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    transform: translateY(100%);
    /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 100%;
}

/* Show overlay on hover */
.certificate-card:hover .certificate-overlay {
    transform: translateY(0);
}

.certificate-meta h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.certificate-meta .issuer {
    font-size: 0.9rem;
    color: var(--primary);
}

.certificate-meta .certificate-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.view-pdf {
    align-self: flex-start;
    margin-top: 10px;
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* --- Modals (Admin & Confirmation) --- */
.confirmation-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-modal[style*="display: flex"] {
    opacity: 1;
}

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

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2001;
}

.confirmation-modal[style*="display: flex"] .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 0, 85, 0.1);
    /* Default redish for delete */
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-main);
}

.modal-body {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.modal-btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.modal-btn-delete {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.3);
}

.modal-btn-delete:hover {
    background: #d40045;
    transform: translateY(-2px);
}

/* Admin Modal Specifics */
#adminModal .modal-icon {
    background: rgba(0, 242, 255, 0.1) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2) !important;
}

#adminModal .modal-btn-unlock {
    background: var(--gradient-main);
    color: white;
}

/* --- Modern Footer --- */
.footer {
    background: var(--bg-surface);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

/* Links & Contact */
.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary);
}

/* Newsletter */
.newsletter-col p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.newsletter-form .btn-icon {
    width: 46px;
    height: 46px;
    /* Match input height roughly */
    border-radius: 8px;
    background: var(--gradient-main);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.newsletter-form .btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Modern Contact Section --- */
.contact-content {
    display: flex;
    justify-content: center;
    animation: slideUpFade 0.8s ease-out forwards;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    width: 100%;
    max-width: 1100px;
    background: var(--bg-surface-transparent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

/* Left Side: Contact Info */
.contact-info-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    animation: slideUpFade 0.6s ease-out forwards;
}

.contact-info-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info-item:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-info-item:nth-child(4) {
    animation-delay: 0.4s;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.contact-info-item:hover .icon-box {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    transform: translateY(-3px);
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.info-content p,
.info-content a {
    color: var(--text-muted);
    font-size: 0.95rem;
    word-break: break-all;
}

.info-content a:hover {
    color: var(--primary);
}

/* Right Side: Form */
.contact-form {
    flex: 1.5;
    min-width: 350px;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.3s forwards;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    outline: none;
}

.contact-form button {
    align-self: flex-start;
    padding: 12px 30px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 30px;
    }

    .contact-info-panel,
    .contact-form {
        width: 100%;
    }
}

/* --- Modern Feedback Section --- */
.testimonials-submission {
    padding: 100px 0;
    background: var(--bg-body);
    position: relative;
}

.feedback-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    animation: slideUpFade 0.8s ease-out forwards;
}

.modern-form {
    background: var(--bg-surface-transparent);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.modern-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.modern-form .form-group {
    margin-bottom: 25px;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 18px 25px;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.modern-form input:focus,
.modern-form textarea:focus {
    background: rgba(10, 14, 23, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
    transform: translateY(-2px);
}

.modern-form .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease;
}

.modern-form .btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.3);
}

/* Thank You Section Enhancements */
.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    animation: fadeIn 1s ease-out forwards;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 30px;
    animation: pulse-glow 2s infinite;
}

.thank-you-message p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.thank-you-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.5s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

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

@media (max-width: 768px) {
    .thank-you-stats {
        flex-direction: column;
        gap: 30px;
    }

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

    .modern-form {
        padding: 25px;
    }
}

/* --- Client Testimonials Display --- */
.testimonials-display {
    padding: 80px 0;
    background: var(--bg-body);
    position: relative;
}

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

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
}

.testimonial-quote {
    margin-bottom: 25px;
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0.8;
}

.testimonial-quote p {
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.6;
}

/* Light Theme Testimonial Overrides */
[data-theme="light"] .testimonial-card {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .testimonial-quote p {
    color: #000000;
    font-weight: 500;
}

[data-theme="light"] .author-role {
    color: #666666;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-name {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.author-device {
    color: #4caf50;
    /* Green for device info as seen in image */
    font-size: 0.8rem;
    font-family: monospace;
}

.testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonials-pagination .dot {
    width: 12px;
    height: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonials-pagination .dot.active,
.testimonials-pagination .dot:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Feedback CTA */
.feedback-cta {
    text-align: center;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

.feedback-cta p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.feedback-cta .btn-submit-trigger {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Outfit', sans-serif;
}

.feedback-cta .btn-submit-trigger:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    transform: translateY(-2px);
}

/* Arabic Text Support */
[data-ar],
[lang="ar"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Ensure Section Titles are Centered */
.section-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    transform: none !important;
    width: 100%;
    display: block !important;
}

.section-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Fix for Video Demo Modal Centering */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    /* Flexbox centering */
    align-items: center;
    justify-content: center;
}

/* When display is set to flex via JS, ensure it stays flex */
.demo-modal[style*='display: flex'] {
    display: flex !important;
}

.demo-modal-content {
    background-color: var(--bg-surface);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUpFade 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.demo-container video {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
}

.close-demo {
    color: var(--text-muted);
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-demo:hover {
    color: var(--primary);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
}

/* Hide default cursor on interactive elements if you want full custom cursor experience, 
   but usually it's better to keep default pointer for usability. 
   We can add hover effects instead. */

/* Uncomment to hide default cursor
body {
    cursor: none;
} */

/* Cursor Hover Effect */
body.hovering .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(0, 242, 255, 0.1);
    border-color: transparent;
}

#interaction-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Admin Switch Button */
.admin-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

#adminIcon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

input:checked~#adminIcon {
    color: var(--primary);
}

/* Modern Education Card Design */
.education-card-modern {
    background: var(--bg-surface-transparent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    gap: 0;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.education-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.education-card-modern:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
}

.education-card-modern:hover::before {
    transform: scaleX(1);
}

/* Left side - University Logo */
.education-card-left {
    flex: 0 0 280px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(112, 0, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid var(--glass-border);
    position: relative;
}

.education-card-left::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.university-logo-wrapper {
    position: relative;
    z-index: 1;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.education-card-modern:hover .university-logo-wrapper {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.3);
}

.university-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right side - Education Details */
.education-card-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.education-icon-badge {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
    transition: var(--transition-smooth);
}

.education-card-modern:hover .education-icon-badge {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
}

.education-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.education-level {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.education-separator {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.education-duration {
    color: var(--text-muted);
    font-weight: 600;
}

.education-degree {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.education-university {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

.education-specialization {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 242, 255, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    margin-top: 10px;
}

.education-specialization i {
    font-size: 1.3rem;
    color: var(--primary);
}

.education-specialization span {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 968px) {
    .education-card-modern {
        flex-direction: column;
    }

    .education-card-left {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 30px;
    }

    .university-logo-wrapper {
        width: 150px;
        height: 150px;
    }

    .education-card-right {
        padding: 30px;
    }

    .education-degree {
        font-size: 1.5rem;
    }

    .education-university {
        font-size: 1.1rem;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .education-card-left {
        padding: 25px;
    }

    .university-logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .education-card-right {
        padding: 25px;
        gap: 15px;
    }

    .education-degree {
        font-size: 1.3rem;
    }

    .education-university {
        font-size: 1rem;
    }

    .education-specialization {
        padding: 12px 16px;
    }

    .education-specialization span {
        font-size: 0.95rem;
    }

    .education-meta {
        flex-wrap: wrap;
    }
}


/* Legal Modals (Privacy Policy & Terms of Service) */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: slideUpFade 0.4s ease;
}

.legal-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 40px;
}

.legal-modal-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-content p:first-of-type {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 30px;
}

.close-legal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

.close-legal:hover {
    color: var(--accent);
    background: var(--primary-dim);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Scrollbar styling for legal modal content */
.legal-modal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Responsive design for legal modals */
@media (max-width: 768px) {
    .legal-modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
    }

    .legal-modal-content h2 {
        font-size: 1.5rem;
        padding-right: 35px;
    }

    .legal-modal-content h3 {
        font-size: 1.1rem;
    }

    .legal-content p {
        font-size: 0.95rem;
    }

    .close-legal {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
}