
.modal-embed-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    min-height: 500px;
    min-width: 400px;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.modal-embed-center iframe {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    .modal-embed-center {
        min-height: 400px;
        padding: 10px;
    }
    
    .modal-embed-center iframe {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .modal-embed-center {
        min-height: 350px;
        min-width: 100%;
    }
    
    .modal-embed-center iframe {
        height: 50vh;
        min-height: 350px;
    }
}

.modal-image-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    z-index: 2;
}

.modal-image-viewer img,
.modal-image-viewer img.modal-zoomable,
#modalImage {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    max-height: 60vh; 
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transition: transform 0.28s cubic-bezier(.23,1,.32,1);
    cursor: grab;
    background: #23243a;
    position: relative;
    z-index: 1;
}

.modal-image-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.modal-image-controls button {
    background: #23243a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, color 0.2s;
}
.modal-image-controls button:hover {
    background: #00d4aa;
    color: #23243a;
}
.modal-image-viewer img.modal-zoomable {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    cursor: grab;
    background: transparent;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    /* Hide browser's default loading indicator */
    background-size: 0;
    background-image: none;
}

.modal-image-viewer img.modal-zoomable:active {
    cursor: grabbing;
}

/* Light mode image background */
body:not(.dark-mode) .modal-image-viewer img.modal-zoomable {
    background: transparent;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Modal Image Loading State - DISABLED (using hourglass only) */
.modal-image-container-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 170, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0; /* Always hidden - using hourglass instead */
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
    display: none; /* Completely disabled */
}

.modal-image-container-wrapper.loading::before {
    opacity: 0; /* Keep hidden even when loading */
    display: none; /* Completely disabled */
}

.modal-image-container-wrapper img {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}


/* ========== Mini Hourglass Loader ========== */
.mini-hourglass-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.mini-hourglass-loader.active {
    opacity: 1;
    visibility: visible;
}

.mini-hourglass {
    position: relative;
    width: 60px;
    height: 90px;
    animation: miniFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--glow-color));
}

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

.mini-glass-frame-top {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-color);
}

.mini-glass-frame-bottom {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-color);
}

.mini-glass-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 40px solid rgba(0, 212, 170, 0.2);
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.mini-glass-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 40px solid rgba(0, 212, 170, 0.2);
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.mini-glass-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 255, 204, 0.15));
    clip-path: polygon(15% 0, 85% 0, 75% 100%, 25% 100%);
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.mini-sand-top {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 32px solid var(--primary-color);
    filter: drop-shadow(0 0 15px var(--glow-color)) drop-shadow(0 0 20px var(--primary-color));
    animation: miniSandDeplete 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes miniSandDeplete {
    0% { border-top-width: 32px; opacity: 1; }
    90% { border-top-width: 8px; opacity: 0.8; }
    100% { border-top-width: 32px; opacity: 1; }
}

.mini-sand-stream {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px var(--primary-color), 0 0 15px var(--glow-color);
    animation: miniSandFall 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    border-radius: 2px;
}

@keyframes miniSandFall {
    0%, 5% { height: 0; opacity: 0; }
    10% { height: 10px; opacity: 1; }
    90% { height: 10px; opacity: 1; }
    95%, 100% { height: 0; opacity: 0; }
}

.mini-sand-bottom {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 0px solid transparent;
    border-bottom: 0px solid var(--accent-color);
    filter: drop-shadow(0 0 15px var(--accent-color)) drop-shadow(0 0 20px var(--glow-color));
    animation: miniSandAccumulate 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes miniSandAccumulate {
    0% { border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; opacity: 0.6; }
    90% { border-left-width: 24px; border-right-width: 24px; border-bottom-width: 32px; opacity: 1; }
    100% { border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; opacity: 0.6; }
}

.mini-sand-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 5px var(--glow-color);
}

.mini-sand-particle:nth-child(1) {
    left: calc(50% - 3px);
    top: 48px;
    animation: miniParticleFall 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.mini-sand-particle:nth-child(2) {
    left: calc(50% + 3px);
    top: 48px;
    animation: miniParticleFall 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.1s;
}

.mini-sand-particle:nth-child(3) {
    left: 50%;
    top: 48px;
    animation: miniParticleFall 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.2s;
}

@keyframes miniParticleFall {
    0%, 5%, 95%, 100% { opacity: 0; transform: translateY(0) translateX(-50%); }
    10%, 85% { opacity: 0.8; transform: translateY(10px) translateX(-50%); }
}

.mini-hourglass-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 0 10px var(--glow-color);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Advanced Modal Image Controls */
.modal-image-container-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 212, 170, 0.05), transparent);
    cursor: grab;
    min-height: 400px;
}

.modal-image-container-wrapper:active {
    cursor: grabbing;
}

/* Image Slider Styles */
.modal-image-slider-container {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
    background: var(--bg-secondary);
}

.modal-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 500px;
}

.modal-slider-images {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    transition: opacity 0.4s ease;
    /* Debug: background to see if container exists */
    /* background: rgba(255, 0, 0, 0.1); */
}

.modal-slider-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 85%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s ease;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    visibility: hidden;
    z-index: 1;
    /* Hide browser's default loading indicator */
    background-size: 0;
    background-image: none;
}

.modal-slider-image.active {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto;
    visibility: visible !important;
    z-index: 2;
}

.modal-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.9), rgba(110, 69, 255, 0.9));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    backdrop-filter: blur(10px);
}

.modal-slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-slider-prev {
    left: 30px;
}

.modal-slider-next {
    right: 30px;
}

.modal-slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.slider-indicator.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.6);
}

