/**
* Premium Portfolio - Luxury Glassmorphism
* Ultra-modern design with premium animations
*/

/*--------------------------------------------------------------
# CSS Variables - Light Theme (Default)
--------------------------------------------------------------*/
:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --primary-rgb: 0, 113, 227;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gold-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    
    --bg-primary: #fbfbfd;
    --bg-secondary: #f5f5f7;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(0, 0, 0, 0.04);
    --border-premium: rgba(255, 255, 255, 0.5);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 113, 227, 0.2);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --blur-amount: 20px;
    --blur-heavy: 40px;
    --transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --font-sf: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    
    --gradient-text: linear-gradient(135deg, #1d1d1f 0%, #515154 50%, #1d1d1f 100%);
    --gradient-text-premium: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
    --nav-bg: rgba(251, 251, 253, 0.72);
    --input-bg: rgba(255, 255, 255, 0.9);
    --overlay-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

/*--------------------------------------------------------------
# Dark Theme
--------------------------------------------------------------*/
[data-theme="dark"] {
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-glass: rgba(28, 28, 30, 0.72);
    --bg-card: rgba(38, 38, 40, 0.7);
    --bg-card-hover: rgba(58, 58, 60, 0.8);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-premium: rgba(255, 255, 255, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(102, 126, 234, 0.3);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    
    --gradient-text: linear-gradient(135deg, #f5f5f7 0%, #a1a1a6 50%, #f5f5f7 100%);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --input-bg: rgba(44, 44, 46, 0.9);
    --overlay-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

/*--------------------------------------------------------------
# General & Premium Base
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sf);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.6s ease, color 0.6s ease;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(245, 87, 108, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    z-index: -2;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(1deg); }
}

/* Floating orbs */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    animation: floatOrb 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 50px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.9); }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sf);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

::selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/*--------------------------------------------------------------
# Premium Scrollbar
--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2 0%, #f5576c 100%);
}

/*--------------------------------------------------------------
# Theme Toggle Button - Premium
--------------------------------------------------------------*/
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 9999;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    border-radius: 50px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: var(--transition);
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--premium-gradient);
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

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

.theme-toggle:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.theme-toggle-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.theme-toggle .sun-icon {
    background: transparent;
    color: var(--text-secondary);
}

.theme-toggle .moon-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    background: var(--gold-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    background: transparent;
    color: var(--text-secondary);
    box-shadow: none;
}

@media (max-width: 991px) {
    .theme-toggle {
        top: 18px;
        right: 70px;
        padding: 5px;
    }
    .theme-toggle-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/*--------------------------------------------------------------
# Preloader - Premium
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader:before {
    content: "";
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    animation: premiumSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes premiumSpin {
    to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Back to Top - Premium
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 24px;
    bottom: 24px;
    z-index: 996;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--border-premium);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.back-to-top i {
    font-size: 22px;
    color: var(--text-primary);
    line-height: 0;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.3);
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top:hover i {
    color: white;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Navigation - Premium
--------------------------------------------------------------*/
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.nav-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 4px;
}

.nav-menu a,
.nav-menu a:focus {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    padding: 22px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 12px;
    opacity: 0.75;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a i {
    margin-right: 8px;
    font-size: 18px;
    transition: var(--transition-bounce);
}

.nav-menu a:hover i {
    transform: scale(1.2);
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu li:hover > a {
    color: var(--text-primary);
    opacity: 1;
}

.nav-menu a:hover::before,
.nav-menu .active::before {
    width: calc(100% - 48px);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    position: fixed;
    right: 20px;
    top: 16px;
    z-index: 9998;
    border: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    font-size: 22px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    display: none;
    border: 1px solid var(--border-premium);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mobile-nav-toggle i {
    color: var(--text-primary);
}

.mobile-nav-toggle:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

.mobile-nav-toggle:hover i {
    color: white;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(var(--blur-heavy));
        -webkit-backdrop-filter: blur(var(--blur-heavy));
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active,
    #navbar.active {
        display: flex !important;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 24px;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 18px 28px;
        background: var(--bg-card);
        border: 1px solid var(--border-premium);
        border-radius: 18px;
        width: 100%;
        justify-content: flex-start;
        opacity: 1;
        box-shadow: var(--shadow-sm);
    }

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

    .nav-menu a:hover {
        background: var(--accent-gradient);
        color: white;
        transform: translateX(8px);
        border-color: transparent;
    }

    .nav-menu a:hover i {
        color: white;
    }
}

#navbar {
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

@media (max-width: 991px) {
    #navbar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(var(--blur-heavy));
        -webkit-backdrop-filter: blur(var(--blur-heavy));
        z-index: 9997;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
    }

    #navbar.active {
        display: flex;
    }

    #navbar li {
        padding: 8px 0;
        width: 100%;
    }

    #navbar li a {
        font-size: 18px;
        width: 100%;
        display: flex;
        background: var(--bg-card);
        border: 1px solid var(--border-premium);
        border-radius: 18px;
        padding: 18px 28px;
        color: var(--text-primary);
        box-shadow: var(--shadow-sm);
    }

    #navbar li a:hover {
        background: var(--accent-gradient);
        color: white;
        transform: translateX(8px);
        border-color: transparent;
    }
}