.modal-slider-counter {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10;
    border: 1px solid rgba(0, 212, 170, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.modal-image-controls-advanced {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
    align-items: center;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-control-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-control-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.modal-control-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.modal-control-divider {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.modal-zoom-level {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Modal Image Hints */
.modal-image-hints {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(20px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 250px;
    opacity: 0;
    animation: fadeInHints 0.5s ease 1s forwards;
    pointer-events: none;
}

.modal-image-hints h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-image-hints ul {
    margin: 0;
    padding: 0 0 0 5px;
    list-style: none;
}

.modal-image-hints li {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-image-hints li i {
    color: var(--accent-color);
    font-size: 0.8rem;
    width: 16px;
}

.modal-image-hints kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--primary-color);
}

.beautiful-layout {
    
    box-shadow: none;
    border: none;
    background: transparent;
    transition: none;
    margin-bottom: 0;
}
.beautiful-layout .service-content {
    padding-top: 0;
}
.beautiful-layout:hover {
    box-shadow: none;
    border-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    
    font-family: var(--font);
    line-height: 1.6;
    transition: all 0.3s ease;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

:root {
    
    --primary-color: #00d4aa;
    --secondary-color: #1a1a1a;
    --accent-color: #00ffcc;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(0, 212, 170, 0.3);
    
    --sphere-bg: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(110,69,255,0.12));
    --sphere-inner-highlight: rgba(255,255,255,0.12);
    --sphere-glow: rgba(0,212,170,0.18);
    --sphere-icon-color: #06121a; 
    
    
    --spacing-xs: 0.5rem;    
    --spacing-sm: 1rem;      
    --spacing-md: 1.5rem;    
    --spacing-lg: 2rem;      
    --spacing-xl: 3rem;      
    --spacing-xxl: 4rem;     
    --spacing-xxxl: 5rem;    
    
    
    --font-size-xs: 0.75rem;   
    --font-size-sm: 0.875rem;  
    --font-size-base: 1rem;    
    --font-size-lg: 1.125rem;  
    --font-size-xl: 1.25rem;   
    --font-size-2xl: 1.5rem;   
    --font-size-3xl: 1.875rem; 
    --font-size-4xl: 2.25rem;  
    --font-size-5xl: 3rem;     
    --font-size-6xl: 3.75rem;  
    
    
    --section-padding: var(--spacing-xxxl) 0;
    --container-padding: 0 var(--spacing-lg);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    
    
    --button-height: 48px;
    --button-height-sm: 36px;
    --button-height-lg: 56px;
    --card-padding: var(--spacing-xl);
    --modal-padding: var(--spacing-xl);

    --accent: #00e0b3;
    --bg: #0f0f0f;
    --text: #e6e6e6;
    --font: "Poppins", Arial, sans-serif;
    --typing-speed: 60ms;
    --pause-after-type: 1400ms;
    --pause-after-delete: 300ms;
}

body {
    background-color: #ffffff;
    color: #333333;
}

body.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
    --glow-color: rgba(0, 255, 204, 0.4);
    
    --sphere-bg: linear-gradient(135deg, rgba(0,212,170,0.14), rgba(110,69,255,0.14));
    --sphere-inner-highlight: rgba(255,255,255,0.08);
    --sphere-glow: rgba(0,255,204,0.22);
    --sphere-icon-color: #ffffff;
}

body.dark-mode {
    background-color: #0a0a0a;
    color: #ffffff;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hero-greeting {
    font-size: 1.9rem;
    color: var(--text-secondary);
    display: inline-block;
    vertical-align: middle;
}
.hero-typed-roles {
    display: inline-block !important;
    font-size: 3.25rem; 
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    margin-left: 0.6rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    letter-spacing: 0.6px;
    text-shadow: 0 6px 28px rgba(0,212,170,0.06), 0 2px 6px rgba(0,0,0,0.12);
}

.hero-typed-roles.role-animated {
    animation: rolePop 820ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes rolePop {
    0% { transform: scale(0.98); filter: blur(0); text-shadow: 0 6px 28px rgba(0,212,170,0.06); }
    40% { transform: scale(1.08); filter: blur(0.2px); text-shadow: 0 18px 48px rgba(0,212,170,0.22), 0 6px 18px rgba(110,69,255,0.08); }
    100% { transform: scale(1.03); filter: blur(0); text-shadow: 0 24px 68px rgba(0,212,170,0.28), 0 8px 28px rgba(110,69,255,0.12); }
}

.typing-cursor::after {
    content: '';
    display: inline-block !important;
    width: 4px !important;
    height: 1.5em !important;
    background: var(--primary-color) !important;
    margin-left: 10px !important;
    animation: blink 1s steps(2, start) infinite !important;
    vertical-align: middle !important;
}

.hero-desc {
    font-size: 1.35rem;
    line-height: 1.9;
    max-width: 780px;
    color: var(--text-secondary);
    font-weight: 600;
.hero {
    padding: 64px 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem; 
}

.hero-headings {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.hero-greeting {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.4px;
    display: inline-block;
}
    text-decoration: underline;
    text-decoration-color: rgba(0,212,170,0.16);
    padding: 0 0.25rem;
    font-weight:800;
}
.hero-subtitle {
    font-size: 1.25rem; 
    color: var(--text-secondary);
    margin: 0; 
    animation: fadeInUp 0.8s ease 0.18s both; 
}
.hero-desc {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 1rem 0 1.5rem 0; 
    line-height: 1.7;
    animation: fadeInUp 0.9s ease 0.36s both; 
}
.hero-ctas { display:flex; gap:1rem; margin-bottom:1.5rem; align-items:center; }
.btn { display:inline-flex; align-items:center; gap:0.6rem; height:var(--button-height); padding:0 1.25rem; border-radius:12px; font-weight:700; text-decoration:none; box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 14px 40px rgba(0,212,170,0.12), 0 6px 18px rgba(110,69,255,0.06);
    transition: transform 0.26s cubic-bezier(.2,.9,.2,1), box-shadow 0.26s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0,212,170,0.18), 0 10px 30px rgba(110,69,255,0.08);
}
.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.06);
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}
.btn-outline:hover,
.btn-outline:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

/* Light mode button overrides */
body:not(.dark-mode) .btn-primary {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .btn-outline {
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

body:not(.dark-mode) .btn-outline:hover {
    background: rgba(0, 212, 170, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.whatsapp-cta i { font-size:1.05rem; }

.hero-socials { margin-top:0.5rem; display:flex; gap:0.8rem; z-index:6; }
.hero-socials .social {
    width:56px;
    height:56px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    color: #ffffff;
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease, filter 0.2s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 6px 28px rgba(0,0,0,0.45), inset 0 -6px 18px rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.hero-socials .social:hover,
.hero-socials .social:focus {
    transform: translateY(-6px) scale(1.08);
    filter: saturate(1.12) drop-shadow(0 10px 30px rgba(0,0,0,0.45));
}

.hero-socials .social:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,212,170,0.12), 0 12px 30px rgba(0,212,170,0.16);
}

.hero-socials .social[href*="linkedin"] { background: linear-gradient(135deg, #0077B5, #00a0dc); }
.hero-socials .social[href*="github"] { background: linear-gradient(135deg, #24292e, #3b3f45); }
.hero-socials .social[href*="instagram"] { background: radial-gradient(circle at 30% 30%, #feda75, #f58529 30%, #dd2a7b 60%, #8134af 80%); }
.hero-socials .social[href*="facebook"] { background: linear-gradient(135deg, #4c66a4, #3b5998); }
.hero-socials .social[href*="behance"] { background: linear-gradient(135deg, #1769ff, #4d84ff); }
.hero-socials .social[href*="github"] i,
.hero-socials .social[href*="linkedin"] i,
.hero-socials .social[href*="instagram"] i,
.hero-socials .social[href*="facebook"] i,
.hero-socials .social[href*="behance"] i { color: #fff; }

.hero-socials .social:focus { outline: none; box-shadow: 0 0 0 6px rgba(0,212,170,0.08), 0 14px 36px rgba(0,0,0,0.45); }

.hero-socials .social[href*="linkedin"]:hover { box-shadow: 0 20px 60px rgba(0,129,181,0.16); }
.hero-socials .social[href*="github"]:hover { box-shadow: 0 20px 60px rgba(36,41,46,0.18); }
.hero-socials .social[href*="instagram"]:hover { box-shadow: 0 20px 60px rgba(221,42,123,0.18); }
.hero-socials .social[href*="facebook"]:hover { box-shadow: 0 20px 60px rgba(59,89,152,0.18); }
.hero-socials .social[href*="behance"]:hover { box-shadow: 0 20px 60px rgba(77,132,255,0.18); }

.hero-socials .social.social-clicked {
    transform: translateY(-8px) scale(1.08) !important;
    box-shadow: 0 24px 60px rgba(0,212,170,0.22), 0 8px 30px rgba(110,69,255,0.08) !important;
}

.hero-headings {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    will-change: transform, opacity;
}

.hero { 
    background: transparent; 
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(110, 69, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    
    padding: 0 6%;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text { 
    max-width: 700px;
    flex: 1 1 55%;
    animation: fadeInLeft 0.8s ease-out;
}

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

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

.hero-text h1, .hero-title { 
    font-size: 4.5rem; 
    margin: 0 0 20px 0; 
    font-weight: 900; 
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text .name { 
    color: var(--primary-color, #00e0b3); 
    text-decoration: underline; 
    text-underline-offset: 12px;
    text-decoration-thickness: 4px;
    text-decoration-color: rgba(0, 212, 170, 0.4);
    position: relative;
    display: inline-block;
}

.hero-text .name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0.3;
}

.typing { 
    font-size: 2.2rem; 
    font-weight: 700; 
    margin: 28px 0; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--text-secondary);
    min-height: 60px;
}

.cursor { 
    width: 3px; 
    height: 40px; 
    background: var(--primary-color,#00e0b3); 
    display: inline-block; 
    animation: blink 900ms steps(2) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.description { 
    margin: 32px 0 0 0; 
    font-size: 1.25rem; 
    line-height: 1.8; 
    color: var(--text-secondary);
    max-width: 640px;
    font-weight: 400;
    opacity: 0.9;
}

.buttons { 
    margin: 40px 0 32px 0; 
    display: flex; 
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn { 
    padding: 16px 36px; 
    border-radius: 50px; 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary-color,#00e0b3), var(--accent-color, #6e45ff)); 
    color: #ffffff; 
    box-shadow: 0 10px 30px rgba(0,212,170,0.3); 
    border: none;
    font-weight: 800;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color, #6e45ff), var(--primary-color,#00e0b3));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,212,170,0.4);
    color: #ffffff;
}

.btn-primary:hover i {
    transform: scale(1.2) rotate(5deg);
}

.btn-outline { 
    background: rgba(0, 212, 170, 0.05); 
    color: var(--primary-color,#00e0b3); 
    border: 2px solid rgba(0,212,170,0.4);
    font-weight: 700;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0,212,170,0.15);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover { 
    transform: translateY(-4px);
    background: rgba(0,212,170,0.15);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,212,170,0.2);
}

.btn-outline:hover i {
    transform: translateX(5px);
}

.hero-image {
    
    --hero-size: 680px; 
    width: var(--hero-size);
    height: var(--hero-size);
    aspect-ratio: 1/1;
    border-radius: 50%;
    position: relative;
    overflow: visible; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
    z-index: 2;
}

.hero-image > img,
.glowing-image {
    width: var(--hero-size);
    height: var(--hero-size);
    object-fit: cover;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(0,224,179,0.35);
    position: relative;
    z-index: 3;
    border: 4px solid rgba(0, 212, 170, 0.2);
    transition: transform 0.3s ease;
}

.hero-image:hover > img {
    transform: scale(1.03);
}

.hero-image::before {
    
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: calc(var(--hero-size) + 50px);
    height: calc(var(--hero-size) + 50px);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(0,224,179,0.8) 0%,
        rgba(110,69,255,0.8) 25%,
        rgba(0,224,179,0.8) 50%,
        rgba(110,69,255,0.8) 75%,
        rgba(0,224,179,0.8) 100%
    );
    filter: blur(12px);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    animation: ringRotate 15s linear infinite;
}

.hero-image::after {
    
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--hero-size) + 25px);
    height: calc(var(--hero-size) + 25px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.1), transparent 40%);
    box-shadow: 
        0 0 0 8px rgba(0,224,179,0.15),
        0 0 80px rgba(0,224,179,0.25),
        0 40px 140px rgba(0,0,0,0.4),
        inset 0 0 60px rgba(0,224,179,0.1);
    z-index: 2;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

.hero-image:hover::after {
    box-shadow: 
        0 0 0 8px rgba(0,224,179,0.3),
        0 0 100px rgba(0,224,179,0.4),
        0 40px 140px rgba(0,0,0,0.5),
        inset 0 0 60px rgba(0,224,179,0.15);
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes glowPulse {
    0% { filter: blur(4px); opacity: 0.9; }
    50% { filter: blur(10px); opacity: 1; }
    100% { filter: blur(4px); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image::before,
    .hero-image::after,
    .hero-image:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.socials { 
    display: flex; 
    gap: 18px; 
    margin-top: 28px;
    flex-wrap: wrap;
}

.social { 
    width: 56px; 
    height: 56px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    color: #fff; 
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: transform 0.3s ease;
    z-index: -1;
}

.social:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.social:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
    color: #ffffff;
}

@media (max-width: 1400px) {
    .hero-inner {
        gap: 80px;
    }
    
    .hero-image {
        --hero-size: 520px;
    }
}
@media (max-width: 1200px) {
    .hero { 
        padding: 80px 0 60px;
    }
    
    .hero-inner { 
        padding: 0 5%; 
        gap: 60px; 
        min-height: 85vh;
    }
    
    .hero-image { 
        --hero-size: 480px;
    }
    
    .hero-text h1 { 
        font-size: 3.8rem; 
    }
    
    .typing { 
        font-size: 1.9rem; 
    }
    
    .description {
        font-size: 1.15rem;
    }
}

@media (max-width: 900px) {
    .hero { 
        padding: 60px 0 40px;
    }
    
    .hero-inner { 
        flex-direction: column-reverse; 
        padding: 0 5%; 
        align-items: center; 
        text-align: center; 
        min-height: auto; 
        gap: 50px;
    }
    
    .hero-text { 
        max-width: 100%;
        flex: 1 1 auto;
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .hero-text .name::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-image { 
        --hero-size: 400px;
        margin-bottom: 20px;
    }
    
    .typing { 
        font-size: 1.6rem;
        justify-content: center;
    }
    
    .description { 
        font-size: 1.1rem;
        margin-top: 24px;
    }
    
    .buttons {
        justify-content: center;
        margin: 32px 0 24px 0;
    }
    
    .socials {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero { 
        padding: 40px 0 30px;
    }
    
    .hero-inner { 
        gap: 35px;
        padding: 0 4%;
    }
    
    .hero-image { 
        --hero-size: 340px;
    }
    
    .hero-text h1 { 
        font-size: 2.6rem;
        letter-spacing: -0.5px;
    }
    
    .typing { 
        font-size: 1.3rem;
        min-height: 45px;
    }
    
    .cursor {
        height: 32px;
    }
    
    .description { 
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .buttons {
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: center;
    }
    
    .social {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.hero-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    font-weight: 900;
    line-height: 1.02;
    
    font-size: 2.8rem !important; 
    margin: 0;
    color: var(--text-primary);
    transform-origin: left center;
    animation: heroTitleIn 700ms cubic-bezier(.2,.9,.2,1) both;
}

.hero-greeting {
    font-size: 1.15rem !important; 
    color: var(--text-secondary);
    font-weight: 700;
    opacity: 0.95;
    transform: translateY(6px);
    animation: greetingIn 620ms cubic-bezier(.2,.9,.2,1) both;
}

.hero-name {
    font-size: 2.8rem !important; 
    font-weight: 900;
    
    background: linear-gradient(90deg, var(--primary-color), rgba(0,255,204,0.95));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    text-decoration-color: rgba(0,212,170,0.14);
    margin-left: 0px;
    transform: translateY(6px);
    animation: nameReveal 840ms cubic-bezier(.2,.9,.2,1) 120ms both;
}

.hero-subtitle {
    margin: 0;
    font-size: 1.25rem !important; 
    color: var(--text-secondary);
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    animation: subtitleIn 720ms cubic-bezier(.2,.9,.2,1) 420ms both;
}

.hero-typed-roles {
    display: inline-block;
    font-size: 1.25rem !important;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    animation: typedPop 900ms cubic-bezier(.2,.9,.2,1) 620ms both;
}

.hero-name::after {
    content: '';
    display: block;
    height: 6px;
    width: 72%;
    margin-top: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(0,212,170,0.16), rgba(110,69,255,0.06));
    transform-origin: left center;
    animation: underlineGrow 820ms cubic-bezier(.2,.9,.2,1) 300ms both;
}

@keyframes greetingIn {
    from { opacity: 0; transform: translateY(12px) scale(.995); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nameReveal {
    from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

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

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

@keyframes typedPop {
    0% { opacity: 0; transform: translateY(8px) scale(.995); }
    60% { opacity: 1; transform: translateY(-2px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes underlineGrow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 1200px) {
    .hero-inner { padding: 64px 6%; gap: 44px; min-height: 78vh; }
    .hero-image { --hero-size: 420px; }
}
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; padding: 36px 5%; align-items: center; text-align: center; min-height: auto; gap: 18px; }
    .hero-text { max-width: 100%; }
    .hero-image { --hero-size: 300px; margin-top: 18px; }
    .hero-image::after { width: calc(var(--hero-size) + 22px); height: calc(var(--hero-size) + 22px); }
}
    .hero-name { font-size: 1.8rem !important; }
    .hero-greeting { font-size: 0.95rem !important; }
    .hero-subtitle, .hero-typed-roles { font-size: 0.95rem !important; }
.hero-headings { gap: 0.25rem; }

.hero-cta .btn.btn-primary.wa-clicked {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 80px rgba(0,212,170,0.28), 0 12px 40px rgba(110,69,255,0.08);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.06), transparent 50%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 2.5rem;
    align-items: center;
    align-content: center;
}
.hero-visual { display:flex; justify-content:flex-end; align-items:center; }
.portrait-wrap {
    width: 460px;
    height: 460px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(0,212,170,0.06), transparent 35%),
                radial-gradient(circle at 70% 70%, rgba(110,69,255,0.04), transparent 40%);
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), box-shadow 0.4s ease;
    will-change: transform;
    animation: float 6s ease-in-out infinite;
}

.portrait-wrap::before {
    content: '';
    position: absolute;
    inset: -14px; 
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0,212,170,0.12), rgba(110,69,255,0.10), rgba(0,212,170,0.12));
    filter: blur(18px);
    opacity: 0.95;
    z-index: 0;
    animation: ringSpin 10s linear infinite;
}

.portrait-wrap::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45) inset;
    z-index: 3;
    pointer-events: none;
}

.portrait {
    width: 92%;
    height: 92%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    z-index: 2;
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(.2,.9,.2,1), filter 0.6s ease, box-shadow 0.4s ease;
    filter: saturate(1.08) contrast(1.03); 
    box-shadow: 0 18px 60px rgba(0,0,0,0.45) inset;
}

.portrait-wrap:hover {
    transform: translateY(-8px) scale(1.02);
}
.portrait-wrap:active {
    transform: translateY(-4px) scale(1.01);
}
.portrait-wrap:hover .portrait {
    transform: scale(1.04) rotate(-3deg);
    filter: drop-shadow(0 18px 40px rgba(0,212,170,0.12)) saturate(1.12) contrast(1.05);
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .portrait-wrap,
    .portrait-wrap::before,
    .portrait {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 980px) {
    .portrait-wrap { width: 260px; height: 260px; }
    .portrait-wrap::before { inset: -10px; filter: blur(14px); }
}

@media (max-width: 480px) {
    .portrait-wrap { width: 200px; height: 200px; }
    .portrait { width: 94%; height: 94%; }
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align:center; }
    .hero-title { font-size: 2.25rem; flex-direction:column; gap:0.25rem; }
    .hero-subtitle { margin-left:0; }
    .hero-content { order:2; }
    .hero-visual { order:1; margin-bottom:1.5rem; }
    .hero-desc { margin-left:auto; margin-right:auto; }
    .portrait-wrap { width:260px; height:260px; }
    .portrait-wrap::before { inset: -6px; border-width:6px; }
}

*:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.2);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.no-underline,
.highlight.no-underline {
    color: inherit;
}

.highlight.no-underline::after,
.no-underline::after {
    display: none !important;
    content: none !important;
}

.section-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--spacing-sm));
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.btn {
    height: var(--button-height);
    padding: 0 var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    min-width: 140px;
}

.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 ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px var(--glow-color);
}

.btn-primary:hover {
    -webkit-transform: translateY(-3px) scale(1.05);
    -moz-transform: translateY(-3px) scale(1.05);
    -ms-transform: translateY(-3px) scale(1.05);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--glow-color);
}

.btn-primary:active {
    -webkit-transform: translateY(-1px) scale(1.02);
    -moz-transform: translateY(-1px) scale(1.02);
    -ms-transform: translateY(-1px) scale(1.02);
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn-secondary:hover {
    color: white;
    -webkit-transform: translateY(-3px) scale(1.05);
    -moz-transform: translateY(-3px) scale(1.05);
    -ms-transform: translateY(-3px) scale(1.05);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--glow-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 212, 170, 0.03) 0%,
        rgba(0, 255, 204, 0.03) 100%);
    pointer-events: none;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(0, 212, 170, 0.25);
}

body:not(.dark-mode) .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

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

.nav-container > .nav-logo,
.nav-container > .nav-menu,
.nav-container > .nav-controls {
    display: flex;
    align-items: center;
}

.nav-logo {
    margin: 0;
    z-index: 1001;
}

.logo-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-text {
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.3));
}

.cert-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
}
.cert-prev { left: 8px; }
.cert-next { right: 8px; }
.cert-nav:hover { background: rgba(0,0,0,0.8); }

@media (max-width: 900px) {
    .certificate-slide { flex: 0 0 calc(50% - 0.6rem); }
}
@media (max-width: 560px) {
    .certificate-slide { flex: 0 0 calc(85% - 0.6rem); }
    .cert-nav { display: none; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link,
.theme-toggle,
.lang-btn {
    line-height: 1;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.08);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.12);
}

.nav-link.active::before {
    width: 80%;
}

body:not(.dark-mode) .nav-link {
    color: var(--text-primary);
}

body:not(.dark-mode) .nav-link:hover {
    background: rgba(0, 212, 170, 0.12);
    color: var(--primary-color);
}

body:not(.dark-mode) .nav-link.active {
    background: rgba(0, 212, 170, 0.15);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 1001;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

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

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:hover {
    color: white;
    transform: rotate(180deg) scale(1.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.4);
}

body:not(.dark-mode) .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 212, 170, 0.3);
}

.nav-controls .lang-btn i {
    font-size: 0.85em;
}
body:not(.rtl) .nav-controls .lang-btn i { margin-left: 0.4rem }
body.rtl .nav-controls .lang-btn i { margin-right: 0.4rem }

body.rtl {
    direction: rtl;
}

body.rtl .nav-menu,
body.rtl .nav-controls {
    direction: rtl;
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl p,
body.rtl .section-title,
body.rtl .service-title,
body.rtl .project-title,
body.rtl .project-description {
    text-align: right;
}

body.rtl form label {
    text-align: right;
    display: block;
}

body.rtl .lang-btn {
    direction: rtl;
}

body.rtl .tags,
body.rtl .project-card .tag {
    text-align: right;
}

@media (max-width: 980px) {
    .hero-typed-roles {
        font-size: 2.1rem;
    }
    .hero-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .hero-typed-roles {
        font-size: 1.45rem;
        display: block;
        margin-left: 0;
    }
    .hero-title { font-size: 1.6rem; }
    .hero-desc { font-size: 1rem; max-width: 100%; }
}

body:not(.dark-mode) .theme-toggle {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 18px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.lang-dropdown {
    z-index: 2000; 
}

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

.lang-btn:hover::before {
    left: 0;
}

.lang-btn:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow-color);
}

body:not(.dark-mode) .lang-btn {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--shadow);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.lang-option:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background: var(--accent-color);
}

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

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

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

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    animation: fadeInUp 0.8s ease 1.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(0, 212, 170, 0.3);
}

.btn-outline:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: transparent;
    text-decoration: none;
}

.social-link i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite alternate;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 4px;
    animation: fadeInUp 0.8s ease 1s both;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.profile-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: -10%;
    animation-delay: 1.5s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: -15%;
    animation-delay: 3s;
}

.floating-icon:nth-child(4) {
    bottom: 10%;
    right: -5%;
    animation-delay: 4.5s;
}

.floating-icon:hover {
    transform: scale(1.1);
    background: rgba(0, 212, 170, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 0.8s ease 1.6s both;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary-color);
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    border-radius: 2px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-40px, -20px) rotate(180deg); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -40px) rotate(90deg); }
    75% { transform: translate(-30px, 30px) rotate(270deg); }
}

@keyframes glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

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

@keyframes scrollLine {
    0% { height: 30px; opacity: 1; }
    100% { height: 0; opacity: 0; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-name { font-size: 1.8rem; }
    .hero-greeting { font-size: 1rem; }
    .hero-desc {
        font-size: 0.98rem;
        color: var(--muted);
        max-width: 52ch;
        line-height: 1.5;
        margin-top: 0.8rem;
    }
    .hero-ctas { display:flex; gap:0.75rem; margin-top:1rem; margin-bottom:1rem; align-items:center; justify-content:center; flex-wrap:wrap; }
    .hero-ctas .btn { padding: 0.72rem 1rem; border-radius: 8px; font-weight:700; }
    .whatsapp-cta { box-shadow: 0 6px 18px rgba(37,211,102,0.10); }
    .btn-outline { border-radius: 8px; padding: 0.65rem 0.95rem; }
    .hero-visual { display:flex; justify-content:center; align-items:center; margin-top: 1rem; }
    .portrait-wrap { width: 200px; height: 200px; border-radius: 16px; }
    .portrait { width:100%; height:100%; object-fit:cover; display:block; }
}
.hero-title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.03;
    margin: 0;
}

.hero-name {
    color: var(--accent);
    font-weight: 800;
    margin-left: 0.35rem;
}

.hero-image {
    --hero-size: 280px !important; 
    width: var(--hero-size) !important;
    height: var(--hero-size) !important;
    max-width: 320px !important;
    max-height: 320px !important;
    margin: 0 auto !important;
    align-self: center !important;
}

.hero-image img,
.glowing-image,
.portrait,
.portrait-wrap .portrait,
.profile-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 280px !important;
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

@media (min-width: 1400px) {
    
    .hero-image { --hero-size: 320px !important; }
    .hero-image img, .glowing-image { max-width: 320px !important; max-height: 320px !important; }
}

@media (max-width: 900px) {
    .hero-image { --hero-size: 220px !important; width: var(--hero-size) !important; height: var(--hero-size) !important; }
    .hero-image img, .glowing-image { max-width: 220px !important; max-height: 220px !important; }
    .hero-inner { gap: 12px !important; padding: 24px 6% !important; }
}

.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

body:not(.dark-mode) .about {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-subtitle {
    margin: 0;
    color: var(--accent-muted);
    font-weight: 600;
}

.experiences {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

body:not(.dark-mode) .experiences {
    background: #ffffff;
}

.experience-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-lg);
    padding: 0 1rem;
}

.experience-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-md));
    box-shadow: 0 12px 30px var(--shadow);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease;
}

.experience-item:hover,
.experience-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.18);
}

.experience-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 8px 28px var(--glow-color);
}

.experience-content { flex: 1; }

.experience-role {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.experience-company {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.experience-period,
.experience-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.experience-details {
    margin-top: 0.5rem;
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-details li { margin-bottom: 0.5rem; }

body:not(.dark-mode) .experience-item {
    border-color: var(--border-color);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body:not(.dark-mode) .experience-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

@media (max-width: 900px) {
    .experience-item { flex-direction: column; align-items: flex-start; }
    .experience-icon { width: 56px; height: 56px; border-radius: 10px; font-size: 1.2rem; }
}

.education {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

body:not(.dark-mode) .education {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.edu-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2.5rem;
    gap: 0;
    height: 60px;
}
.edu-timeline-track {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 0;
    border-radius: 2px;
}
.edu-timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    width: 33%;
}
.edu-timeline-dot {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-color);
    border: 3px solid #fff;
    margin-bottom: 6px;
}
.edu-timeline-item.active .edu-timeline-dot {
    background: var(--accent-color);
    box-shadow: 0 0 16px var(--accent-color);
}
.edu-timeline-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 2px;
}

.education-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
    justify-items: center; 
    gap: var(--spacing-lg);
    padding: 0 1rem;
}

.edu-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-md));
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    align-items: center;
    box-shadow: 0 12px 30px var(--shadow);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.28s var(--transition), box-shadow 0.28s ease;
    width: 100%; 
    max-width: 720px; 
    margin: 0 auto; 
    overflow: visible; 
}

.edu-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 28px 60px rgba(0,0,0,0.18); 
}

.edu-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 8px 28px var(--glow-color);
    position: relative; 
    z-index: 2; 
    overflow: visible; 
}

.edu-card-content h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); margin: 0; }
.edu-institution { color: var(--text-secondary); margin-top: 6px; margin-bottom: 6px; }
.edu-grade { color: var(--primary-color); font-weight: 700; }

.edu-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.edu-details-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}
.edu-period {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.98rem;
    background: rgba(0,0,0,0.08);
    padding: 2px 10px;
    border-radius: 8px;
}
.edu-status {
    font-weight: 700;
    font-size: 0.98rem;
    padding: 2px 18px;
    border-radius: 18px;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-color);
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    white-space: nowrap;
}
.edu-status.graduated {
    background: #00c896;
}
.edu-status.ongoing {
    background: #0078ff;
}
.edu-status.finished {
    background: #888;
}

.edu-card-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.edu-period {
    color: var(--text-secondary);
    font-weight: 700;
    white-space: nowrap; 
    margin-left: 12px;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .education-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    .education-grid { grid-template-columns: 1fr; }
    .edu-card { flex-direction: row; align-items: center; }
    .edu-card-icon { width: 52px; height: 52px; }
    .edu-card-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .edu-period { white-space: normal; }
}

.skills-spheres {
    position: relative;
    width: 100%;
    height: 360px;
    margin: 0 auto var(--spacing-xxl);
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(0,212,170,0.02), transparent 15%), radial-gradient(circle at 80% 70%, rgba(110,69,255,0.02), transparent 20%);
    box-shadow: inset 0 6px 30px rgba(0,0,0,0.18);
    z-index: 2; 
}
.hero-typed-roles {
    display: inline-block;
    font-weight: 700;
    color: var(--text);
}

.hero-headings { animation: heroHeadingsIn 640ms cubic-bezier(.2,.9,.2,1) both; }
@keyframes heroHeadingsIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.skills {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

body:not(.dark-mode) .skills {
    background: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center; 
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto var(--spacing-xxl);
    padding: 0 1rem; 
}

.skill-box {
    width: 100%;
    max-width: 300px;
    min-height: 160px;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, rgba(0,255,170,0.06), rgba(0,200,140,0.02));
    border: 1px solid rgba(0,255,170,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 2px 18px rgba(0,255,170,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms ease, background 320ms ease;
    position: relative;
    cursor: default;
    overflow: visible;
    transform-origin: center; 
}

.skill-box::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(0,255,170,0.12), rgba(0,200,140,0.06));
    filter: blur(18px);
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    z-index: 0;
}

.skill-box:hover::before,
.skill-box:focus::before {
    opacity: 1;
    transform: scale(1.02);
}

.skill-box > * { position: relative; z-index: 2; }

.skill-icon {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,255,170,0.12), rgba(0,200,140,0.06));
    box-shadow: 0 8px 30px rgba(0,255,170,0.06);
    font-size: 2.2rem;
    color: #00ffb2;
}

/* Custom C Language Icon */
.c-language-icon {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, rgba(103, 128, 249, 0.15), rgba(88, 112, 231, 0.08));
    box-shadow: 0 8px 30px rgba(103, 128, 249, 0.12);
    color: #6780f9;
    text-shadow: 0 2px 8px rgba(103, 128, 249, 0.3);
}

.skill-name {
    font-weight: 800;
    color: #eafff6;
    letter-spacing: 0.4px;
    text-shadow: 0 6px 20px rgba(0,160,120,0.08);
    font-size: 1.05rem;
    text-align: center;
}

.skill-box:hover,
.skill-box:focus {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 30px 80px rgba(0,255,170,0.16), 0 4px 24px rgba(0,0,0,0.38);
}

.skill-box:hover .c-language-icon,
.skill-box:focus .c-language-icon {
    background: linear-gradient(135deg, rgba(103, 128, 249, 0.25), rgba(88, 112, 231, 0.15));
    box-shadow: 0 12px 40px rgba(103, 128, 249, 0.25);
    color: #7d94ff;
    transform: scale(1.05);
}

@keyframes neonFloatX {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-4px) translateX(4px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes neonFloatY {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-6px) translateX(-4px); }
    100% { transform: translateY(0) translateX(0); }
}

.skill-box[data-animate="float"] { animation: neonFloatX 6s ease-in-out infinite; }
.skill-box[data-animate="float-y"] { animation: neonFloatY 6.6s ease-in-out infinite; }

.skills-grid .skill-box:nth-child(1) { animation-delay: 0s; }
.skills-grid .skill-box:nth-child(2) { animation-delay: 0.12s; }
.skills-grid .skill-box:nth-child(3) { animation-delay: 0.24s; }
.skills-grid .skill-box:nth-child(4) { animation-delay: 0.36s; }
.skills-grid .skill-box:nth-child(5) { animation-delay: 0.48s; }
.skills-grid .skill-box:nth-child(6) { animation-delay: 0.60s; }
.skills-grid .skill-box:nth-child(7) { animation-delay: 0.72s; }
.skills-grid .skill-box:nth-child(8) { animation-delay: 0.84s; }
.skills-grid .skill-box:nth-child(9) { animation-delay: 0.96s; }
.skills-grid .skill-box:nth-child(10) { animation-delay: 1.08s; }
.skills-grid .skill-box:nth-child(11) { animation-delay: 1.20s; }
.skills-grid .skill-box:nth-child(12) { animation-delay: 1.32s; }

@media (prefers-reduced-motion: reduce) {
    .skill-box[data-animate="float"],
    .skill-box[data-animate="float-y"] {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 980px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .skills-grid { grid-template-columns: 1fr; gap: 1rem; }
    .skill-box { max-width: 420px; }
}

.skills-spheres .sphere {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    will-change: transform, filter, opacity;
    transition: transform 400ms cubic-bezier(.2,.9,.2,1), box-shadow 300ms ease, filter 300ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere .sphere-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--sphere-inner-highlight), transparent 28%), var(--sphere-bg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 40px var(--sphere-glow);
    backdrop-filter: blur(6px) saturate(1.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sphere-icon-color);
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.sphere .skill-label {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.sphere:focus .skill-label,
.sphere:hover .skill-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.sphere:focus,
.sphere:hover {
    transform: translate(-50%, -50%) scale(1.06);
    z-index: 60; 
}

@keyframes sphereFloatX {
    0% { transform: translate(-50%, -50%) translateX(0); }
    50% { transform: translate(-50%, -50%) translateX(12px); }
    100% { transform: translate(-50%, -50%) translateX(0); }
}

@keyframes sphereFloatY {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-14px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

.sphere[data-animate="float"] { animation: sphereFloatX 6s ease-in-out infinite; }
.sphere[data-animate="float-y"] { animation: sphereFloatY 7s ease-in-out infinite; }

@media (max-width: 980px) {
    .skills-spheres { height: 280px; }
}

@media (max-width: 480px) {
    .skills-spheres { height: 220px; }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxxl);
    align-items: center;
}

.about-text h3 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    font-size: var(--font-size-lg);
}

.about-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
    background: linear-gradient(135deg, rgba(0,212,170,0.03), rgba(0,255,204,0.02));
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    min-width: 120px;
}

.stat-number {
    display: inline-block;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text-primary);
}

.stat-suffix { 
    margin-left: var(--spacing-xs); 
    color: var(--primary-color); 
    font-weight: 700; 
}

.stat-label { 
    color: var(--text-secondary); 
    font-size: var(--font-size-sm); 
    margin-top: var(--spacing-xs); 
    display: block; 
    font-weight: 500;
}

.about-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px var(--shadow);
}

.services {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

body:not(.dark-mode) .services {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    align-items: stretch;
    justify-items: center;
    padding: var(--spacing-lg) 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.services-grid .service-card {
    width: 100%;
    max-width: 360px;
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(18px) scale(0.995); }
    60% { opacity: 1; transform: translateY(-6px) scale(1.002); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.services-grid .service-card {
    animation: slideUp 0.75s cubic-bezier(.2,.9,.2,1) both;
}
.services-grid .service-card:nth-child(1) { animation-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.12s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.22s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.32s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.42s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.52s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.62s; }
.services-grid .service-card:nth-child(8) { animation-delay: 0.72s; }

.service-card {
    background: var(--bg-card);
    border: none; 
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-lg) + 6px);
    text-align: center;
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease;
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    backdrop-filter: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08); 
    width: 100%;
    max-width: 380px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body:not(.dark-mode) .service-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

body:not(.dark-mode) .service-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 212, 170, 0.4);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.9;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.03) rotateX(2deg);
    box-shadow: 0 40px 100px rgba(0,212,170,0.15), 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, rgba(0,212,170,0.05) 0%, rgba(0,255,204,0.02) 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: var(--font-size-3xl);
    color: white;
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1), box-shadow 0.45s ease;
    box-shadow: 0 10px 30px rgba(0,212,170,0.12);
}

.service-card:hover .service-icon {
    transform: translateY(-8px) rotate(-8deg) scale(1.06);
    box-shadow: 0 22px 46px rgba(0,212,170,0.14);
}

.service-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-size-base);
    flex-grow: 1;
}

@media (max-width: 680px) {
    .services { padding: 48px 0; }
    .service-card { padding: 1.6rem; }
}

.projects {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

body:not(.dark-mode) .projects {
    background: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 3rem auto 3.5rem auto;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, 
        rgba(15, 17, 35, 0.95) 0%, 
        rgba(20, 25, 45, 0.98) 50%,
        rgba(15, 17, 35, 0.95) 100%);
    border-radius: 25px;
    max-width: 1100px;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 212, 170, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.25);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    overflow: hidden;
}

.project-filters::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 212, 170, 0.08) 50%,
        transparent 70%
    );
    animation: filterShine 8s linear infinite;
    pointer-events: none;
}

.project-filters::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 212, 170, 0.05) 0%,
        transparent 70%
    );
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes filterShine {
    from { transform: rotate(0deg) translate(-50%, -50%); }
    to { transform: rotate(360deg) translate(-50%, -50%); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.project-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 2rem;
    border-radius: 18px;
    border: 2px solid rgba(0, 212, 170, 0.2);
    background: linear-gradient(135deg, 
        rgba(25, 30, 50, 0.9) 0%,
        rgba(30, 35, 60, 0.95) 100%);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    outline: none;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.project-filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 170, 0.4),
        rgba(110, 69, 255, 0.4),
        rgba(0, 212, 170, 0.4)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-filter-btn .filter-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.15) 0%,
        rgba(110, 69, 255, 0.15) 100%);
    font-size: 1.4rem;
    color: var(--primary-color);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-filter-btn .filter-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.project-filter-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 25px 80px rgba(0, 212, 170, 0.4),
        0 0 60px rgba(0, 212, 170, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.2) 0%,
        rgba(30, 35, 60, 0.95) 100%);
    border-color: rgba(0, 255, 204, 0.6);
}

.project-filter-btn:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

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

.project-filter-btn:hover .filter-icon {
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.35) 0%,
        rgba(110, 69, 255, 0.35) 100%);
    color: #ffffff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 8px 30px rgba(0, 212, 170, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.project-filter-btn:hover .filter-icon::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.project-filter-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.3) 0%,
        rgba(110, 69, 255, 0.25) 50%,
        rgba(0, 212, 170, 0.3) 100%);
    color: #ffffff;
    box-shadow: 
        0 30px 100px rgba(0, 212, 170, 0.5),
        0 0 80px rgba(0, 212, 170, 0.4),
        inset 0 0 30px rgba(0, 212, 170, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 204, 0.8);
    transform: translateY(-6px) scale(1.08);
    animation: activeButtonPulse 2s ease-in-out infinite;
}

@keyframes activeButtonPulse {
    0%, 100% { 
        box-shadow: 
            0 30px 100px rgba(0, 212, 170, 0.5),
            0 0 80px rgba(0, 212, 170, 0.4),
            inset 0 0 30px rgba(0, 212, 170, 0.2);
    }
    50% { 
        box-shadow: 
            0 35px 120px rgba(0, 212, 170, 0.7),
            0 0 100px rgba(0, 212, 170, 0.6),
            inset 0 0 40px rgba(0, 212, 170, 0.3);
    }
}

.project-filter-btn[aria-pressed="true"]::before {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

.project-filter-btn[aria-pressed="true"] .filter-icon {
    background: linear-gradient(135deg, 
        rgba(0, 255, 204, 0.4) 0%,
        rgba(110, 69, 255, 0.4) 100%);
    color: #ffffff;
    transform: scale(1.2) rotate(0deg);
    box-shadow: 
        0 10px 40px rgba(0, 212, 170, 0.8),
        inset 0 0 20px rgba(0, 255, 204, 0.3);
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 40px rgba(0, 212, 170, 0.8),
            inset 0 0 20px rgba(0, 255, 204, 0.3);
    }
    50% { 
        box-shadow: 
            0 15px 60px rgba(0, 255, 204, 1),
            inset 0 0 30px rgba(0, 255, 204, 0.5);
    }
}

@media (max-width: 640px) {
    .project-filter-btn { 
        padding: 0.9rem 1.4rem; 
        font-size: 0.95rem;
        gap: 0.75rem;
    }
    .project-filter-btn .filter-icon { 
        width: 40px; 
        height: 40px; 
        font-size: 1.1rem; 
    }
    .project-filters { 
        gap: 0.8rem; 
        padding: 1.2rem 1rem;
        margin: 2rem auto 2.5rem auto;
    }
}
.project-card.hidden { display:none !important; opacity:0; transform: scale(0.995); }

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body:not(.dark-mode) .project-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

body:not(.dark-mode) .project-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 212, 170, 0.4);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 25px 60px var(--shadow);
    border-color: var(--primary-color);
}

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

.project-image img {
    width: 100%;
    max-width: 100%;
    height: 240px;
    max-height: 240px;
    object-fit: cover;
    object-position: center center;
    transition: all 0.3s ease;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(135deg, rgba(20, 22, 40, 0.95) 0%, rgba(30, 32, 55, 0.98) 100%);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

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

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

.project-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.project-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.project-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Behance Button Styling */
.btn-behance {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    padding: 10px 20px;
    background: linear-gradient(135deg, #1769ff, #4d84ff);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.2);
    border: none;
}

.btn-behance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.35);
    background: linear-gradient(135deg, #0052e0, #3d6fff);
}

.btn-behance i {
    font-size: 1.1rem;
}

/* Light mode override for Behance button */
body:not(.dark-mode) .btn-behance {
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.25);
}

body:not(.dark-mode) .btn-behance:hover {
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.4);
}

.skills {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(0, 212, 170, 0.03) 25%,
        rgba(110, 69, 255, 0.03) 50%,
        rgba(0, 212, 170, 0.03) 75%,
        transparent 100%);
    animation: skillsGlow 8s linear infinite;
    pointer-events: none;
}

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

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

.skills-category {
    position: relative;
}

.skills-category::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.1) 0%,
        rgba(110, 69, 255, 0.1) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skills-category:hover::before {
    opacity: 1;
}

.skills-category h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skills-bubbles { 
    display: flex; 
    flex-wrap: wrap; 
    gap: var(--spacing-md); 
    justify-content: center;
    padding: var(--spacing-lg) 0;
    max-width: 800px;
    margin: 0 auto;
}

.skill-bubble {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(0,255,204,0.04));
    border: 2px solid rgba(0,212,170,0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,212,170,0.1);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.skill-bubble::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.6s ease;
}

.skill-bubble:hover::before {
    left: 100%;
}

.skill-bubble:hover { 
    transform: translateY(-8px) scale(1.05); 
    box-shadow: 0 20px 40px rgba(0,212,170,0.2), 0 0 0 1px rgba(0,212,170,0.3);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,255,204,0.08));
}

.skill-bubble:focus { 
    outline: none; 
    box-shadow: 0 0 0 4px rgba(0,212,170,0.3);
}