/*--------------------------------------------------------------
# Hero Section - Premium
--------------------------------------------------------------*/
#hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 100px;
    background: transparent;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation: heroOrb1 10s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.12) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation: heroOrb2 12s ease-in-out infinite;
}

@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.15); }
}

#hero .container {
    text-align: center;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

#hero h1 {
    margin: 0;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeIn 1s ease-out;
}

#hero h1 .highlight {
    background: var(--gradient-text-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

#hero p {
    color: var(--text-secondary);
    margin: 28px 0 0 0;
    font-size: 22px;
    font-weight: 400;
    animation: heroFadeIn 1s ease-out 0.2s both;
}

#hero p span {
    background: var(--gradient-text-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.typewriter {
    border-right: 3px solid;
    border-image: var(--accent-gradient) 1;
    display: inline-block;
    animation: blink-caret 0.8s step-end infinite;
    min-width: 1ch;
}

#hero h1 .typewriter {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #667eea; }
}

@media (max-width: 992px) {
    #hero h1 { font-size: 52px; }
    #hero p { font-size: 19px; }
}

@media (max-width: 576px) {
    #hero h1 { font-size: 38px; }
    #hero p { font-size: 17px; }
    #hero { padding: 120px 16px 80px; }
}

/*--------------------------------------------------------------
# Profile Image - Hero Section
--------------------------------------------------------------*/
.hero-profile-img {
    display: flex;
    justify-content: center;
    animation: heroFadeIn 1s ease-out;
}

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--gradient-text-premium) border-box;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
    overflow: hidden;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }
}

/*--------------------------------------------------------------
# Sections General - Premium
--------------------------------------------------------------*/
section {
    padding: 120px 0;
    overflow: hidden;
    background: transparent;
    transition: var(--transition);
    position: relative;
}

.section-title {
    text-align: center;
    padding-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/*--------------------------------------------------------------
# About Section - Premium
--------------------------------------------------------------*/
.about {
    background: transparent;
}

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

.about .lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about .card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.about .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.about .card:hover::before {
    opacity: 1;
}

.about .card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.resume-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 18px 38px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 980px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.resume-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
    color: white;
}

.resume-btn i {
    font-size: 20px;
    transition: var(--transition-bounce);
}

.resume-btn:hover i {
    transform: translateX(4px);
}