.skill-bubble .bubble-icon { 
    font-size: var(--font-size-lg); 
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-bubble:hover .bubble-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color);
}

.skill-bubble.active-bubble { 
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); 
    color: white; 
    border-color: transparent;
    transform: translateY(-4px) scale(1.08);
}

.skill-bubble.active-bubble .bubble-icon { 
    color: white;
    transform: scale(1.1);
}

#behanceLink { 
    margin-top: 2rem !important; 
    margin-bottom: 1rem !important; 
    display: inline-block !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,212,170,0.15) !important;
    transition: all 0.3s ease !important;
}

#behanceLink:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0,212,170,0.25) !important;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 212, 170, 0.25),
        0 0 0 1px rgba(0, 212, 170, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 170, 0.4);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.1) 0%,
        rgba(110, 69, 255, 0.1) 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.skill-item:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-color);
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.2) 0%,
        rgba(110, 69, 255, 0.2) 100%);
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.skill-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.skill-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.skill-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.skill-level {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 44px;
    text-align: right;
}

.skill-progress {
    flex: 1 1 auto;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-item {
    gap: 1rem;
    padding: 1.25rem 1.6rem;
}

@media (max-width: 768px) {
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .skill-level {
        min-width: 36px;
    }
}

@keyframes skillSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes skillPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 212, 170, 0);
    }
}

.skill-item {
    animation: skillSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.skill-item:nth-child(2) { animation-delay: 0.1s; }
.skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-item:nth-child(4) { animation-delay: 0.3s; }
.skill-item:nth-child(5) { animation-delay: 0.4s; }

.skill-item:hover .skill-icon {
    animation: skillPulse 2s infinite;
}

body:not(.dark-mode) .skill-item {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.dark-mode) .skill-item:hover {
    box-shadow: 
        0 20px 40px rgba(0, 212, 170, 0.15),
        0 0 0 1px rgba(0, 212, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body:not(.dark-mode) .skill-icon {
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.05) 0%,
        rgba(110, 69, 255, 0.05) 100%);
    border-color: rgba(0, 212, 170, 0.1);
}

body:not(.dark-mode) .skill-item:hover .skill-icon {
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.1) 0%,
        rgba(110, 69, 255, 0.1) 100%);
    border-color: rgba(0, 212, 170, 0.3);
}

/* C Language Icon - Light Mode */
body:not(.dark-mode) .c-language-icon {
    background: linear-gradient(135deg, rgba(103, 128, 249, 0.12), rgba(88, 112, 231, 0.06));
    box-shadow: 0 8px 30px rgba(103, 128, 249, 0.08);
    color: #5870e7;
    border: 2px solid rgba(103, 128, 249, 0.15);
}

body:not(.dark-mode) .skill-box:hover .c-language-icon,
body:not(.dark-mode) .skill-box:focus .c-language-icon {
    background: linear-gradient(135deg, rgba(103, 128, 249, 0.2), rgba(88, 112, 231, 0.12));
    box-shadow: 0 12px 40px rgba(103, 128, 249, 0.18);
    color: #4059d9;
    border-color: rgba(103, 128, 249, 0.3);
}

@media (max-width: 1024px) {
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .skills-category h3 {
        font-size: 1.6rem;
    }
    
    .skill-item {
        padding: 1.3rem 1.8rem;
    }
}

@media (max-width: 768px) {
    .skills-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .skills-category h3 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .skill-item {
        padding: 1.2rem 1.5rem;
        gap: 1.2rem;
    }
    
    .skill-icon {
        font-size: 2.2rem;
        width: 55px;
        height: 55px;
    }
    
    .skill-name {
        font-size: 1rem;
    }
}

.voice-over-audio-container {
    margin-top: 0;
    padding: 2rem;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-body.voice-over-layout .modal-image-viewer {
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 0 2rem;
}

.modal-body.voice-over-layout .modal-image-viewer img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.custom-audio-player {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.custom-audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 170, 0.1), 
        transparent);
    transition: left 0.8s ease;
}

.custom-audio-player:hover::before {
    left: 100%;
}

.audio-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.audio-info {
    text-align: center;
}

.audio-info h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.5rem;
}

.audio-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.audio-meta span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(0, 212, 170, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

.progress-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.time-display {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 100px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.volume-btn:hover {
    color: var(--primary-color);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.audio-waveform {
    margin: 1rem 0;
    height: 60px;
    background: linear-gradient(90deg, 
        rgba(0, 212, 170, 0.1) 0%,
        rgba(110, 69, 255, 0.1) 50%,
        rgba(0, 212, 170, 0.1) 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.waveform-bars {
    display: flex;
    align-items: end;
    height: 100%;
    padding: 10px;
    gap: 2px;
}

.waveform-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 1px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.waveform-bar.active {
    opacity: 1;
    transform: scaleY(1.2);
}

body:not(.dark-mode) .custom-audio-player {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 249, 250, 0.9) 100%);
    border: 2px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body:not(.dark-mode) .audio-meta span {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.25);
    color: #1a1a1a;
    font-weight: 600;
}

body:not(.dark-mode) .progress-container {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .progress-bar::after {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.4);
}

body:not(.dark-mode) .volume-slider {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .time-display {
    color: #666666;
    font-weight: 600;
}

body:not(.dark-mode) .volume-btn {
    color: #666666;
}

body:not(.dark-mode) .volume-btn:hover {
    color: var(--primary-color);
}

body:not(.dark-mode) .audio-waveform {
    background: linear-gradient(90deg, 
        rgba(0, 212, 170, 0.05) 0%,
        rgba(110, 69, 255, 0.05) 50%,
        rgba(0, 212, 170, 0.05) 100%);
}

@media (max-width: 768px) {
    .custom-audio-player {
        padding: 1.5rem;
    }
    
    .audio-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .audio-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-container {
        order: -1;
        width: 100%;
    }
    
    .volume-control {
        justify-content: center;
    }
}

.certificates {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

body:not(.dark-mode) .certificates {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

body:not(.dark-mode) .certificates::before {
    background: radial-gradient(circle at 30% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
}

.certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 80%, var(--glow-color) 0%, transparent 50%);
    z-index: 0;
}

.certificates-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
    padding: 1rem 0;
}

.certificates-slider {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    border-radius: 20px;
    background: transparent; 
}

.certificate-slide {
    position: relative;
    flex: 0 0 calc(33.333% - 0.83rem);
    min-width: 280px;
    max-width: 380px;
    height: auto;
    opacity: 1;
    transform: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    scroll-snap-align: center;
    display: block;
}

.certificate-slide:hover:not(:has(.view-certificate-btn:hover)) {
    transform: translateY(-6px);
}

.certificate-slide.active {
    
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}

.certificate-slide.prev {
    opacity: 0.95;
}

.certificate-glass-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 24px;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    position: relative;
    overflow: visible; 
    box-shadow: 0 30px 60px rgba(0, 212, 170, 0.1), 0 0 0 1px rgba(0, 212, 170, 0.1);
}

body:not(.dark-mode) .certificate-glass-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.certificate-glass-card::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 2s ease;
    pointer-events: none;
}

.certificate-glass-card:hover:not(:has(.view-certificate-btn:hover))::before {
    left: 100%;
}

.certificate-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 30px var(--glow-color);
     
    position: relative;
    z-index: 2;
    overflow: visible;
}

.certificate-content {
    flex: 1;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certificate-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.certificate-issuer {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.certificate-year {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.certificate-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.certificate-skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.view-certificate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
    position: relative;
    z-index: 2;
    will-change: transform;
}

.view-certificate-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.view-certificate-btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

.view-certificate-btn i {
    font-size: 1rem;
    pointer-events: none;
}

.view-certificate-btn span {
    pointer-events: none;
}

.certificate-sub-certificates {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.sub-cert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.sub-cert i {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.certificate-modal {
    display: none;
    position: fixed;
    z-index: 10120;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                backdrop-filter 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.certificate-modal.active {
    opacity: 1;
    animation: certificateModalFadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.certificate-modal.closing {
    animation: certificateModalFadeOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes certificateModalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

@keyframes certificateModalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.certificate-modal-content {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    max-height: 900px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
    z-index: 10121; 
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 212, 170, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.certificate-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10123;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.9), rgba(255, 0, 0, 0.9));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.certificate-close:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 1), rgba(200, 0, 0, 1));
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
}

.certificate-close:active {
    transform: scale(0.95) rotate(90deg);
}

.certificate-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 212, 170, 0.05), transparent);
    cursor: grab;
}

.certificate-image-container:active {
    cursor: grabbing;
}

.certificate-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Certificate Modal Controls */
.certificate-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10122;
    display: flex;
    gap: 15px;
    align-items: center;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.certificate-control-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.certificate-control-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.certificate-control-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.certificate-control-divider {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.certificate-zoom-level {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Certificate Loading Animation */
.certificate-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 170, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-image-container.loading::before {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.certificate-image-container img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certificate-image-container img.loaded {
    opacity: 1;
}

/* Certificate Hints */
.certificate-hints {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10122;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(20px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 250px;
    opacity: 0;
    animation: fadeInHints 0.5s ease 1s forwards;
    pointer-events: none;
}

@keyframes fadeInHints {
    to {
        opacity: 1;
    }
}

.certificate-hints h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-hints ul {
    margin: 0;
    padding: 0 0 0 5px;
    list-style: none;
}

.certificate-hints li {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-hints li i {
    color: var(--accent-color);
    font-size: 0.8rem;
    width: 16px;
}

.certificate-hints kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .certificate-modal-content {
        width: 98vw;
        height: 98vh;
        border-radius: 16px;
    }
    
    .certificate-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .certificate-controls {
        bottom: 15px;
        padding: 12px 20px;
        gap: 10px;
    }
    
    .certificate-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .certificate-zoom-level {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .certificate-hints {
        display: none;
    }
}

.slider-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--glow-color);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
.mini-voice-player {
    position: fixed;
    right: 20px;
    bottom: 22px;
    width: 320px;
    max-width: calc(100% - 44px);
    background: linear-gradient(180deg, rgba(10,10,10,0.9), rgba(20,20,20,0.88));
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 10px 12px;
    display: none; 
    align-items: center;
    gap: 12px;
    z-index: 11000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.mini-player-left { display:flex; align-items:center; gap:10px; }
.mini-play-btn {
    width:48px; height:48px; border-radius:10px; border:none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color:#fff; display:grid; place-items:center; cursor:pointer;
}

.mini-player-info { flex:1; min-width:0; }
.mini-title { color: var(--text-primary); font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mini-sub { color: var(--text-secondary); font-size:12px; margin-top:3px; }

.mini-visual { width:72px; display:flex; align-items:center; gap:4px; justify-content:center; }
.mini-bars { display:flex; align-items:end; gap:4px; height:28px; }
.mini-bars span { width:4px; background:linear-gradient(180deg,var(--primary-color),var(--accent-color)); display:block; border-radius:2px; animation:mini-wave 900ms infinite; }
.mini-bars span:nth-child(1){ animation-delay:0ms } .mini-bars span:nth-child(2){ animation-delay:140ms } .mini-bars span:nth-child(3){ animation-delay:280ms } .mini-bars span:nth-child(4){ animation-delay:420ms }

@keyframes mini-wave { 0%{height:6px}50%{height:22px}100%{height:6px} }

.mini-close { background:none;border:none;color:var(--text-primary);font-size:18px;opacity:0.8;cursor:pointer;margin-left:6px }

@media (max-width:480px){ .mini-voice-player{ right:12px; left:12px; width:auto; bottom:14px; } .mini-visual{display:none} }
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .certificate-glass-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .certificate-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .certificate-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .certificates-slider {
        height: 400px;
    }
    
    .slider-navigation {
        gap: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.testimonials {
    padding: var(--section-padding);

}

.certificates-slider {
    display: flex !important;
    gap: 1rem !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    
    scroll-snap-type: none !important;
    padding: 1rem !important;
    background: transparent !important;
    -webkit-overflow-scrolling: touch !important;
    
    height: 560px !important;

    
    -ms-overflow-style: none !important; 
    scrollbar-width: none !important; 
}

.certificates-slider::-webkit-scrollbar { display: none !important; }

.certificate-slide {
    flex: 0 0 320px !important; 
    min-width: 280px !important;
    max-width: 360px !important;
    height: 100% !important; 
    scroll-snap-align: center !important;
}

.certificate-glass-card {
    padding: 1rem !important;
    gap: 1rem !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 10px 30px var(--shadow) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certificate-icon { width: 72px !important; height: 72px !important; font-size: 2rem !important; }
.certificate-content { display:flex; flex-direction:column; gap:0.5rem; flex:1 1 auto; }
.certificate-content h3 { font-size: 1.2rem !important; margin:0; }
.certificate-description { font-size: 0.95rem !important; margin-bottom: 0.6rem !important; overflow:auto; }
.certificate-content { justify-content: space-between; }
.certificate-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.view-certificate-btn { margin-top: 0; align-self: flex-start; }

.slider-navigation, .slider-dots, .slider-btn, .dot, .progress-container { display: none !important; }

.cert-nav { display: inline-grid !important; }

@media (max-width: 1100px) {
    .certificate-slide { flex: 0 0 48% !important; min-width: 240px !important; max-width: 360px !important; }
    
    .certificates-slider { height: 520px !important; }
}

.certificates { overflow: visible !important; }
.certificates-slider-container {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important; 
    padding: 0 2rem !important;
    box-sizing: border-box !important;
}
.certificates-slider {
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1.25rem !important;
    scroll-padding-left: 2rem !important;
    scroll-padding-right: 2rem !important;
}

@media (max-width: 800px) {
    .certificates-slider-container { padding: 0 1rem !important; }
    .certificates-slider { scroll-padding-left: 1rem !important; scroll-padding-right: 1rem !important; }
}
@media (max-width: 800px) {
    .certificate-slide { flex: 0 0 56% !important; min-width: 220px !important; }
    
    .certificates-slider { height: 640px !important; }
}
@media (max-width: 640px) {
    .certificate-slide { flex: 0 0 88% !important; min-width: 200px !important; }
    .cert-nav { display: none !important; }
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

body:not(.dark-mode) .contact {
    background: #ffffff;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxxl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0,212,170,0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,212,170,0.1);
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: var(--transition);
    box-sizing: border-box;
}

body:not(.dark-mode) .form-group input,
body:not(.dark-mode) .form-group textarea {
    background: #ffffff;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

body:not(.dark-mode) .form-group input:focus,
body:not(.dark-mode) .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--glow-color);
}

.form-group label {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    font-size: var(--font-size-base);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-card);
    padding: 0 5px;
    color: var(--primary-color);
}

.footer {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 350px;
}

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

.footer-social .social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column ul li {
    transition: transform 0.3s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.contact-info li i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-links-inline {
    display: flex;
    gap: 2rem;
}

.footer-links-inline a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                backdrop-filter 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    animation: modalFadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.closing {
    animation: modalFadeOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.modal-content {
    
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 32px;
    
    max-width: 1150px;
    width: 90vw;
    max-height: 92vh;
    margin: 3vh auto;
    box-shadow: 0 16px 48px 0 rgba(0,0,0,0.32), 0 2px 8px 0 rgba(80,80,120,0.10);
    border: 1.5px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalContentSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}

.modal.closing .modal-content {
    animation: modalContentSlideOut 0.3s cubic-bezier(0.6, 0.04, 0.98, 0.34) forwards;
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalContentSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: rgba(0,0,0,0.06);
    border: none;
    font-size: 2.2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
    background: #ff4b6e;
    color: #fff;
}
.modal-body {
    display: flex;
    flex-direction: row;
    gap: 0;
    min-height: 520px;
    max-height: 88vh;
    overflow: auto; 
}

body.dark-mode .modal {
    background: rgba(0,0,0,0.8);
}

body.dark-mode .modal-content {
    background: var(--bg-card, #1e1e1e);
    color: var(--text-primary, #ffffff);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    border: 1px solid var(--border-color);
}

body.dark-mode .modal-close {
    background: var(--bg-card);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-color);
}

body.dark-mode .modal-image-viewer {
    background: var(--bg-secondary, #1a1a1a);
    border-right: 1px solid var(--border-color);
}

body.dark-mode .modal-project-details {
    background: transparent;
    color: var(--text-primary, #ffffff);
}

body.dark-mode .certificate-modal-content,
body.dark-mode .certificate-modal {
    background: var(--bg-card, #1e1e1e);
    color: var(--text-primary, #ffffff);
}

body.dark-mode .voiceover-card,
body.dark-mode .voiceover-viewer {
    background: var(--bg-card);
    color: var(--text-primary, #ffffff);
}

body.dark-mode .voiceover-card .vv-description,
body.dark-mode .voiceover-card .vv-meta-item,
body.dark-mode .voiceover-card .vv-title {
    color: var(--text-primary, #ffffff);
}

body.dark-mode .modal a,
body.dark-mode .modal p,
body.dark-mode .modal h2,
body.dark-mode .modal h3,
body.dark-mode .modal li {
    color: var(--text-primary, #ffffff);
}

body.dark-mode .modal-content.presentation-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary, #ffffff);
    box-shadow: 0 30px 90px rgba(0,0,0,0.75);
}

body.dark-mode .presentation-viewer {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

body:not(.dark-mode) .modal,
body:not(.dark-mode) .modal-content,
body:not(.dark-mode) .modal p,
body:not(.dark-mode) .modal h1,
body:not(.dark-mode) .modal h2,
body:not(.dark-mode) .modal h3,
body:not(.dark-mode) .modal li,
body:not(.dark-mode) .modal a,
body:not(.dark-mode) .modal .modal-project-details,
body:not(.dark-mode) .modal .modal-image-viewer,
body:not(.dark-mode) .presentation-viewer,
body:not(.dark-mode) .presentation-project-details,
body:not(.dark-mode) .voiceover-card,
body:not(.dark-mode) .voiceover-viewer {
    background: var(--bg-card);
}

/* Light Mode - تحسين تباين النصوص والخلفيات */
body:not(.dark-mode) .modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

body:not(.dark-mode) .modal-project-details {
    background: #ffffff;
}

body:not(.dark-mode) .modal-image-viewer {
    background: #f8f9fa;
    border-right: 1px solid rgba(0,0,0,0.06);
}

/* Light mode: نصوص واضحة في voiceover */
body:not(.dark-mode) .voiceover-card .vv-title {
    color: #1a1a1a !important;
}

body:not(.dark-mode) .voiceover-card .vv-description {
    color: #2c3e50 !important;
}

body:not(.dark-mode) .voiceover-card .vv-meta-item {
    color: #34495e !important;
}

body:not(.dark-mode) .modal-close,
body:not(.dark-mode) .modal-close-compact,
body:not(.dark-mode) .certificate-close {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

body.dark-mode .presentation-project-details {
    background: var(--bg-card);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-color);
}

body.dark-mode .presentation-iframe-container,
body.dark-mode .presentation-embed iframe {
    background: transparent;
}

body.dark-mode .modal-body.voice-over-layout .modal-image-viewer {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .modal-body.voice-over-layout .modal-content-section {
    background: var(--bg-card);
    color: var(--text-primary, #ffffff);
}

body.dark-mode .project-actions .btn,
body.dark-mode .modal .btn {
    color: var(--text-primary);
}

body.dark-mode .certificate-modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(0, 212, 170, 0.4);
    color: var(--text-primary, #ffffff);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(0, 212, 170, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .certificate-controls {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(0, 212, 170, 0.4);
}

body:not(.dark-mode) .certificate-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.95));
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 212, 170, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.dark-mode) .certificate-controls {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .certificate-zoom-level {
    color: #1a1a1a;
}

/* Dark Mode - Modal Image Controls */
body.dark-mode .modal-image-controls-advanced {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(0, 212, 170, 0.4);
}

body.dark-mode .modal-image-hints {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(0, 212, 170, 0.4);
}

/* Light Mode - Modal Image Controls */
body:not(.dark-mode) .modal-image-controls-advanced {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .modal-image-hints {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .modal-zoom-level {
    color: #1a1a1a;
}

body:not(.dark-mode) .modal-image-hints {
    color: #1a1a1a;
}

body:not(.dark-mode) .modal-image-hints h4 {
    color: var(--primary-color);
}

/* Slider Light Mode Styles */
body:not(.dark-mode) .modal-slider-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

body:not(.dark-mode) .modal-slider-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.5);
    border-color: rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .modal-slider-indicators {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-color: rgba(0, 212, 170, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .slider-indicator {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .slider-indicator:hover {
    background: rgba(0, 0, 0, 0.35);
}

body:not(.dark-mode) .slider-indicator.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: rgba(255, 255, 255, 0.4);
}

body:not(.dark-mode) .modal-slider-counter {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    color: #1a1a1a;
    border-color: rgba(0, 212, 170, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


.modal-image-viewer {
    background: var(--bg-secondary);
    
    display: flex;
    flex-direction: column;
    position: relative;
    color: var(--text-primary);
}
#behanceLink {
    margin-bottom: 2.5rem !important;
    margin-top: 2rem !important;
    display: inline-block;
    border: none;
    box-shadow: 0 2px 12px rgba(0,212,170,0.08);
}

.image-viewer-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-image-viewer {
    
    flex: 0 0 58%;
    max-width: 65%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    overflow: visible; 
}

.image-display-area {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 16px; 
    overflow: hidden; 
    box-sizing: border-box;
}

.image-display-area img, #modalImage {
    display: block;
    box-sizing: border-box;
    width: 100px; 
    height: auto;
    max-width: 100%;
    max-height: 40vh;
    object-fit: cover; 
    border-radius: 12px;
    margin: 0 auto; 
}

.modal-project-details {
    
    flex: 1 1 52%;
    max-width: 62%;
    padding: var(--spacing-xxl, 36px);
}

@media (max-width: 980px) {
    .modal-image-viewer { flex: 0 0 100%; max-width: 100%; min-width: auto; }
    .modal-project-details { flex: 0 0 100%; max-width: 100%; }
    .image-display-area { justify-content: center; padding-left: 12px; }
    .image-display-area img, #modalImage { width: 80px; height: auto; max-height: 40vh; object-fit: cover; margin: 0 8px; }
}

.image-viewer-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    border: 1px solid var(--border-color);
}

body.dark-mode .image-viewer-controls {
    background: var(--bg-card);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.viewer-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.viewer-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

body.dark-mode .viewer-btn {
    color: #ccc;
}

body.dark-mode .viewer-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.image-display-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    overflow: auto;
    min-height: 400px;
    position: relative; 
}

.image-display-area::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    height: 70%;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(0,212,170,0.18), rgba(110,69,255,0.06) 28%, transparent 55%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
}

.image-display-area::after {
    content: '';
    position: absolute;
    
    left: 36%;
    top: 32%;
    transform: translate(-50%, -50%) scale(1);
    width: 40%;
    height: 40%;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    
    background: radial-gradient(circle at 35% 30%, rgba(0,212,170,0.85) 0%, rgba(110,69,255,0.45) 30%, rgba(255,120,180,0.12) 60%, transparent 72%);
    filter: blur(28px) saturate(1.15);
    mix-blend-mode: screen; 
    opacity: 0.92;
    animation: orbPulse 4200ms ease-in-out infinite;
}

@keyframes orbPulse {
    0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.95; }
    40% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.72; }
    70% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.82; }
    100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.95; }
}

.image-display-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    position: relative;
    z-index: 3; 
    
    transform: scale(1.03);
    transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms ease;
    box-shadow: 0 8px 40px rgba(110,69,255,0.14), 0 22px 80px rgba(0,212,170,0.06), 0 0 60px rgba(0,212,170,0.04);
    display: block;
}

.image-display-area img:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 60px rgba(110,69,255,0.18), 0 36px 120px rgba(0,212,170,0.10), 0 0 90px rgba(0,212,170,0.06);
}

.modal-project-details {
    padding: var(--spacing-xl);
    background: var(--bg-card);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: 80vh;
}

.project-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.3;
}

.project-description h3,
.project-goals h3,
.project-tools h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.125rem; 
    width: 100%;
}

/* Light Mode - تحسين وضوح النصوص */
body:not(.dark-mode) .project-description h3,
body:not(.dark-mode) .project-goals h3,
body:not(.dark-mode) .project-tools h3 {
    color: #1a1a1a;
}

body:not(.dark-mode) .project-description p {
    color: #34495e;
}

body:not(.dark-mode) .project-header h2 {
    color: #0a0a0a;
}

.ui-project-details {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-md) + 0.5rem); 
}

.project-tools {
    margin-top: 0.6rem; 
}

.download-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,212,170,0.12), 0 4px 18px rgba(110,69,255,0.06);
}

.download-audio-btn i { font-size: 1.05rem; }

.download-audio-btn.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #031018;
}

.download-audio-btn:focus,
.download-audio-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(0,212,170,0.18), 0 8px 28px rgba(110,69,255,0.08);
}

.vv-actions {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 8px;           
    width: 340px;
    height: 64px;
}

@media (max-width: 640px) {
    
    .certificates-slider { height: auto !important; }
    .certificate-slide { flex: 0 0 88% !important; min-width: 200px !important; height: auto !important; }
    .certificate-glass-card { height: auto !important; }
    .certificate-description { overflow: visible; }
    .cert-nav { display: none !important; }
}
.project-goals ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-goals li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

.project-goals li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Light Mode - تحسين وضوح قائمة الأهداف */
body:not(.dark-mode) .project-goals li {
    color: #2c3e50;
}

body:not(.dark-mode) .project-goals li::before {
    color: #1769ff;
}

.tools-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tools-grid .tool-tag {
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

.tools-grid .tool-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body:not(.dark-mode) .tools-grid .tool-tag {
    background: #e8f0fe;
    color: #1a1a1a;
    border: 1px solid rgba(23, 105, 255, 0.15);
    font-weight: 600;
}

body:not(.dark-mode) .tools-grid .tool-tag:hover {
    background: #d2e3fc;
    border-color: rgba(23, 105, 255, 0.3);
}

.project-actions {
    display: flex;
    gap: 20px;
    margin-top: 2rem; 
    padding: 1.5rem;
    justify-content: center;
    align-items: center;
}

.project-actions .btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1769ff, #4d84ff);
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.3);
}

.project-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(23, 105, 255, 0.4);
}

.presentation-tools { margin-top: 0.8rem; }
.presentation-tools .tools-grid { margin-bottom: 0.8rem; }
.presentation-actions { display:flex; justify-content:center; gap:16px; margin-top:1rem; }

.presentation-viewer { background: transparent; }
.presentation-iframe-container { padding: 0.6rem 0; }
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.presentation-embed {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    min-height: 320px;
}
.presentation-thumbs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.presentation-thumbs img, .presentation-thumbs .thumb-item {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
}
.presentation-thumbs .thumb-item {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
}

.presentation-divider-handle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 8px;
}

@media (max-width: 900px) {
    .presentation-grid { grid-template-columns: 1fr; }
    .presentation-thumbs { flex-direction: row; overflow-x: auto; gap: 10px; }
    .presentation-thumbs .thumb-item { min-width: 180px; height: 120px; }
}

.presentation-side { display:flex; flex-direction:column; gap:18px; align-items:stretch; }
.presentation-side-content { background: transparent; padding: 8px 6px; }

.presentation-side .modal-project-details { margin-top: 0; }

.presentation-area { padding: 18px 8px; background: transparent; }
.presentation-top { display:flex; gap:24px; align-items:flex-start; }
.presentation-main { flex:1; background:var(--bg-card); border-radius:12px; padding:12px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); min-height:320px; max-height:70vh; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.presentation-side { width:320px; flex-shrink:0; max-height:70vh; overflow:auto; }
.presentation-thumbs { display:flex; flex-direction:column; gap:12px; }
.thumb-btn { display:block; padding:0; border:0; background:transparent; cursor:pointer; border-radius:8px; overflow:hidden; }
.thumb-btn img { display:block; width:100%; height:120px; object-fit:cover; border-radius:8px; transition: transform 180ms ease, box-shadow 180ms ease; }
.thumb-btn:focus img, .thumb-btn:hover img { transform: scale(1.02); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.thumb-btn.active img { outline: 3px solid var(--primary-color); transform: scale(1.03); }
.presentation-side-actions { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.presentation-bottom { margin-top:18px; }
.presentation-title { font-size: 1.6rem; margin: 6px 0; }
.presentation-overview-text { color: var(--text-secondary); margin-bottom: 12px; }

.presentation-side-content .presentation-title { font-size:1.5rem; margin:0 0 8px 0; }
.presentation-side-content .presentation-overview-text { color:var(--text-secondary); margin:0 0 12px 0; line-height:1.6; }
.presentation-side-content .side-highlights { margin-top:8px; }
.presentation-side-content .side-highlights h3 { margin-bottom:8px; font-size:1rem; }
.presentation-side-content .side-highlights ul { list-style: disc; padding-left: 18px; color: var(--text-secondary); }

.presentation-side-content { display:flex; flex-direction:column; gap:12px; }
.presentation-side-content .presentation-overview-text { overflow:auto; max-height:32vh; }

.presentation-side .presentation-side-actions { display:flex; gap:10px; justify-content:center; margin-top:16px; }
.presentation-side .presentation-side-actions .btn { width:100%; text-align:center; }

@media (max-width: 900px) {
    .presentation-top { flex-direction:column; }
    .presentation-side { width:100%; order:2; }
    .thumb-btn img { height:90px; }
}

.project-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #1769ff, #4d84ff);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.4);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.project-actions .btn-primary::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;
}

.project-actions .btn-primary:hover::before {
    left: 100%;
}

.project-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056e6, #2968ff);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(23, 105, 255, 0.5);
    color: white;
    text-decoration: none;
}

.project-actions .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(23, 105, 255, 0.4);
}

.project-actions .btn-primary i {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.project-actions .btn-primary:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Behance Button in Modal */
.btn-behance-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #1769ff, #4d84ff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.btn-behance-modal::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-behance-modal:hover::before {
    left: 100%;
}

.btn-behance-modal:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(23, 105, 255, 0.5);
    background: linear-gradient(135deg, #0052e0, #3d6fff);
    color: #ffffff;
    text-decoration: none;
}

.btn-behance-modal:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(23, 105, 255, 0.4);
}

.btn-behance-modal i {
    font-size: 1.4em;
    transition: transform 0.3s ease;
}

.btn-behance-modal:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Light mode button styling for project actions */
body:not(.dark-mode) .project-actions .btn-primary,
body:not(.dark-mode) #downloadPresentationBtn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .project-actions .btn-primary:hover,
body:not(.dark-mode) #downloadPresentationBtn:hover {
    background: linear-gradient(135deg, #00b894, #00e6b8) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.5) !important;
    color: #ffffff !important;
}

body:not(.dark-mode) .project-actions .btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1769ff, #4d84ff) !important;
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.3) !important;
}

body:not(.dark-mode) .project-actions .btn:hover {
    box-shadow: 0 10px 30px rgba(23, 105, 255, 0.4) !important;
}