/*--------------------------------------------------------------
# Clients/Projects Section - Premium
--------------------------------------------------------------*/
.clients {
    padding: 120px 0;
    background: var(--bg-secondary);
    transition: var(--transition);
    position: relative;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.client-logo {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.client-logo:hover::before {
    opacity: 0.05;
}

.client-img {
    height: 100px;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.client-logo:hover .client-img {
    transform: scale(1.1);
}

.client-logo figcaption {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/*--------------------------------------------------------------
# Skills Section - Premium
--------------------------------------------------------------*/
.skills {
    background: transparent;
}

.skill-item {
    transition: var(--transition);
    padding: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.skill-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.skill-item:hover::before {
    opacity: 0.03;
}

.skill-item:hover::after {
    transform: scaleX(1);
}

.skill-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.skill-item:hover .skill-logo {
    transform: scale(1.2) rotate(-5deg);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 0.02em;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/*--------------------------------------------------------------
# Resume Section - Premium
--------------------------------------------------------------*/
.resume {
    background: var(--bg-secondary);
    transition: var(--transition);
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 17px;
}

.section-heading {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--accent-gradient);
}

.section-heading i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resume-item {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.resume-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.resume-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.resume-item:hover::before {
    opacity: 1;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 14px;
}

.resume-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.year-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.institution {
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.institution i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resume-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.education-section {
    position: relative;
    padding-left: 32px;
}

.education-section::before {
    content: '';
    position: absolute;
    height: calc(100% - 60px);
    width: 3px;
    background: var(--accent-gradient);
    left: 0;
    top: 60px;
    border-radius: 3px;
    opacity: 0.3;
}

.resume-item .timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    left: -38px;
    top: 36px;
    background: var(--bg-primary);
    border: 4px solid;
    border-image: var(--accent-gradient) 1;
    transition: var(--transition);
    z-index: 1;
}

.resume-item:hover .timeline-dot {
    background: var(--accent-gradient);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .education-section {
        padding-left: 24px;
    }
}

/*--------------------------------------------------------------
# Certificates/Portfolio Section - Premium
--------------------------------------------------------------*/
.portfolio {
    padding: 120px 0;
    background: transparent;
}

.portfolio #portfolio-flters {
    padding: 8px;
    margin: 0 auto 60px auto;
    list-style: none;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-radius: 980px;
    border: 1px solid var(--border-premium);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.portfolio #portfolio-flters li {
    color: var(--text-secondary);
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 980px;
    position: relative;
    overflow: hidden;
}

.portfolio #portfolio-flters li::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: 980px;
}

.portfolio #portfolio-flters li span {
    position: relative;
    z-index: 1;
}

.portfolio #portfolio-flters li:hover::before,
.portfolio #portfolio-flters li.filter-active::before {
    opacity: 1;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    color: white;
}

.portfolio .portfolio-wrap {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-premium);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.portfolio .portfolio-wrap::before {
    content: "";
    background: var(--overlay-bg);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: var(--transition);
    z-index: 2;
    opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    z-index: 3;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px;
    transform: translateY(20px);
}

.portfolio .portfolio-wrap .portfolio-info h4 {
    font-size: 20px;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.portfolio .portfolio-wrap .portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
}

.portfolio .portfolio-wrap .portfolio-links a {
    color: #667eea;
    background: white;
    padding: 12px 28px;
    border-radius: 980px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.portfolio .portfolio-wrap .portfolio-links a i {
    margin-right: 8px;
    font-size: 18px;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.portfolio .portfolio-wrap:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.portfolio .portfolio-wrap:hover::before {
    opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio .portfolio-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 260px;
    transition: var(--transition);
}

.portfolio .portfolio-wrap:hover img {
    transform: scale(1.12);
}

@media (max-width: 768px) {
    .portfolio #portfolio-flters {
        flex-direction: column;
        border-radius: 22px;
        padding: 12px;
    }
    .portfolio .portfolio-wrap img {
        max-height: 220px;
    }
}

/*--------------------------------------------------------------
# Contact Section - Premium
--------------------------------------------------------------*/
.contact {
    background: var(--bg-secondary);
    padding: 120px 0;
    transition: var(--transition);
}

.contact .info {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    padding: 40px;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact .info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.contact .info .email,
.contact .info .phone {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    transition: var(--transition);
    padding: 18px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid transparent;
}

.contact .info .email:hover,
.contact .info .phone:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(8px);
}

.contact .info .icon-box {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    transition: var(--transition-bounce);
}

.contact .info .email:hover .icon-box,
.contact .info .phone:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.contact .info i {
    font-size: 22px;
    color: white;
}

.contact .info .info-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.contact .info .info-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact .info .info-content p span {
    display: block;
    margin-bottom: 4px;
    transition: var(--transition);
}

.contact .info .info-content p span:hover {
    color: #667eea;
}

.contact .php-email-form {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    padding: 40px;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact .php-email-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    border-radius: 16px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    font-family: var(--font-sf);
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

.contact .php-email-form input {
    height: 58px;
    padding: 16px 22px;
}

.contact .php-email-form textarea {
    padding: 16px 22px;
}

.contact .php-email-form .error-message {
    display: none;
    color: white;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    padding: 16px 22px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 20px;
}

.contact .php-email-form .sent-message {
    display: none;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    text-align: center;
    padding: 16px 22px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 20px;
}

.contact .php-email-form .loading {
    display: none;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    background: var(--bg-secondary);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    margin: 0 10px -5px 0;
    border: 3px solid var(--border-color);
    border-top-color: #667eea;
    animation: premiumSpin 0.8s linear infinite;
}

.submit-btn {
    background: var(--accent-gradient);
    border: none;
    padding: 18px 42px;
    color: white;
    border-radius: 980px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sf);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn i {
    margin-left: 12px;
    font-size: 20px;
    transition: var(--transition-bounce);
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.submit-btn:hover i {
    transform: translateX(6px);
}

/*--------------------------------------------------------------
# Footer - Premium
--------------------------------------------------------------*/
#footer {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-top: 1px solid var(--border-premium);
    color: var(--text-primary);
    text-align: center;
    padding: 60px 0 40px;
    transition: var(--transition);
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.5) 50%, transparent 100%);
}

#footer h3 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-text-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 14px 0;
}

#footer p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 36px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

#footer .social-links {
    margin: 0 0 36px 0;
    display: flex;
    justify-content: center;
    gap: 14px;
}

#footer .social-links a {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-premium);
    color: var(--text-primary);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#footer .social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

#footer .social-links a i {
    position: relative;
    z-index: 1;
}

#footer .social-links a:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
}

#footer .social-links a:hover::before {
    opacity: 1;
}

#footer .social-links a:hover i {
    color: white;
}

#footer .credits {
    font-size: 13px;
    color: var(--text-tertiary);
}

/*--------------------------------------------------------------
# Utilities & Animations
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

@media (max-width: 576px) {
    section {
        padding: 80px 0;
    }
    .section-title h2 {
        font-size: 34px;
    }
    .contact .php-email-form,
    .contact .info {
        padding: 28px;
    }
}

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

/* Premium hover lift effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Glass morphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-premium);
    border-radius: 24px;
}

/* Premium text gradient */
.text-gradient {
    background: var(--gradient-text-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth theme transition */
*, *::before, *::after {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Magnetic effect for buttons */
.magnetic-btn {
    transition: var(--transition);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.6s ease forwards;
}

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

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    100% { left: 100%; }
}

/* Glow pulse animation */
.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.5); }
}