body:not(.dark-mode) .btn-behance-modal {
    background: linear-gradient(135deg, #1769ff, #4d84ff) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.4) !important;
    border: none !important;
}

body:not(.dark-mode) .btn-behance-modal:hover {
    background: linear-gradient(135deg, #0052e0, #3d6fff) !important;
    box-shadow: 0 10px 30px rgba(23, 105, 255, 0.5) !important;
    color: #ffffff !important;
}

body:not(.dark-mode) .btn-github-modal {
    background: linear-gradient(135deg, #24292e, #3b3f45) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4) !important;
    border: none !important;
}

body:not(.dark-mode) .btn-github-modal:hover {
    background: linear-gradient(135deg, #1a1d21, #2d3136) !important;
    box-shadow: 0 10px 30px rgba(36, 41, 46, 0.5) !important;
    color: #ffffff !important;
}

/* GitHub Button in Modal */
.btn-github-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #24292e, #444d56);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.btn-github-modal::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-github-modal:hover::before {
    left: 100%;
}

.btn-github-modal:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(36, 41, 46, 0.5);
    background: linear-gradient(135deg, #1a1f23, #2f3640);
    color: #ffffff;
    text-decoration: none;
}

.btn-github-modal:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(36, 41, 46, 0.4);
}

.btn-github-modal i {
    font-size: 1.4em;
    transition: transform 0.3s ease;
}

.btn-github-modal:hover i {
    transform: scale(1.1) rotate(5deg);
}

.modal-content.presentation-modal {
    max-width: 1400px; 
    width: 95vw;
    height: 90vh;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px var(--shadow);
    padding: 24px;
}

.modal-body.presentation-layout {
    
    grid-template-columns: 700px 1fr; 
    gap: 64px; 
    height: 100%;
    background: transparent;
}

.modal-body.presentation-layout,
.modal-body.presentation-layout > * {
    min-height: 0; 
}

.modal-body.voice-over-layout {
    display: flex;
    flex-direction: column;
    height: 80vh;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.modal-body.voice-over-layout .modal-image-viewer {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.modal-body.voice-over-layout .modal-content-section {
    flex: 0 0 auto;
    height: auto;
    min-height: 200px;
    background: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
}

.presentation-viewer {
    
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-secondary);
    backdrop-filter: blur(8px);
    border-right: none;
    border-radius: 12px;
    color: var(--text-primary);
    box-sizing: border-box;
    min-height: 0;
}

.presentation-header {
    margin-bottom: 18px;
}

.presentation-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.presentation-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.presentation-iframe-container {
    
    flex: 1;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none; 
    border: none;      
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.presentation-embed { width: 100%; height: 100%; display:flex; align-items:center; justify-content:center; }

.presentation-embed iframe {
    
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
}

.presentation-embed {
    width: 100%;
    height: 100%;
    min-height: 420px; 
    display: block;
}

.presentation-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.presentation-project-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    
    padding: 28px; 
    background: transparent; 
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    overflow: visible; 
    max-height: none;
    padding-bottom: 32px;
    position: relative;
    box-sizing: border-box;
    color: var(--text-primary);
}

.modal-body.presentation-layout .presentation-project-details,
.modal-body.presentation-layout .modal-project-details {
    padding-left: 36px; 
}

.presentation-overview h3,
.presentation-highlights h3 {
    
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 6px;
    text-transform: none;
    letter-spacing: 0.2px;
}

.overview-text {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    white-space: pre-wrap; 
    hyphens: auto;
}

.highlights-list { list-style: none; padding: 0; margin: 0; }

.highlights-list li {
    padding: 10px 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 28px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.highlights-list li:before {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
}

.presentation-actions {
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid transparent; 
    position: static; 
    background: transparent;
    padding-bottom: 12px;
    z-index: 1;
}

.presentation-actions .btn {
    width: 100%;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.28s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 10px 36px rgba(0, 212, 170, 0.25);
}

.presentation-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.38);
    color: white;
    text-decoration: none;
}

.presentation-actions .btn i { font-size: 1.1em; }

@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        height: 90vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .modal-body.presentation-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1.8fr 1fr;
    }
    
    .presentation-viewer {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 15px 15px 0 0;
        padding: 20px;
    }
    
    .presentation-project-details {
        border-radius: 0 0 15px 15px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        gap: 15px;
    }
    
    .presentation-title {
        font-size: 1.4rem;
    }
    
    .presentation-overview h3,
    .presentation-highlights h3 {
        font-size: 1rem;
    }
    
    .modal-project-details {
        padding: 20px;
        gap: 20px;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .image-viewer-controls {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 10px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98vw;
        max-height: 95vh;
        border-radius: 8px;
        margin: 10px auto;
    }
    
    .modal-content.presentation-modal {
        width: 98vw;
        max-height: 95vh;
    }
    
    .presentation-viewer {
        padding: 15px;
    }
    
    .presentation-project-details {
        padding: 15px;
        gap: 12px;
    }
    
    .presentation-title {
        font-size: 1.2rem;
    }
    
    .presentation-description {
        font-size: 0.8rem;
    }
    
    .presentation-overview h3,
    .presentation-highlights h3 {
        font-size: 0.9rem;
    }
    
    .overview-text,
    .highlights-list li {
        font-size: 0.75rem;
    }
    
    .modal-project-details {
        padding: 15px;
        gap: 16px;
    }
    
    .project-header h2 {
        font-size: 1.5rem;
    }
    
    .image-viewer-controls {
        gap: 4px;
        padding: 6px;
    }
    
    .viewer-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-menu {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    body.rtl .nav-menu {
        left: auto;
        right: -100%;
    }

    body.rtl .nav-menu.active {
        left: auto;
        right: 0;
    }
}

body.rtl input,
body.rtl textarea,
body.rtl select,
body.rtl .form-group input {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-controls {
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
}

body.rtl .hero-content {
    direction: rtl;
}

body.rtl .hero-buttons {
    justify-content: flex-end;
}

body.rtl .hero-social {
    justify-content: flex-end;
}

body.rtl .about-content {
    direction: rtl;
}

body.rtl .about-stats {
    justify-content: flex-end;
}

body.rtl .services-grid {
    direction: rtl;
}

body.rtl .projects-grid {
    direction: rtl;
}

body.rtl .skills-content {
    direction: rtl;
}

body.rtl .testimonials-grid {
    direction: rtl;
}

body.rtl .contact-content {
    direction: rtl;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .nav-link::after {
    right: 0;
    left: auto;
}

body.rtl .highlight::after {
    right: 0;
    left: auto;
}

body.rtl .section-title::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

@media (max-width: 768px) {
    body.rtl .timeline-item {
        padding-right: 80px;
        padding-left: 0;
    }
    
    body.rtl .timeline-year {
        right: 0;
        left: auto;
    }
    
    body.rtl .certificates-timeline::before {
        right: 30px;
        left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #00a085;
        --accent-color: #00e6cc;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
        --border-color: #666666;
    }
    
    body.dark-mode {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --border-color: #888888;
    }
}

@media print {
    .header,
    .hero-actions,
    .hero-social,
    .nav-controls,
    .modal,
    .voiceover-viewer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
        text-align: center;
    }
    
    .hero-name {
        font-size: var(--font-size-5xl);
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    
    .nav-container {
        height: 70px;
        padding: 0 1.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 3rem 2rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0.5rem;
        overflow-y: auto;
        border-top: 1px solid rgba(0, 212, 170, 0.2);
    }
    
    body:not(.dark-mode) .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 212, 170, 0.2);
    }
    
    body:not(.dark-mode) .nav-link {
        color: var(--text-primary);
    }
    
    body:not(.dark-mode) .mobile-menu-toggle span {
        background: var(--primary-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 12px;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-controls {
        gap: 0.6rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .hero-name {
        font-size: var(--font-size-4xl);
    }
    
    .hero-greeting {
        font-size: 1.6rem;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .stat {
        min-width: 100px;
        flex: 1;
    }
    
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        max-width: 100%;
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-2xl);
    }
    
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-image img {
        height: 200px;
    }
    
    .project-info {
        padding: var(--spacing-sm);
    }
    
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-category {
        margin-bottom: 2rem;
    }
    
    .skills-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-item {
        padding: 1.2rem 1.5rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .skill-name {
        font-size: 1rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    
    .certificates-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-item .timeline-content {
        text-align: left !important;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
    }
    
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .contact-item i {
        margin-bottom: var(--spacing-sm);
    }
    
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links-inline {
        justify-content: center;
    }
    
    
    .modal-content {
        margin: 2rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .modal-info h2 {
        font-size: 2rem;
    }
    
    .modal-info p {
        font-size: 1rem;
    }
    
    .modal-features,
    .modal-tech {
        padding: 1rem;
    }
    
    .modal-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-links .btn {
        padding: 0.7rem 1rem;
    }
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    
    .modal-content {
        margin: 1rem;
        border-radius: var(--border-radius);
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .modal-info h2 {
        font-size: 1.8rem;
    }
    
    .modal-features h3,
    .modal-tech h3 {
        font-size: 1.1rem;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tags .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .footer-social {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .footer-social .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-circle {
        width: 250px;
        height: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--glow-color);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
    }
}

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

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

.slide-in-top {
    animation: slideInFromTop 0.6s ease forwards;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95vw !important;
        margin: 5px auto !important;
    }
    
    .certificate-glass-card {
        padding: 1rem !important;
    }
    
    .voice-over-audio-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-body.voice-over-layout .modal-image-viewer {
        padding: 1rem 1rem 0 1rem;
    }
    
    .modal-body.voice-over-layout .modal-image-viewer img {
        max-height: 40vh;
    }
    
    .custom-audio-player {
        padding: 1rem;
        max-width: 100%;
    }
}

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

.voiceover-viewer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050; 
}

.voiceover-viewer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.voiceover-card {
    width: 1200px; 
    max-width: calc(100% - 40px);
    background: var(--bg-card);
    border-radius: 22px;
    padding: 36px; 
    box-shadow: 0 42px 120px rgba(0,0,0,0.68);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10051;
}

.voiceover-grid {
    display: grid;
    grid-template-columns: 520px 1fr; 
    gap: 36px;
    align-items: start;
}

.vv-image-wrapper {
    width: 520px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary); 
}

.vv-image-wrapper img, #voiceImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vv-audio-placeholder { margin-top: 18px; }

.vv-details-col { color: var(--text-primary); }
.vv-title {
    font-size: 38px;
    line-height: 1.03;
    margin: 8px 0 18px 0;
    font-weight: 800;
    color: var(--text-primary);
}

.vv-description {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.64;
    margin-bottom: 24px;
}

.vv-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vv-meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 17px;
}

.vv-meta-item i { color: var(--text-secondary); width: 20px; text-align: center; }
.vv-meta-label { color: var(--primary-color); font-weight: 600; margin-left: 6px; }
.vv-meta-value { color: var(--text-primary); margin-left: 4px; font-weight: 500; }

/* Light Mode: تحسين وضوح النصوص */
body:not(.dark-mode) .vv-title {
    color: #1a1a1a;
}

body:not(.dark-mode) .vv-description {
    color: #2c3e50;
}

body:not(.dark-mode) .vv-meta-item {
    color: #34495e;
}

body:not(.dark-mode) .vv-meta-value {
    color: #1a1a1a;
}

body:not(.dark-mode) .vv-meta-label {
    color: #1769ff;
}

body:not(.dark-mode) .vv-meta-item i {
    color: #5a6c7d;
}

.vv-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.download-audio-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.download-audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.modal-close-compact {
    position: absolute;
    right: 18px;
    top: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.voiceover-viewer .voice-over-audio-container .custom-audio-player {
    max-width: 620px; 
    padding: 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.simple-audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 14px;
    width: 100%;
    max-width: 620px;
}

/* Light mode styling for simple audio player */
body:not(.dark-mode) .simple-audio-player {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .simple-progress {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .simple-time {
    color: #666666;
    font-weight: 600;
}

body:not(.dark-mode) .simple-play-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 6px 18px rgba(0, 212, 170, 0.3);
}

body:not(.dark-mode) .simple-play-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4);
    transform: scale(1.05);
}

.simple-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: all 0.3s ease;
}

.simple-play-btn:hover {
    transform: scale(1.05);
}

.simple-play-btn:active {
    transform: scale(0.98);
}

.simple-progress {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.simple-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.1s ease;
}

.simple-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.simple-time {
    color: #d0d0d0;
    font-size: 15px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .simple-time { display: none; }
    .simple-audio-player { gap: 8px; }
}

@media (max-width: 980px) {
    .voiceover-card { width: calc(100% - 24px); padding: 22px; }
    .voiceover-grid { grid-template-columns: 1fr; gap: 18px; }
    .vv-image-wrapper { width: 100%; height: 380px; }
    .simple-play-btn { width: 56px; height: 56px; }
}

.modal-close-compact:focus { outline: 2px solid rgba(0,212,170,0.6); }

.skills-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 80px; 
    margin-bottom: 2rem; 
}

.skill-bubble {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,255,204,0.06));
    border: 2px solid rgba(0,212,170,0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(.2,.9,.2,1), box-shadow 0.4s ease;
    cursor: default;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(0) rotate(0deg);
    will-change: transform;
}

.skill-bubble:focus,
.skill-bubble:hover {
    transform: translateY(-12px) scale(1.06) rotate(-2deg);
    box-shadow: 0 18px 40px rgba(0,212,170,0.12), 0 6px 18px rgba(0,0,0,0.12);
    outline: none;
}

.bubble-icon {
    font-size: 36px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 8px 20px rgba(0,212,170,0.18);
}

.skill-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.skill-bubble::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(0,212,170,0.08), transparent 25%);
    z-index: -1;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0.9;
}

@keyframes bubbleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.skill-bubble { animation: bubbleFloat 5s ease-in-out infinite; }

.skill-bubble:nth-child(1) { animation-delay: 0s; }
.skill-bubble:nth-child(2) { animation-delay: 0.25s; }
.skill-bubble:nth-child(3) { animation-delay: 0.5s; }
.skill-bubble:nth-child(4) { animation-delay: 0.85s; }
.skill-bubble:nth-child(5) { animation-delay: 1.1s; }
.skill-bubble:nth-child(6) { animation-delay: 1.35s; }
.skill-bubble:nth-child(7) { animation-delay: 1.6s; }
.skill-bubble:nth-child(8) { animation-delay: 1.85s; }

@media (max-width: 760px) {
    .skill-bubble { width: 100px; height: 100px; }
    .bubble-icon { font-size: 30px; width: 48px; height: 48px; }
}

@media (max-width: 420px) {
    .skills-bubbles { gap: 18px; }
    .skill-bubble { width: 92px; height: 92px; }
    .skill-label { font-size: 0.85rem; }
}

.roles-rotator {
    position: relative;
    width: 100%;
    max-width: 720px;
    min-height: 4.2rem; 
    margin-top: 0.8rem;
}

.roles-rotator .role-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform-origin: left center;
}

.roles-rotator .role-item.active {
    opacity: 1;
    pointer-events: auto;
    animation: role-in 700ms cubic-bezier(.2,.9,.2,1) forwards;
}

.roles-rotator .role-item.out {
    animation: role-out 600ms cubic-bezier(.2,.9,.2,1) forwards;
}

.role-title {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 0.6rem;
}

.role-desc {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

@keyframes slideInCertificate {
    0% {
        opacity: 0;
        transform: translateX(120px) scale(0.85) rotateY(15deg);
    }
    50% {
        opacity: 0.7;
        transform: translateX(20px) scale(0.95) rotateY(5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}
.hero-greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: inline-block;
    vertical-align: middle;
}

.hero-typed-roles {
    display: inline-block !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    margin-left: 0.6rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    letter-spacing: 0.6px;
}

.typing-cursor::after {
    content: '';
    display: inline-block !important;
    width: 4px !important;
    height: 1.5em !important;
    background: var(--primary-color) !important;
    margin-left: 10px !important;
    animation: blink 1s steps(2, start) infinite !important;
    vertical-align: middle !important;
}

@media (min-width: 1100px) {
    .hero-title { font-size: 5.6rem; }
    .hero-typed-roles { font-size: 4rem !important; }
    .hero-greeting { font-size: 2.8rem !important; }
    .hero-desc { font-size: 1.5rem; }
}

@media (max-width: 980px) {
    .hero-title { font-size: 3.6rem; }
    .hero-typed-roles { font-size: 2.2rem !important; display:block; margin-top:0.35rem; }
    .hero-greeting { font-size: 1.8rem !important; }
    .hero-desc { font-size: 1.15rem; }
}

.hero-content {
    max-width: 720px;
}
.hero-headings {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-title {
    font-size: 3.25rem;
    color: var(--text-primary);
    line-height: 1.05;
    margin: 0 0 0.6rem 0;
    display:flex; align-items:baseline; gap:1.25rem;
    animation: fadeInUp 0.8s ease 0s both;
}

.hero .hero-headings .hero-subtitle .hero-typed-roles,
.hero .hero-typed-roles {
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 8px 36px rgba(0,212,170,0.08), 0 4px 12px rgba(0,0,0,0.15) !important;
}

@media (min-width: 1300px) {
    .hero .hero-typed-roles { font-size: 5.2rem !important; }
    .hero .hero-greeting { font-size: 3.2rem !important; }
    .hero .hero-title { font-size: 6rem !important; }
}

@media (min-width: 1100px) and (max-width:1299px) {
    .hero .hero-typed-roles { font-size: 4.6rem !important; }
    .hero .hero-greeting { font-size: 3rem !important; }
    .hero .hero-title { font-size: 5.4rem !important; }
}

@media (max-width: 1099px) and (min-width: 781px) {
    .hero .hero-typed-roles { font-size: 3.6rem !important; }
    .hero .hero-greeting { font-size: 2.4rem !important; }
    .hero .hero-title { font-size: 4.2rem !important; }
}

@media (max-width: 780px) and (min-width: 481px) {
    .hero .hero-typed-roles { font-size: 2.6rem !important; display:block !important; margin-top:0.25rem !important; }
    .hero .hero-greeting { font-size: 1.9rem !important; }
    .hero .hero-title { font-size: 2.8rem !important; }
}

@media (max-width: 480px) {
    .hero .hero-typed-roles { font-size: 1.95rem !important; display:block !important; margin-top:0.25rem !important; }
    .hero .hero-greeting { font-size: 1.45rem !important; }
    .hero .hero-title { font-size: 1.9rem !important; }
    .hero-desc { font-size: 1rem !important; }
}

.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; 
}

.sphere .sphere-icon {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sphere .sphere-icon { color: var(--sphere-icon-color); }

body:not(.dark-mode) .sphere .sphere-inner {
    
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 28%), linear-gradient(135deg, rgba(0,212,170,0.14), rgba(110,69,255,0.10));
    box-shadow: 0 10px 30px rgba(0,0,0,0.10), 0 0 28px rgba(0,212,170,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--sphere-icon-color);
}

body.dark-mode .sphere .sphere-inner {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 28%), linear-gradient(135deg, rgba(0,212,170,0.16), rgba(110,69,255,0.14));
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 60px var(--sphere-glow);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--sphere-icon-color);
}

.sphere .sphere-icon {
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

body.show-sphere-outlines .sphere {
    outline: 2px dashed rgba(255,255,255,0.12);
}

.sphere[style*="width: 112px"] .sphere-icon { font-size: 1.15rem; }
.sphere[style*="width: 136px"] .sphere-icon { font-size: 1.25rem; }
.sphere[style*="width: 72px"] .sphere-icon { font-size: 0.95rem; }

.hero-text h1, .hero .hero-title, .hero-title { 
    font-size: 3.2rem !important; 
    line-height: 1.05 !important;
}
.hero-text .typing, .hero .hero-typed-roles, #typedText {
    font-size: 1.6rem !important; 
}
.hero .description, .hero-desc, .description {
    font-size: 1.15rem !important;
    max-width: 680px;
}

.hero-image, .hero-visual .portrait-wrap, .portrait-wrap {
    width: 360px !important;
    height: 360px !important;
    border-radius: 50% !important;
    margin-left: 24px; 
}
.hero-image img, .portrait, .hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.hero > div { align-items: center; }
.hero { gap: 18px; }

@media (max-width: 900px) {
    .hero-text h1, .hero .hero-title { font-size: 2.4rem !important; }
    .hero-text .typing, #typedText { font-size: 1.1rem !important; }
    .hero-image, .portrait-wrap { width: 200px !important; height: 200px !important; margin-left: 0; }
    .hero { padding: 40px 5% !important; gap: 28px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .cursor { animation: none !important; }
}

:root {
  --accent: #00e0b3;
  --bg: #0f0f0f;
  --text: #e6e6e6;
  --font: "Poppins", Arial, sans-serif;
  --typing-speed: 60ms;
  --pause-after-type: 1400ms;
  --pause-after-delete: 300ms;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  min-height: 100vh;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 48px;
  margin: 0;
}

.hero-text h1 .name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.typing {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cursor {
  width: 3px;
  height: 26px;
  background: var(--accent);
  animation: blink 900ms steps(2) infinite;
}

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

.description {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #cfcfcf;
}

.buttons {
  margin: 20px 0;
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

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

.btn-primary:hover {
  opacity: 0.8;
}

.btn-outline {
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: 0.3s;
  font-size: 18px;
}

.socials a:hover {
  background: var(--accent);
  color: #000;
}

.hero-image {
    
    --hero-size: var(--hero-size, 280px);
    width: var(--hero-size);
    height: var(--hero-size);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 224, 179, 0.12);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 40px 5%;
  }
  .buttons {
    justify-content: center;
  }
  .socials {
    justify-content: center;
  }
}

.hero-decor {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--hero-size) * 0.98);
    height: calc(var(--hero-size) * 0.98);
    border-radius: 50%;
    z-index: 2; 
    pointer-events: none;
}

.hero-decor::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.06), transparent 28%);
    mix-blend-mode: screen;
    filter: blur(4px);
    opacity: 0.95;
}

.hero-decor::after {
    content: '';
    position: absolute;
    left: -40%; top: -30%;
    width: 60%; height: 160%;
    transform: rotate(-18deg);
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.0));
    filter: blur(1px);
    opacity: 0.9;
    animation: glossSweep 3.8s ease-in-out infinite;
}

@keyframes glossSweep {
    0% { transform: translateX(-30%) rotate(-18deg); opacity: 0; }
    15% { opacity: 0.5; }
    50% { transform: translateX(40%) rotate(-18deg); opacity: 0.9; }
    85% { opacity: 0.4; }
    100% { transform: translateX(100%) rotate(-18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-decor::after { animation: none; opacity: 0.6; }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--bg-dark) 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease, visibility 1s ease;
}

#loading-screen.fade-out {
    animation: screenDissolve 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes screenDissolve {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
        filter: blur(20px);
        visibility: hidden;
    }
}

.hourglass-container {
    position: relative;
    width: 200px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatHourglass 4s ease-in-out infinite;
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hourglass-container.flip {
    animation: none;
    animation: hourglassFlip 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

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

@keyframes hourglassFlip {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    30% {
        transform: translateY(-20px) rotate(0deg) scale(1.1);
    }
    70% {
        transform: translateY(-20px) rotate(180deg) scale(1.1);
    }
    100% {
        transform: translateY(0px) rotate(180deg) scale(1);
    }
}

.hourglass {
    position: relative;
    width: 140px;
    height: 220px;
    filter: drop-shadow(0 0 40px var(--glow-color));
}

.glass-frame-top {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px rgba(0, 212, 170, 0.5);
    animation: frameGlow 3s ease-in-out infinite;
}

.glass-frame-bottom {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px rgba(0, 212, 170, 0.5);
    animation: frameGlow 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes frameGlow {
    0%, 100% { box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px rgba(0, 212, 170, 0.5); }
    50% { box-shadow: 0 0 35px var(--primary-color), inset 0 0 20px rgba(0, 255, 204, 0.8); }
}

.glass-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-top: 100px solid rgba(0, 212, 170, 0.18);
    filter: drop-shadow(0 0 20px var(--glow-color)) drop-shadow(0 0 35px rgba(0, 212, 170, 0.4));
    animation: glassShine 4s ease-in-out infinite;
}

.glass-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 100px solid rgba(0, 212, 170, 0.18);
    filter: drop-shadow(0 0 20px var(--glow-color)) drop-shadow(0 0 35px rgba(0, 212, 170, 0.4));
    animation: glassShine 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes glassShine {
    0%, 100% { 
        filter: drop-shadow(0 0 20px var(--glow-color)) drop-shadow(0 0 35px rgba(0, 212, 170, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 30px var(--primary-color)) drop-shadow(0 0 50px rgba(0, 255, 204, 0.6));
    }
}

.glass-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 35px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 255, 204, 0.1));
    clip-path: polygon(10% 0, 90% 0, 80% 100%, 20% 100%);
    filter: drop-shadow(0 0 15px var(--glow-color));
    animation: neckPulse 3s ease-in-out infinite;
}

@keyframes neckPulse {
    0%, 100% { filter: drop-shadow(0 0 15px var(--glow-color)); }
    50% { filter: drop-shadow(0 0 25px var(--primary-color)); }
}

.sand-top {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 58px solid transparent;
    border-right: 58px solid transparent;
    border-top: 78px solid var(--primary-color);
    filter: drop-shadow(0 0 25px var(--glow-color)) 
            drop-shadow(0 0 40px var(--primary-color))
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: sandDeplete 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-vortex {
    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: vortexSpin 6s ease-in-out infinite;
}

@keyframes vortexSpin {
    0%, 10%, 95%, 100% { 
        opacity: 0; 
        transform: translateX(-50%) scale(0) rotate(0deg);
    }
    15%, 90% { 
        opacity: 0.8; 
        transform: translateX(-50%) scale(1.5) rotate(720deg);
        box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--glow-color);
    }
}

.sand-stream {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, 
        var(--primary-color) 0%, 
        var(--accent-color) 30%,
        var(--primary-color) 60%,
        var(--accent-alt) 100%);
    box-shadow: 0 0 20px var(--primary-color), 
                0 0 35px var(--glow-color),
                0 0 50px var(--accent-color),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: sandFall 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    border-radius: 3px;
}

.sand-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px var(--glow-color), 0 0 15px var(--primary-color);
}

.sand-particle:nth-child(7) {
    top: 112px;
    left: calc(50% - 5px);
    animation: particleFall1 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-particle:nth-child(8) {
    top: 112px;
    left: calc(50% + 5px);
    animation: particleFall2 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-particle:nth-child(9) {
    top: 112px;
    left: calc(50% - 2px);
    animation: particleFall3 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-particle:nth-child(10) {
    top: 112px;
    left: calc(50% + 2px);
    animation: particleFall4 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-particle:nth-child(11) {
    top: 112px;
    left: calc(50% - 7px);
    animation: particleFall5 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-particle:nth-child(12) {
    top: 112px;
    left: calc(50% + 7px);
    animation: particleFall6 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-mist {
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 40px;
    background: radial-gradient(ellipse, var(--glow-color), transparent);
    opacity: 0;
    animation: mistFlow 6s ease-in-out infinite;
    filter: blur(5px);
}

@keyframes mistFlow {
    0%, 10%, 95%, 100% { opacity: 0; }
    15%, 90% { opacity: 0.3; }
}

.sand-bottom {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 58px solid transparent;
    border-right: 58px solid transparent;
    border-bottom: 0px solid var(--accent-color);
    filter: drop-shadow(0 0 25px var(--glow-color)) 
            drop-shadow(0 0 40px var(--accent-color))
            drop-shadow(0 -5px 15px rgba(0, 0, 0, 0.5));
    animation: sandAccumulate 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sand-ripple {
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: radial-gradient(ellipse, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    animation: ripple1 6s ease-out infinite;
    border-radius: 50%;
}

.sand-ripple-2 {
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: radial-gradient(ellipse, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    animation: ripple2 6s ease-out infinite;
    border-radius: 50%;
}

.splash-particle {
    position: absolute;
    bottom: 90px;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px var(--glow-color);
}

.splash-particle:nth-child(1) {
    left: calc(50% - 15px);
    animation: splash1 6s ease-out infinite;
}

.splash-particle:nth-child(2) {
    left: calc(50% + 15px);
    animation: splash2 6s ease-out infinite;
}

.splash-particle:nth-child(3) {
    left: calc(50% - 20px);
    animation: splash3 6s ease-out infinite;
}

.splash-particle:nth-child(4) {
    left: calc(50% + 20px);
    animation: splash4 6s ease-out infinite;
}

@keyframes sandDeplete {
    0% {
        border-top-width: 78px;
        opacity: 1;
        filter: drop-shadow(0 0 25px var(--glow-color)) 
                drop-shadow(0 0 40px var(--primary-color))
                drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) brightness(1);
    }
    80% {
        border-top-width: 15px;
        opacity: 0.5;
        filter: drop-shadow(0 0 15px var(--glow-color)) 
                drop-shadow(0 0 20px var(--primary-color))
                drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3)) brightness(0.8);
    }
    92% {
        border-top-width: 6px;
        opacity: 0.25;
        filter: drop-shadow(0 0 8px var(--glow-color)) brightness(0.6);
    }
    100% {
        border-top-width: 78px;
        opacity: 1;
        filter: drop-shadow(0 0 25px var(--glow-color)) 
                drop-shadow(0 0 40px var(--primary-color))
                drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) brightness(1);
    }
}

@keyframes sandFall {
    0% {
        height: 0;
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
    }
    12% {
        height: 45px;
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
        box-shadow: 0 0 25px var(--primary-color), 
                   0 0 40px var(--glow-color),
                   0 0 55px var(--accent-color);
    }
    78% {
        height: 45px;
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
        box-shadow: 0 0 25px var(--primary-color), 
                   0 0 40px var(--glow-color),
                   0 0 55px var(--accent-color);
    }
    88% {
        height: 25px;
        opacity: 0.6;
        transform: translateX(-50%) scaleY(0.6);
    }
    100% {
        height: 0;
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
    }
}

@keyframes particleFall1 {
    0%, 10% { opacity: 0; transform: translate(0, 0) scale(0); }
    15% { opacity: 0.9; transform: translate(-2px, 8px) scale(1.2); }
    85% { opacity: 0.7; transform: translate(-8px, 95px) scale(0.8); }
    100% { opacity: 0; transform: translate(-12px, 110px) scale(0.3); }
}

@keyframes particleFall2 {
    0%, 10% { opacity: 0; transform: translate(0, 0) scale(0); }
    16% { opacity: 0.9; transform: translate(2px, 8px) scale(1.2); }
    84% { opacity: 0.7; transform: translate(8px, 95px) scale(0.8); }
    100% { opacity: 0; transform: translate(12px, 110px) scale(0.3); }
}

@keyframes particleFall3 {
    0%, 11% { opacity: 0; transform: translate(0, 0) scale(0); }
    17% { opacity: 0.8; transform: translate(-1px, 10px) scale(1.1); }
    83% { opacity: 0.6; transform: translate(-4px, 92px) scale(0.7); }
    100% { opacity: 0; transform: translate(-6px, 108px) scale(0.2); }
}

@keyframes particleFall4 {
    0%, 12% { opacity: 0; transform: translate(0, 0) scale(0); }
    18% { opacity: 0.8; transform: translate(1px, 10px) scale(1.1); }
    82% { opacity: 0.6; transform: translate(4px, 92px) scale(0.7); }
    100% { opacity: 0; transform: translate(6px, 108px) scale(0.2); }
}

@keyframes particleFall5 {
    0%, 13% { opacity: 0; transform: translate(0, 0) scale(0); }
    19% { opacity: 0.7; transform: translate(-3px, 12px) scale(1); }
    81% { opacity: 0.5; transform: translate(-10px, 88px) scale(0.6); }
    100% { opacity: 0; transform: translate(-14px, 105px) scale(0.2); }
}

@keyframes particleFall6 {
    0%, 14% { opacity: 0; transform: translate(0, 0) scale(0); }
    20% { opacity: 0.7; transform: translate(3px, 12px) scale(1); }
    80% { opacity: 0.5; transform: translate(10px, 88px) scale(0.6); }
    100% { opacity: 0; transform: translate(14px, 105px) scale(0.2); }
}

@keyframes sandAccumulate {
    0% {
        border-bottom-width: 0px;
        filter: drop-shadow(0 0 8px var(--glow-color));
    }
    8% {
        border-bottom-width: 10px;
        filter: drop-shadow(0 0 18px var(--glow-color)) drop-shadow(0 0 25px var(--accent-color));
    }
    82% {
        border-bottom-width: 72px;
        filter: drop-shadow(0 0 30px var(--glow-color)) 
                drop-shadow(0 0 45px var(--accent-color)) 
                brightness(1.3);
    }
    90% {
        border-bottom-width: 76px;
        filter: drop-shadow(0 0 28px var(--glow-color)) brightness(1.1);
    }
    96% {
        border-bottom-width: 74px;
        filter: drop-shadow(0 0 25px var(--glow-color)) brightness(1);
    }
    100% {
        border-bottom-width: 0px;
        filter: drop-shadow(0 0 8px var(--glow-color));
    }
}

@keyframes ripple1 {
    0%, 10% { opacity: 0; width: 35px; transform: translateX(-50%) scaleX(1); }
    13% { opacity: 0.7; width: 45px; transform: translateX(-50%) scaleX(1.4); }
    20% { opacity: 0.4; width: 60px; transform: translateX(-50%) scaleX(1.7); }
    30% { opacity: 0; width: 70px; transform: translateX(-50%) scaleX(2); }
    100% { opacity: 0; width: 35px; transform: translateX(-50%) scaleX(1); }
}

@keyframes ripple2 {
    0%, 10% { opacity: 0; width: 35px; transform: translateX(-50%) scaleX(1); }
    15% { opacity: 0.5; width: 50px; transform: translateX(-50%) scaleX(1.5); }
    25% { opacity: 0.2; width: 70px; transform: translateX(-50%) scaleX(2); }
    35% { opacity: 0; width: 80px; transform: translateX(-50%) scaleX(2.3); }
    100% { opacity: 0; width: 35px; transform: translateX(-50%) scaleX(1); }
}

@keyframes splash1 {
    0%, 10% { opacity: 0; transform: translate(0, 0); }
    13% { opacity: 0.8; transform: translate(-5px, -8px); }
    20% { opacity: 0.4; transform: translate(-10px, -3px); }
    30% { opacity: 0; transform: translate(-12px, 5px); }
    100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes splash2 {
    0%, 10% { opacity: 0; transform: translate(0, 0); }
    13% { opacity: 0.8; transform: translate(5px, -8px); }
    20% { opacity: 0.4; transform: translate(10px, -3px); }
    30% { opacity: 0; transform: translate(12px, 5px); }
    100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes splash3 {
    0%, 11% { opacity: 0; transform: translate(0, 0); }
    14% { opacity: 0.7; transform: translate(-8px, -10px); }
    22% { opacity: 0.3; transform: translate(-15px, -4px); }
    32% { opacity: 0; transform: translate(-18px, 6px); }
    100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes splash4 {
    0%, 11% { opacity: 0; transform: translate(0, 0); }
    14% { opacity: 0.7; transform: translate(8px, -10px); }
    22% { opacity: 0.3; transform: translate(15px, -4px); }
    32% { opacity: 0; transform: translate(18px, 6px); }
    100% { opacity: 0; transform: translate(0, 0); }
}

.loading-text {
    margin-top: 50px;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-alt), var(--primary-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 4s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 12px var(--glow-color));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 25px var(--primary-color));
    }
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

#loading-screen .particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--primary-color);
}

#loading-screen .particle:nth-child(1) {
    top: 15%;
    left: 12%;
    animation-delay: 0s;
}

#loading-screen .particle:nth-child(2) {
    top: 35%;
    right: 18%;
    animation-delay: 2s;
}

#loading-screen .particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

#loading-screen .particle:nth-child(4) {
    bottom: 15%;
    right: 12%;
    animation-delay: 6s;
}

#loading-screen .particle:nth-child(5) {
    top: 50%;
    left: 8%;
    animation-delay: 1s;
}

#loading-screen .particle:nth-child(6) {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-40px) scale(1.2);
    }
}

@media (max-width: 768px) {
    .hourglass-container {
        width: 160px;
        height: 220px;
    }

    .hourglass {
        width: 110px;
        height: 180px;
    }
    
    /* Slider responsive styles */
    .modal-slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modal-slider-prev {
        left: 15px;
    }
    
    .modal-slider-next {
        right: 15px;
    }
    
    .modal-slider-indicators {
        bottom: 20px;
        padding: 12px 20px;
        gap: 10px;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .modal-slider-counter {
        top: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-slider-image {
        max-width: 95%;
        max-height: 80%;
    }

    .loading-text {
        font-size: 20px;
        letter-spacing: 3px;
    }
}

.modal .image-display-area img,
.modal .modal-image-viewer img,
.modal #modalImage {
    position: relative !important;
    z-index: 1 !important;
}

#projectModal .modal-image-viewer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
}

#projectModal .modal-image-viewer .image-box,
#projectModal .modal-embed-center .image-box {
    width: 60% !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-right: 20px !important;
    border: 2px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

#projectModal .modal-image-viewer img,
#projectModal .modal-embed-center img,
#projectModal img.modal-present-image {
    
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; 
    max-height: 85vh !important;
    object-fit: contain !important; 
    object-position: center center !important;
    border-radius: 8px !important;
    display: block !important;
    background: #0f0f0f !important;
    margin: 0 auto !important;
}

#projectModal .modal-image-viewer iframe,
#projectModal .modal-embed-center iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 70vh !important;
    min-height: 500px !important;
    border-radius: 8px !important;
    display: block !important;
    border: none !important;
    margin: 0 auto !important;
}

body:not(.dark-mode) #projectModal .modal-image-viewer img,
body:not(.dark-mode) #projectModal .modal-embed-center img {
    background: #f0f0f0 !important;
}

@media (max-width: 768px) {
    
    #projectModal .modal-image-viewer,
    #projectModal .modal-embed-center {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    #projectModal .modal-image-viewer .image-box,
    #projectModal .modal-embed-center .image-box {
        width: 90% !important;
        margin: 0 0 16px 0 !important;
        
        min-height: 320px !important;
    }
    
    /* Modal Image Controls - Mobile */
    .modal-image-controls-advanced {
        bottom: 15px;
        padding: 12px 20px;
        gap: 10px;
        flex-wrap: wrap;
        max-width: 95%;
    }
    
    .modal-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-zoom-level {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .modal-image-hints {
        display: none;
    }
    
    .modal-image-container-wrapper {
        min-height: 300px;
    }
    
    #projectModal .modal-image-viewer img,
    #projectModal .modal-embed-center img {
        height: auto !important; 
        max-height: 60vh !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    #projectModal .modal-image-viewer iframe,
    #projectModal .modal-embed-center iframe {
        height: 60vh !important;
        min-height: 400px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

body:not(.dark-mode) .footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid var(--border-color);
}

body:not(.dark-mode) .section-title {
    color: var(--text-primary);
}

body:not(.dark-mode) .skill-box {
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.08), rgba(0, 212, 170, 0.03));
    border: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body:not(.dark-mode) .skill-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 212, 170, 0.4);
}

body:not(.dark-mode) .contact-item {
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.15);
}

body:not(.dark-mode) .contact-item:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
}

body:not(.dark-mode) .edu-year-item {
    background: rgba(0, 212, 170, 0.08);
    border: 2px solid rgba(0, 212, 170, 0.2);
}

body:not(.dark-mode) .edu-year-item.active {
    background: var(--primary-color);
    color: #ffffff;
}

body:not(.dark-mode)::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

body:not(.dark-mode)::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body:not(.dark-mode) ::selection {
    background: rgba(0, 212, 170, 0.3);
    color: #1a1a1a;
}

body:not(.dark-mode) a {
    color: var(--primary-color);
}

body:not(.dark-mode) a:hover {
    color: var(--accent-color);
}

body:not(.dark-mode) {
    color: var(--text-primary);
}

body:not(.dark-mode) .experience-role,
body:not(.dark-mode) .service-title,
body:not(.dark-mode) .project-title,
body:not(.dark-mode) .skill-name {
    color: var(--text-primary);
}

body:not(.dark-mode) .experience-details,
body:not(.dark-mode) .service-description,
body:not(.dark-mode) .project-description {
    color: var(--text-secondary);
}

body:not(.dark-mode) .hero {
    background: #ffffff;
}

body:not(.dark-mode) .hero::before {
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(110, 69, 255, 0.05) 0%, transparent 50%);
}

body:not(.dark-mode) .hero-text h1 {
    color: var(--text-primary);
}

body:not(.dark-mode) .description {
    color: var(--text-secondary);
}

body:not(.dark-mode) .social {
    background: rgba(0, 212, 170, 0.08);
    border-color: rgba(0, 212, 170, 0.2);
    color: var(--primary-color);
}

body:not(.dark-mode) .social:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

body:not(.dark-mode) section {
    color: var(--text-primary);
}

body:not(.dark-mode) .modal-content {
    background: #ffffff;
    color: var(--text-primary);
}

body:not(.dark-mode) .modal-close {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .tag {
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

body:not(.dark-mode) .filter-btn {
    background: rgba(0, 212, 170, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

body:not(.dark-mode) .filter-btn.active,
body:not(.dark-mode) .filter-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Portfolio refresh: burgundy, ivory and gold visual system */
:root {
    --primary-color: #64152b;
    --primary-dark: #3a0b18;
    --accent-color: #c69b43;
    --accent-strong: #8e681d;
    --accent-soft: #f4ead5;
    --bg-primary: #fffdf9;
    --bg-secondary: #f7f1e8;
    --bg-card: #ffffff;
    --text-primary: #25151b;
    --text-secondary: #6f5b61;
    --border-color: rgba(100, 21, 43, 0.14);
    --shadow: rgba(58, 11, 24, 0.12);
    --glow-color: rgba(198, 155, 67, 0.26);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

header, .navbar {
    background: rgba(58, 11, 24, 0.95) !important;
    border-bottom: 1px solid rgba(198, 155, 67, 0.28);
}

.nav-link:hover, .nav-link.active, .logo, .brand {
    color: #f1d79e !important;
}

.hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(198, 155, 67, 0.16), transparent 34%),
        linear-gradient(135deg, #3a0b18 0%, #64152b 56%, #7e2840 100%) !important;
    color: #fffaf1;
}

.hero .description, .hero .subtitle, .hero p {
    color: rgba(255, 250, 241, 0.82);
}

.hero .btn-primary, .btn-primary {
    background: var(--accent-color) !important;
    color: #29130b !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 26px rgba(198, 155, 67, 0.25);
}

.hero .btn-primary:hover, .btn-primary:hover {
    background: #e1ba67 !important;
    transform: translateY(-2px);
}

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

.section-kicker {
    margin: 0 0 0.55rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-lead {
    max-width: 720px;
    margin: -1.2rem auto 2.2rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.75;
}

.projects {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 2rem;
}

.project-filter-btn {
    border: 1px solid rgba(100, 21, 43, 0.18) !important;
    background: #fff !important;
    color: var(--primary-color) !important;
    border-radius: 999px !important;
    padding: 0.7rem 1rem !important;
    box-shadow: 0 5px 16px rgba(58, 11, 24, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-filter-btn:hover, .project-filter-btn[aria-pressed="true"] {
    background: var(--primary-color) !important;
    color: #fff9ef !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.project-filter-btn .filter-icon {
    color: var(--accent-strong);
}

.project-filter-btn[aria-pressed="true"] .filter-icon {
    color: #f1d79e;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 1.35rem;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 16px 36px var(--shadow) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
    border-color: rgba(198, 155, 67, 0.62) !important;
    box-shadow: 0 22px 46px rgba(58, 11, 24, 0.18) !important;
    transform: translateY(-7px);
}

.project-image {
    background: linear-gradient(135deg, #3a0b18, #8e681d) !important;
}

.project-image img {
    filter: saturate(0.82) contrast(1.03);
}

.project-overlay {
    background: linear-gradient(180deg, rgba(58, 11, 24, 0.06), rgba(58, 11, 24, 0.9)) !important;
}

.project-btn {
    background: var(--accent-color) !important;
    color: #29130b !important;
}

.project-info {
    padding: 1.25rem !important;
}

.project-eyebrow {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.project-description {
    color: var(--text-secondary) !important;
    line-height: 1.65;
}

.project-tags .tag {
    border: 1px solid rgba(198, 155, 67, 0.34);
    background: var(--accent-soft) !important;
    color: var(--accent-strong) !important;
}

.footer {
    background: #3a0b18 !important;
    color: rgba(255, 250, 241, 0.84);
}

@media (max-width: 640px) {
    .section-lead { padding: 0 1rem; }
    .project-filters { justify-content: flex-start; overflow-x: auto; padding: 0 1rem 0.35rem; }
    .project-filter-btn { flex: 0 0 auto; }
}


/* Premium visual polish — burgundy, ivory and gold */
:root {
    --premium-burgundy: #3b0d1b;
    --premium-wine: #65152d;
    --premium-wine-soft: #8f304c;
    --premium-ivory: #fffaf2;
    --premium-gold: #d6ae5f;
    --premium-gold-light: #f1d89e;
    --premium-ink: #24141a;
}

html { scroll-behavior: smooth; }

::selection {
    background: var(--premium-gold);
    color: var(--premium-burgundy);
}

body {
    background:
        radial-gradient(circle at 10% 18%, rgba(214, 174, 95, 0.07), transparent 24rem),
        var(--bg-primary);
}

.header,
header,
.navbar {
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 34px rgba(59, 13, 27, 0.16);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(820px, 92vh);
    background:
        radial-gradient(circle at 82% 18%, rgba(241, 216, 158, 0.2), transparent 19rem),
        radial-gradient(circle at 8% 85%, rgba(143, 48, 76, 0.38), transparent 24rem),
        linear-gradient(135deg, var(--premium-burgundy) 0%, var(--premium-wine) 58%, #7e2842 100%) !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -14rem;
    bottom: -20rem;
    z-index: -1;
    border: 1px solid rgba(241, 216, 158, 0.26);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(241, 216, 158, 0.05), 0 0 0 56px rgba(241, 216, 158, 0.035);
    pointer-events: none;
}

.hero-grid {
    width: min(1180px, 92%);
    min-height: min(820px, 92vh);
    margin: 0 auto;
    gap: clamp(2rem, 7vw, 6rem);
}

.hero-content { max-width: 650px; }

.hero-greeting {
    color: var(--premium-gold-light) !important;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-title {
    max-width: 700px;
    font-size: clamp(2.8rem, 6vw, 5.7rem) !important;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-name {
    display: inline-block;
    margin-left: 0 !important;
    color: transparent !important;
    background: linear-gradient(110deg, #fff8e9 8%, var(--premium-gold-light) 46%, var(--premium-gold) 88%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle,
.hero-typed-roles {
    color: var(--premium-gold-light) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-desc {
    max-width: 590px;
    color: rgba(255, 250, 242, 0.78) !important;
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-actions,
.hero-ctas { gap: 0.9rem; }

.hero-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 216, 158, 0.28);
    border-radius: 50%;
    color: var(--premium-gold-light) !important;
    background: rgba(255, 250, 242, 0.08);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-social a:hover {
    transform: translateY(-4px);
    border-color: var(--premium-gold);
    background: rgba(214, 174, 95, 0.18);
}

.hero-image {
    position: relative;
    width: clamp(250px, 31vw, 360px) !important;
    height: clamp(250px, 31vw, 360px) !important;
    padding: 10px;
    border: 1px solid rgba(241, 216, 158, 0.48);
    border-radius: 34px !important;
    background: linear-gradient(145deg, rgba(241, 216, 158, 0.48), rgba(101, 21, 45, 0.18) 42%, rgba(255, 250, 242, 0.12));
    box-shadow: 0 32px 80px rgba(21, 4, 10, 0.32), 0 0 0 14px rgba(241, 216, 158, 0.06);
    transform: rotate(2deg);
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    border: 1px solid rgba(241, 216, 158, 0.22);
    border-radius: 42px;
    transform: rotate(-6deg);
}

.hero-image img,
.hero-image img.glowing-image {
    border-radius: 26px !important;
    box-shadow: none !important;
    transform: rotate(-2deg) scale(1.015);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
}

.section-title::after {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--premium-wine), var(--premium-gold));
}

.projects {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(214, 174, 95, 0.12), transparent 22rem),
        linear-gradient(180deg, var(--premium-ivory) 0%, #f5ecdf 100%) !important;
}

.projects::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1000px, 85%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(101, 21, 45, 0.35), transparent);
    transform: translateX(-50%);
}

.project-filters,
#projectFilters {
    width: fit-content;
    max-width: 100%;
    padding: 0.48rem;
    border: 1px solid rgba(101, 21, 45, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.78);
    box-shadow: 0 14px 34px rgba(59, 13, 27, 0.09);
    backdrop-filter: blur(14px);
}

.project-filter-btn,
#projectFilters button {
    min-height: 44px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.projects-grid {
    gap: clamp(1.1rem, 2.4vw, 1.8rem) !important;
}

.project-card {
    position: relative;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 18px 42px rgba(59, 13, 27, 0.1) !important;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0 18% auto;
    height: 3px;
    z-index: 2;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--premium-gold), transparent);
    opacity: 0.9;
}

.project-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 28px 64px rgba(59, 13, 27, 0.18) !important;
}

.project-image {
    height: 218px;
    border-radius: 20px 20px 0 0;
}

.project-image img {
    transition: transform 0.55s cubic-bezier(.2,.8,.2,1), filter 0.35s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
    filter: saturate(1) contrast(1.04);
}

.project-info { padding: 1.4rem 1.35rem 1.5rem !important; }
.project-title { font-size: 1.25rem; letter-spacing: -0.02em; }
.project-description { min-height: 4.9rem; }

.project-tags .tag {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
}

.about,
.education,
.experiences,
.services,
.skills,
.certificates,
.contact {
    position: relative;
}

.about::before,
.education::before,
.experiences::before,
.services::before,
.skills::before,
.certificates::before,
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(900px, 82%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198, 155, 67, 0.28), transparent);
    transform: translateX(-50%);
}

.footer {
    border-top: 1px solid rgba(241, 216, 158, 0.22);
    background: linear-gradient(145deg, var(--premium-burgundy), #230710) !important;
}

@media (max-width: 760px) {
    .hero { min-height: auto; padding: 5.5rem 0 4.5rem; }
    .hero-grid { min-height: auto; width: min(92%, 600px); gap: 3.5rem; }
    .hero-title { font-size: clamp(2.6rem, 12vw, 4rem) !important; }
    .hero-desc { font-size: 1rem; }
    .hero-image { transform: none; }
    .hero-image img { transform: none; }
    .hero-image::before { transform: rotate(-3deg); }
    .project-filters,
    #projectFilters { width: 100%; justify-content: flex-start; overflow-x: auto; border-radius: 18px; }
    .project-filter-btn,
    #projectFilters button { flex: 0 0 auto; }
    .project-description { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-image img,
    .project-card,
    .project-image img,
    .hero-social a { transform: none !important; transition: none !important; }
}


/* Final hero color corrections for the existing markup */
.hero .hero-text h1 .name {
    color: transparent !important;
    background: linear-gradient(110deg, #fff8e9 8%, var(--premium-gold-light) 46%, var(--premium-gold) 88%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    text-decoration-color: var(--premium-gold) !important;
}

.hero .buttons .btn-primary {
    background: linear-gradient(135deg, var(--premium-gold), #b8862f) !important;
    border: 1px solid rgba(241, 216, 158, 0.75) !important;
    color: var(--premium-burgundy) !important;
    box-shadow: 0 12px 28px rgba(214, 174, 95, 0.3) !important;
}

.hero .buttons .btn-primary:hover,
.hero .buttons .btn-primary:focus-visible {
    background: linear-gradient(135deg, #f1d89e, var(--premium-gold)) !important;
    color: var(--premium-burgundy) !important;
}

.hero .buttons .btn-outline {
    border: 1px solid rgba(241, 216, 158, 0.7) !important;
    background: rgba(255, 250, 242, 0.08) !important;
    color: var(--premium-gold-light) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.06), 0 10px 24px rgba(21, 4, 10, 0.14) !important;
}

.hero .buttons .btn-outline:hover,
.hero .buttons .btn-outline:focus-visible {
    border-color: var(--premium-gold) !important;
    background: rgba(214, 174, 95, 0.16) !important;
    color: #fff8e9 !important;
}

.hero .socials .social {
    border-color: rgba(241, 216, 158, 0.32) !important;
    background: rgba(255, 250, 242, 0.08) !important;
    color: var(--premium-gold-light) !important;
}

.hero .socials .social:hover,
.hero .socials .social:focus-visible {
    border-color: var(--premium-gold) !important;
    background: rgba(214, 174, 95, 0.18) !important;
    color: #fff8e9 !important;
}
