/* ==================== VARIABLES & RESET ==================== */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Great+Vibes:wght@400&family=Allura:wght@400&family=Pacifico:wght@400&family=Dancing+Script:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-dark: #000000;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #d0d0d0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --card-bg: #ffffff;
    --card-text: #000000;
    --card-text-light: #666666;
}

body.dark-mode {
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --bg-light: #1a1a1a;
    --bg-white: #0a0a0a;
    --border-color: #333333;
    --card-bg: #1a1a1a;
    --card-text: #ffffff;
    --card-text-light: #cccccc;
}

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

/* Remove any stray decorative elements - but not from Font Awesome icons or hero background */
*:not(i):not(.hero)::before,
*:not(i):not(.hero)::after {
    background-image: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-top: 80px;
}

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

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

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
}

/* ==================== CONTAINER & UTILITIES ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: -0.5px;
    animation: titleCursiveSlide 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
    animation: expandWidth 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: expandWidth 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes titleCursiveSlide {
    0% {
        opacity: 0;
        transform: translateY(-25px) scaleX(0.7) rotateX(20deg);
    }
    50% {
        transform: translateY(5px) scaleX(1.05) rotateX(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleX(1) rotateX(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: 0;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body.dark-mode .btn-secondary {
    color: white;
    border-color: var(--accent-color);
    background: rgba(102, 102, 102, 0.15);
}

body.dark-mode .btn-secondary:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

body.dark-mode .navbar::before {
    background: rgba(10, 10, 10, 0.7);
}

/* Floating state - default */
.navbar.floating {
    padding: 0.8rem 0;
}

.navbar.floating .container {
    max-width: 1300px;
}

.navbar.floating .nav-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
}

@media (min-width: 769px) {
    .navbar.floating .nav-wrapper {
        overflow: hidden;
    }
}

body.dark-mode .navbar.floating .nav-wrapper {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Animated gradient border */
.navbar.floating .nav-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--primary-color) 25%, 
        var(--accent-color) 50%, 
        var(--primary-color) 75%, 
        var(--accent-color) 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    opacity: 0.8;
}

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

/* Scrolled state - more compact */
.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar.scrolled::before {
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-wrapper {
    padding: 0.6rem 1.5rem;
    transform: scale(0.98);
}

.navbar.scrolled.floating .nav-wrapper {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.6rem 0;
    }
    
    .navbar.floating .nav-wrapper {
        border-radius: 16px;
        padding: 0.6rem 1rem;
    }
    
    .navbar.scrolled {
        padding: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar.floating .nav-wrapper {
        border-radius: 14px;
        padding: 0.5rem 0.8rem;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(135deg, var(--text-dark), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: logoShimmer 3s ease-in-out infinite;
}

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

.logo:hover {
    transform: translateY(-2px) scale(1.05);
    letter-spacing: 2px;
}

body.dark-mode .logo {
    background: linear-gradient(135deg, var(--text-dark), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.95rem;
    }

    .logo::before {
        width: 6px;
        height: 6px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: 50%;
        top: 80px;
        width: calc(100% - 2rem);
        max-width: 400px;
        height: auto;
        max-height: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        text-align: center;
        transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                    opacity 0.3s ease,
                    transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                    0 2px 8px rgba(0, 0, 0, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5);
        padding: 0;
        z-index: 999;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        gap: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.95);
    }
    
    body.dark-mode .nav-menu {
        background: rgba(26, 26, 26, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    0 2px 8px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 0.8rem;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .nav-menu li {
        padding: 0;
        margin: 0.25rem 0;
        opacity: 0;
        transform: translateX(-20px);
        line-height: 1;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.35s; }
    
    .nav-link {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.75rem 1.2rem;
        display: block;
        border-radius: 10px;
        background: transparent;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin: 0;
        line-height: 1.4;
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
        opacity: 0.1;
        transition: left 0.4s ease;
        z-index: -1;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        left: 0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(51, 51, 51, 0.05));
        color: var(--accent-color);
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    body.dark-mode .nav-link:hover,
    body.dark-mode .nav-link.active {
        background: linear-gradient(135deg, rgba(102, 102, 102, 0.2), rgba(102, 102, 102, 0.1));
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: block;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(51, 51, 51, 0.05));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Active page indicator */
.nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link.active::before {
    opacity: 0;
}

body.dark-mode .nav-link.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .nav-link::before,
    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--accent-color);
        transform: scale(1.05);
    }
}

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

.nav-cv-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
    gap: 0.5rem;
}

.nav-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 0.6s ease;
}

@media (max-width: 768px) {
    .nav-cv-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav-cv-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        min-width: 40px;
        min-height: 40px;
    }
}   

.theme-toggle {
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(102, 102, 102, 0.05));
    border: 1px solid rgba(102, 102, 102, 0.2);
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    color: var(--accent-color);
    transform: rotate(20deg) scale(1.1);
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.2), rgba(102, 102, 102, 0.1));
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: toggleSpin 0.6s ease;
}

@keyframes toggleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1.1); }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 1rem;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem;
    z-index: 1002;
    position: relative;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-mode .hamburger {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hamburger:hover {
    background: rgba(102, 102, 102, 0.15);
    border-color: var(--accent-color);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.dark-mode .hamburger:hover {
    background: rgba(102, 102, 102, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hamburger.active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: var(--accent-color);
    transform: scale(1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hamburger.active span {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

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

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

@media (max-width: 480px) {
    .hamburger {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .hamburger span {
        width: 20px;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: #ffffff !important;
    color: var(--text-dark);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

body.dark-mode .hero {
    background: #ffffff !important;
    color: #000000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--accent-color), transparent 50%),
                radial-gradient(circle at 80% 80%, var(--accent-color), transparent 50%);
    opacity: 0.03;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.05;
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--accent-color);
    top: 40%;
    left: 5%;
    animation: float 9s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    animation: fadeInUp 0.8s ease;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 320px 1fr;
        gap: 3rem;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideInLeft 0.8s ease;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-image: none !important;
}

.profile-card::before,
.profile-card::after {
    content: none !important;
    display: none !important;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.profile-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-ring,
.profile-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid;
    animation: rotate 8s linear infinite;
}

.profile-ring {
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -90px;
    border-color: var(--border-color) transparent var(--border-color) transparent;
}

.profile-ring-2 {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    border-color: transparent var(--accent-color) transparent var(--accent-color);
    animation-duration: 6s;
    animation-direction: reverse;
}

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

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.profile-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.profile-status i {
    font-size: 0.5rem;
    color: white;
}

.profile-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--card-text);
    margin: 0;
    letter-spacing: -0.3px;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--card-text-light);
    margin: 0;
    font-weight: 400;
}

.profile-social-links {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.social-link i {
    position: relative;
    z-index: 1;
}

/* Dark mode adjustments for social links */
body.dark-mode .social-link {
    background: rgba(102, 102, 102, 0.1);
    border-color: var(--border-color);
}

body.dark-mode .social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInRight 0.8s ease;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--text-dark);
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: highlightShimmer 3s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--card-text);
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--card-text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
}

@media (max-width: 767px) {
    .hero {
        padding: 20px 0 25px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
    }
    
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-card {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 1.2rem;
        gap: 0.6rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .profile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        border-color: var(--accent-color);
    }
    
    .profile-image-wrapper {
        width: 85px;
        height: 85px;
        min-width: 85px;
        min-height: 85px;
        position: relative;
        flex-shrink: 0;
    }
    
    .profile-ring {
        width: 85px !important;
        height: 85px !important;
        margin-top: -42.5px !important;
        margin-left: -42.5px !important;
        border-width: 1.5px !important;
        border-style: solid !important;
        border-color: var(--border-color) transparent var(--border-color) transparent !important;
        animation: rotate 8s linear infinite !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }
    
    .profile-ring-2 {
        width: 100px !important;
        height: 100px !important;
        margin-top: -50px !important;
        margin-left: -50px !important;
        border-width: 1.5px !important;
        border-style: solid !important;
        border-color: transparent var(--accent-color) transparent var(--accent-color) !important;
        animation: rotate 6s linear infinite reverse !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .profile-status {
        bottom: 4px;
        right: 4px;
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .profile-info {
        gap: 0.2rem;
        flex: 1;
        text-align: left;
    }
    
    .profile-name {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .profile-role {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .profile-social-links {
        gap: 0.4rem;
        margin-top: 0.5rem;
        justify-content: flex-start;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-width: 1.5px;
    }
    
    .hero-social {
        padding-top: 0;
        gap: 0.5rem;
        border-top: none;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-width: 1.5px;
    }
    
    .hero-right {
        gap: 1rem;
    }
    
    .hero-intro {
        gap: 0.3rem;
    }
    
    .hero-greeting {
        font-size: 0.85rem;
        display: none;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin: 0;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        display: none;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
        margin: 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .stat-item {
        padding: 0.8rem 0.4rem;
        background: var(--card-bg);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
    
    .stat-number {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 0.65rem;
        font-weight: 500;
    }
    
    .hero-buttons {
        gap: 0.5rem;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }
    
    .hero-buttons .btn i {
        font-size: 0.85rem;
    }
    
    /* Quick Highlights Mobile */
    .quick-highlights {
        padding: 20px 0;
    }
    
    .highlights-grid {
        gap: 0.8rem;
    }
    
    .highlight-card {
        padding: 1.2rem 1rem;
    }
    
    .highlight-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .highlight-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .highlight-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* About Section Mobile */
    .about {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content {
        gap: 1.2rem;
    }
    
    .about-card {
        padding: 1.2rem;
    }
    
    .about-text h3 {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .about-text p {
        font-size: 0.65rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-item h4 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-item p {
        font-size: 0.7rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .info-item {
        padding: 0.8rem;
    }
    
    /* Education Section Mobile */
    .education {
        padding: 30px 0;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .education-card {
        padding: 1.2rem;
    }
    
    .education-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .education-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    /* Experience Section Mobile */
    .experience {
        padding: 20px 0;
    }
    
    .timeline-item {
        padding-left: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .timeline-marker {
        width: 12px;
        height: 12px;
        left: 0;
    }
    
    .timeline-marker::before {
        width: 2px;
    }
    
    .timeline-content {
        padding: 0.8rem;
    }
    
    .timeline-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .company {
        font-size: 0.7rem;
    }
    
    .period {
        font-size: 0.65rem;
    }
    
    .experience-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .responsibilities li {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
        padding-left: 1rem;
    }
    
    /* Skills Section Mobile */
    .skills {
        padding: 12px 0;
    }
    
    .skills-container {
        gap: 0.4rem;
    }
    
    .skill-category {
        padding: 0.5rem;
    }
    
    .category-header {
        margin-bottom: 0.3rem;
    }
    
    .category-header h3 {
        font-size: 0.65rem;
    }
    
    .category-header i {
        font-size: 0.7rem;
    }
    
    .skill-item {
        margin-bottom: 0.3rem;
    }
    
    .skill-tag {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
    }
    
    .skill-rating {
        font-size: 0.45rem;
    }
    
    .skill-bar {
        height: 3px;
    }
    
    /* Projects Section Mobile */
    .projects {
        padding: 30px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .project-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .project-header h3 {
        font-size: 1rem;
    }
    
    .project-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .project-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .project-details {
        font-size: 0.75rem;
        padding: 0.6rem;
        margin: 0.6rem 0;
    }
    
    .project-tech span {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Contact Section Mobile */
    .contact {
        padding: 30px 0;
    }
    
    /* References Section Mobile */
    .references {
        padding: 30px 0;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-overlay h4 {
        font-size: 0.9rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Global paragraph font size for mobile */
    p {
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 15px 0 20px;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .profile-card {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .profile-image-wrapper {
        width: 75px;
        height: 75px;
        min-width: 75px;
        min-height: 75px;
        position: relative;
        flex-shrink: 0;
    }
    
    .profile-ring {
        width: 75px !important;
        height: 75px !important;
        margin-top: -37.5px !important;
        margin-left: -37.5px !important;
        border-width: 1.5px !important;
        border-style: solid !important;
        border-color: var(--border-color) transparent var(--border-color) transparent !important;
        animation: rotate 8s linear infinite !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }
    
    .profile-ring-2 {
        width: 90px !important;
        height: 90px !important;
        margin-top: -45px !important;
        margin-left: -45px !important;
        border-width: 1.5px !important;
        border-style: solid !important;
        border-color: transparent var(--accent-color) transparent var(--accent-color) !important;
        animation: rotate 6s linear infinite reverse !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }
    
    .profile-image {
        width: 62px;
        height: 62px;
        border-width: 2px;
    }
    
    .profile-status {
        width: 14px;
        height: 14px;
        bottom: 5px;
        right: 5px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-role {
        font-size: 0.75rem;
    }
    
    .profile-social-links {
        gap: 0.35rem;
        margin-top: 0.4rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-width: 1.5px;
    }
    
    .hero-right {
        gap: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.7rem 0.3rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0.15rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .hero-buttons {
        gap: 0.45rem;
    }
    
    .hero-buttons .btn {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
    
    /* Whole Page Optimization for Small Mobile */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .quick-highlights {
        padding: 15px 0;
    }
    
    .highlight-card {
        padding: 1rem 0.8rem;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .highlight-card h3 {
        font-size: 0.9rem;
    }
    
    .highlight-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .about {
        padding: 25px 0;
    }
    
    .about-card {
        padding: 1rem;
    }
    
    .about-text h3 {
        font-size: 0.8rem;
    }
    
    .about-text p {
        font-size: 0.6rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
    
    .about-features {
        gap: 0.7rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .feature-item h4 {
        font-size: 0.85rem;
    }
    
    .feature-item p {
        font-size: 0.7rem;
    }
    
    .info-item {
        padding: 0.7rem;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
    
    .education {
        padding: 25px 0;
    }
    
    .education-card {
        padding: 1rem;
    }
    
    .education-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .education-card h3 {
        font-size: 0.95rem;
    }
    
    .education-meta {
        font-size: 0.75rem;
    }
    
    .education-year {
        font-size: 0.7rem;
    }
    
    .experience {
        padding: 15px 0;
    }
    
    .timeline-item {
        padding-left: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .timeline-marker {
        width: 8px;
        height: 8px;
    }
    
    .timeline-content {
        padding: 0.6rem;
    }
    
    .timeline-content h3 {
        font-size: 0.8rem;
    }
    
    .company {
        font-size: 0.65rem;
    }
    
    .period {
        font-size: 0.6rem;
    }
    
    .experience-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }
    
    .responsibilities li {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
        padding-left: 0.8rem;
    }
    
    .skills {
        padding: 10px 0;
    }
    
    .skills-container {
        gap: 0.4rem;
    }
    
    .skill-category {
        padding: 0.4rem;
    }
    
    .category-header {
        margin-bottom: 0.3rem;
    }
    
    .category-header h3 {
        font-size: 0.6rem;
    }
    
    .category-header i {
        font-size: 0.65rem;
    }
    
    .skill-item {
        margin-bottom: 0.3rem;
    }
    
    .skill-tag {
        font-size: 0.45rem;
        padding: 0.15rem 0.3rem;
    }
    
    .skill-rating {
        font-size: 0.4rem;
    }
    
    .skill-bar {
        height: 2.5px;
    }
    
    .projects {
        padding: 25px 0;
    }
    
    .projects-grid {
        gap: 0.9rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .project-header h3 {
        font-size: 0.95rem;
    }
    
    .project-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
    }
    
    .project-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .project-details {
        font-size: 0.7rem;
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .project-tech span {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .contact {
        padding: 25px 0;
    }
    
    .references {
        padding: 25px 0;
    }
    
    .gallery-grid {
        gap: 0.7rem;
    }
    
    .gallery-item {
        height: 160px;
    }
    
    .gallery-overlay h4 {
        font-size: 0.85rem;
    }
    
    .gallery-overlay p {
        font-size: 0.7rem;
    }
    
    /* Scroll to Top Button */
    #scrollToTop {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 15px;
        right: 15px;
    }
}

/* ==================== QUICK HIGHLIGHTS SECTION ==================== */
.quick-highlights {
    padding: 30px 0;
    background: var(--bg-light);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.quick-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, var(--accent-color), transparent 50%),
                radial-gradient(circle at 70% 30%, var(--accent-color), transparent 50%);
    opacity: 0.03;
    pointer-events: none;
}

@media (max-width: 480px) {
    .quick-highlights {
        padding: 18px 0;
    }
}

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

@media (min-width: 1400px) {
    .highlights-grid {
        gap: 2rem;
    }
}

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

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

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

.highlight-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

@media (max-width: 480px) {
    .highlight-card {
        padding: 1rem;
        min-height: 140px;
    }
}

.highlight-card:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.highlight-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--card-text);
    font-weight: 600;
}

.highlight-card p {
    font-size: 0.8rem;
    color: var(--card-text-light);
    line-height: 1.5;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 30px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

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

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        align-items: start;
    }
    
    .about-card {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .about-features {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 480px) {
    .about-content {
        gap: 0.8rem;
    }
}

.about-card {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--accent-color);
    animation: fadeInUp 0.6s ease;
    color: var(--card-text);
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .about-card {
        padding: 1rem;
        animation: none;
        min-height: auto;
    }
}

.about-text h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.about-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

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

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

@media (max-width: 480px) {
    .about-features {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
}

.feature-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease;
    color: var(--card-text);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

@media (max-width: 480px) {
    .feature-item {
        padding: 1rem;
        min-height: 140px;
    }
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
}

.feature-item h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

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

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-top: 0.8rem;
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    animation: fadeInUp 0.5s ease;
    color: var(--card-text);
}

@media (max-width: 480px) {
    .info-item {
        padding: 1rem;
        min-height: 100px;
    }
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
}

@media (max-width: 480px) {
    .info-icon {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .info-label {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
}

.info-value {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .info-value {
        font-size: 0.8rem;
    }
}

.about-social {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.about-social h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
}

.about-social-icon:hover {
    transform: translateY(-5px) scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow);
    animation: pulse 0.6s ease;
}

.about-social-icon.facebook {
    background: linear-gradient(135deg, #333333, #1a1a1a);
    color: white;
    border-color: #333333;
}

.about-social-icon.facebook:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.about-social-icon.instagram {
    background: linear-gradient(135deg, #4d4d4d, #262626);
    color: white;
    border-color: #4d4d4d;
}

.about-social-icon.instagram:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.about-social-icon.email {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-color: var(--accent-color);
}

.about-social-icon.email:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.about-social-icon.viber {
    background: linear-gradient(135deg, #595959, #404040);
    color: white;
    border-color: #595959;
}

.about-social-icon.viber:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .about-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .about-social h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .about-social-icons {
        gap: 0.8rem;
    }

    .about-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-width: 1.5px;
    }
}

/* ==================== EDUCATION SECTION ==================== */
.education {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.education::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

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

@media (max-width: 480px) {
    .education-grid {
        gap: 0.8rem;
    }
}

.education-card {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    border-top: 2px solid var(--accent-color);
    color: var(--card-text);
    position: relative;
    overflow: hidden;
}

.education-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .education-card {
        padding: 1rem;
        min-height: 160px;
    }
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.education-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.education-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 600;
}

.education-meta {
    color: var(--text-light);
    font-size: 0.8rem;
}

.education-year {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience {
    padding: 30px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.experience::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.experience-timeline {
    position: relative;
    padding: 0.5rem 0;
}

@media (max-width: 480px) {
    .experience-timeline {
        padding: 0.5rem 0;
    }
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

@media (max-width: 768px) {
    .experience-timeline::before {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .experience-timeline::before {
        display: none;
    }
}

.timeline-item {
    margin-bottom: 1.2rem;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

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

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

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

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

@media (max-width: 480px) {
    .timeline-item {
        margin-bottom: 1rem;
        padding-left: 0;
        padding-right: 0;
    }
}

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

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

@media (max-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 45px;
        margin-right: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left;
        padding: 0.8rem;
    }
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 0 3px var(--accent-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .timeline-marker {
        display: none;
    }
}

.timeline-content {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    color: var(--card-text);
    border-left: 3px solid var(--accent-color);
    position: relative;
    animation: slideInUp 0.6s ease;
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-left-color: var(--primary-color);
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 1rem;
        min-height: auto;
    }
}

.timeline-content h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.company {
    color: #666666;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.period {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.experience-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    animation: scaleIn 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.experience-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .timeline-content h3 {
        font-size: 0.95rem;
    }

    .company {
        font-size: 0.8rem;
    }

    .period {
        font-size: 0.7rem;
    }

    .experience-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }
}

.responsibilities {
    list-style: none;
    color: var(--text-light);
    font-size: 0.8rem;
}

.responsibilities li {
    padding: 0.15rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.3;
}

.responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 480px) {
    .responsibilities {
        font-size: 0.75rem;
    }

    .responsibilities li {
        padding: 0.2rem 0;
        padding-left: 1rem;
    }
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .skills {
        padding: 18px 0;
    }
}

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

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 1400px) {
    .skills-container {
        gap: 1.2rem;
    }
}

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

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

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

.skill-category {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease;
    color: var(--card-text);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

@media (max-width: 768px) {
    .skill-category {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .skill-category {
        padding: 1rem;
        margin: 0;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .skill-category::before {
        display: none;
    }
}

.skill-category:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

@media (max-width: 480px) {
    .skill-category:hover {
        transform: none;
    }
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header i {
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .category-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    .category-header i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-header {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .category-header i {
        font-size: 1.1rem;
    }
}

.skill-category h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .skill-category h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .skill-category h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin: 0;
        padding: 0;
    }
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .skill-list {
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .skill-list {
        gap: 0.7rem;
        margin: 0;
        padding: 0;
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

@media (max-width: 480px) {
    .skill-item {
        gap: 0.15rem;
        margin: 0;
        padding: 0;
    }
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .skill-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .skill-tag {
        padding: 0.25rem 0.5rem;
        margin: 0;
        font-size: 0.75rem;
        border-radius: 4px;
        gap: 0.2rem;
    }
}

.skill-rating {
    font-size: 0.65rem;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1;
}

@media (max-width: 768px) {
    .skill-rating {
        font-size: 0.55rem;
        padding: 0.12rem 0.3rem;
    }
}

@media (max-width: 480px) {
    .skill-rating {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
        margin: 0;
        border-radius: 3px;
    }
}

.skill-bar {
    height: 5px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .skill-bar {
        height: 3.5px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .skill-bar {
        height: 5px;
        border-radius: 3px;
        margin-top: 0.1rem;
    }
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    animation: progressFill 0.8s ease forwards;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .skill-progress {
        border-radius: 1px;
        box-shadow: none;
    }
}

@keyframes progressFill {
    from {
        width: 0 !important;
    }
    to {
        width: 100% !important;
    }
}

/* ==================== CURSIVE & ELEGANT ANIMATIONS ==================== */
@keyframes cursiveUnderline {
    from {
        width: 0;
        left: 0;
    }
    to {
        width: 100%;
        left: 0;
    }
}

@keyframes elegantFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes smoothSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) skewX(10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}

@keyframes elegantBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-12px);
    }
    75% {
        transform: translateY(-6px);
    }
}

/* Apply elegant animations to cards */
.feature-item {
    animation: elegantFadeInScale 0.6s ease-out;
}

.about-card {
    animation: smoothSlideIn 0.7s ease-out;
}

.project-card {
    animation: elegantFadeInScale 0.6s ease-out;
}

.education-card {
    animation: elegantFadeInScale 0.6s ease-out;
}

.service-card {
    animation: elegantFadeInScale 0.6s ease-out;
}

.highlight-card {
    animation: elegantFadeInScale 0.6s ease-out;
}

/* Enhance button animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

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

/* Elegant text animations */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}



/* ==================== PROJECTS SECTION ==================== */
.projects {
    padding: 30px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 1400px) {
    .projects-grid {
        gap: 1.2rem;
    }
}

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

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

@media (max-width: 480px) {
    .projects-grid {
        gap: 0.8rem;
    }
}

.project-card {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--card-text);
    border-left: 5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-color);
}

@media (max-width: 480px) {
    .project-card {
        padding: 1rem;
        min-height: 200px;
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-left-color: #000000;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .project-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .project-header {
        gap: 0.3rem;
    }
}

.project-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .project-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .project-icon {
        font-size: 1.3rem;
    }
}

.project-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .project-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .project-card h3 {
        font-size: 0.9rem;
    }
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    margin-top: 0.8rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .project-card p {
        margin-bottom: 0.8rem;
        margin-top: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-card p {
        margin-bottom: 0.6rem;
        margin-top: 0.5rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

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

@media (max-width: 768px) {
    .project-tech {
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .project-tech {
        gap: 0.3rem;
    }
}

.project-tech span {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-tech span {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .project-tech span {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* ==================== VOLUNTEER SECTION ==================== */
.volunteer {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.volunteer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.volunteer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

@media (max-width: 768px) {
    .volunteer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .volunteer-content {
        gap: 0.8rem;
    }
}

.volunteer-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--card-text);
    border-top: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.volunteer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
}

@media (max-width: 768px) {
    .volunteer-item {
        padding: 1rem;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .volunteer-item {
        padding: 1rem;
        gap: 0.5rem;
        min-height: 140px;
    }
}

.volunteer-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(3px);
    animation: slideInRight 0.4s ease;
}

.volunteer-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .volunteer-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .volunteer-header {
        gap: 0.3rem;
    }
}

.volunteer-icon {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .volunteer-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .volunteer-icon {
        font-size: 1.2rem;
    }
}

.volunteer-text h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .volunteer-text h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .volunteer-text h3 {
        font-size: 0.75rem;
    }
}

.volunteer-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (max-width: 480px) {
    .volunteer-text {
        gap: 0.2rem;
    }
}

.organization {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .organization {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .organization {
        font-size: 0.65rem;
    }
}

.volunteer-text p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .volunteer-text p {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .volunteer-text p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

/* ==================== PROFILE IMAGE ==================== */
.profile-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, #000000, #333333, #000000);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 8s linear infinite;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #666666, #999999, #666666);
    border-radius: 50%;
    z-index: -2;
    opacity: 0.6;
    animation: rotate 12s linear infinite reverse;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 5px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-image-wrapper:hover .profile-image {
    transform: scale(1.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.profile-initials-fallback {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 5px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.graduation-badge {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: white;
    background: rgba(102, 102, 102, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 102, 102, 0.5);
}

.experience-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-details {
    background: var(--bg-light);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
    padding: 60px 0;
    background: var(--bg-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    aspect-ratio: 1;
    cursor: default;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(51, 51, 51, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.gallery-note {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 2px solid var(--accent-color);
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.gallery-note i {
    color: #666666;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 60px 0;
    background: var(--bg-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1400px) {
    .services-grid {
        gap: 2rem;
    }
}

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

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

@media (max-width: 480px) {
    .services-grid {
        gap: 0.8rem;
    }
}

.service-card {
    background: var(--card-bg);
    padding: 1.3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--accent-color);
    animation: fadeInUp 0.5s ease;
    color: var(--card-text);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

@media (max-width: 480px) {
    .service-card {
        padding: 1rem;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.8rem;
        min-height: 180px;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
        grid-row: 1;
        grid-column: 1;
        align-self: center;
    }
}

.service-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0;
        grid-row: 1;
        grid-column: 2;
        align-self: center;
    }
}

.service-card p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .service-card p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        grid-row: 2;
        grid-column: 1 / -1;
    }
}

.service-list {
    list-style: none;
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .service-list {
        grid-row: 3;
        grid-column: 1 / -1;
    }
}

.service-list li {
    color: var(--text-light);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.service-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==================== CTA BANNER SECTION ==================== */
.cta-banner {
    padding: 50px 0;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

@media (max-width: 480px) {
    .cta-banner {
        padding: 25px 0;
        border-top: none;
        border-bottom: none;
    }
    
    .cta-banner h2 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        font-weight: 600;
    }
}

.cta-banner p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .cta-banner p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 280px;
        margin: 0 auto;
    }
}

.cta-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-buttons .btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.7rem !important;
        gap: 0.3rem;
        width: 100%;
        border-radius: 6px;
    }
    
    .cta-buttons .btn i {
        font-size: 0.75rem;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 30px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 480px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@media (max-width: 480px) {
    .contact-info {
        gap: 0.6rem;
    }
}

.contact-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    color: var(--card-text);
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow);
    animation: slideInRight 0.4s ease;
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1rem;
        gap: 0.8rem;
        min-height: 90px;
    }
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.8rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--card-bg);
    padding: 1.3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--card-text);
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
        min-height: auto;
    }
}

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

@media (max-width: 480px) {
    .form-group {
        margin-bottom: 0.7rem;
    }
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: none !important;
    color: var(--text-dark) !important;
    border: none !important;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 997;
    opacity: 0.6;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.scroll-to-top:hover {
    opacity: 1;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        font-size: 1.8rem;
        opacity: 0.5;
    }
}

.scroll-to-top.show {
    display: flex;
}

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

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ==================== CHAT WIDGET ==================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    animation: pulse 0.6s ease;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    color: var(--card-text);
    animation: slideUp 0.3s ease;
}

.chat-box.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.chat-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-option {
    flex: 1;
    padding: 0.6rem;
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.chat-option:hover {
    transform: translateY(-2px);
}

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

@media (max-width: 480px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chat-box {
        width: 280px;
    }
}

/* ==================== LOADING ANIMATION ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-screen p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.05), transparent 50%);
    pointer-events: none;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

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

.social-links a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

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

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

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-timeline::before {
        left: 15px;
    }

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

    .timeline-marker {
        left: 15px;
    }

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

    .footer .container {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.85rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}

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

    body {
        font-size: 14px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        gap: 0.3rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin: 0 auto 0.6rem;
    }

    .hero-stats {
        gap: 0.8rem;
        margin: 0.6rem 0;
    }

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

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

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
    }

    .section-title::after {
        width: 35px;
        height: 2px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skills-grid,
    .projects-grid,
    .education-grid,
    .skills-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .volunteer-item {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .volunteer-icon {
        margin: 0 auto;
        font-size: 1.6rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .feature-item {
        padding: 0.8rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        object-position: center top;
    }

    .profile-image-wrapper::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }

    .profile-image-wrapper::after {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }

    .profile-initials-fallback {
        width: 120px;
        height: 120px;
    }

    .profile-initials {
        font-size: 2.5rem;
    }

    .profile-badge {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        bottom: -3px;
        right: -3px;
    }

    .graduation-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .gallery-overlay h4 {
        font-size: 0.8rem;
    }

    .gallery-overlay p {
        font-size: 0.65rem;
    }

    .hire-grid {
        gap: 1rem;
    }

    .hire-card {
        padding: 1.2rem;
    }

    .hire-number {
        font-size: 2rem;
    }

    .cta-banner {
        padding: 30px 0;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .cta-banner p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}


/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
    background: rgba(245, 158, 11, 0.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 80%;
}

.lightbox-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: white;
}

.lightbox-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(245, 158, 11, 0.3);
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        bottom: 15px;
        padding: 0.8rem 1.2rem;
        max-width: 90%;
    }

    .lightbox-caption h3 {
        font-size: 1rem;
    }

    .lightbox-caption p {
        font-size: 0.8rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 0.8rem 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Update gallery overlay to include icon */
.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

@media (max-width: 480px) {
    .gallery-overlay i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
}


/* ==================== PROGRESSIVE ENHANCEMENT ==================== */
/* Ensure elements are visible by default, JavaScript will add animations */
.feature-item,
.info-item,
.education-card,
.project-card,
.skill-category,
.volunteer-item,
.timeline-content {
    opacity: 1 !important;
}

/* Only hide for animation if JavaScript is enabled */
.js-enabled .feature-item,
.js-enabled .info-item,
.js-enabled .education-card,
.js-enabled .project-card,
.js-enabled .skill-category,
.js-enabled .volunteer-item,
.js-enabled .timeline-content {
    opacity: 0;
}

/* ==================== ADDITIONAL MOBILE FIXES ==================== */
@media (max-width: 480px) {
    /* Ensure no horizontal overflow */
    * {
        max-width: 100%;
    }

    /* Fix timeline content width and spacing */
    .timeline-content {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .timeline-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-content h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .company {
        font-size: 0.75rem;
    }

    .period {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .responsibilities {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .responsibilities li {
        padding: 0.15rem 0;
        padding-left: 1rem;
        line-height: 1.4;
    }

    /* Fix experience badge */
    .experience-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.5rem;
    }

    /* Skills section improvements */
    .skill-category {
        padding: 1rem;
    }

    .category-header {
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        gap: 0.6rem;
    }

    .category-header i {
        font-size: 1.2rem;
    }

    .skill-category h3 {
        font-size: 0.9rem;
    }

    .skill-item {
        gap: 0.3rem;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .skill-rating {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .skill-bar {
        height: 5px;
    }

    /* Project cards */
    .project-card {
        padding: 1rem;
    }

    .project-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .project-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .project-card p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .project-details {
        padding: 0.6rem;
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .project-tech {
        gap: 0.4rem;
    }

    .project-tech span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* About section */
    .about-card {
        padding: 1rem;
    }

    .about-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .about-text p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .feature-item {
        padding: 0.9rem;
    }

    .feature-icon {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .feature-item h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .feature-item p {
        font-size: 0.7rem;
    }

    /* Info grid */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .info-item {
        padding: 0.8rem 0.5rem;
    }

    .info-icon {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .info-label {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .info-value {
        font-size: 0.75rem;
        word-break: break-word;
    }

    /* Education cards */
    .education-card {
        padding: 1rem;
    }

    .education-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .education-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .education-meta {
        font-size: 0.75rem;
    }

    .education-year {
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }

    /* Gallery improvements */
    .gallery-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .gallery-overlay {
        padding: 0.8rem;
    }

    .gallery-overlay h4 {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .gallery-overlay p {
        font-size: 0.65rem;
    }

    /* Contact section */
    .contact-item {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .contact-item i {
        font-size: 1.2rem;
    }

    .contact-item h4 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .contact-item p {
        font-size: 0.75rem;
    }

    /* Buttons */
    .hero-buttons {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    /* Social icons */
    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* Highlights */
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .highlight-card {
        padding: 0.8rem;
    }

    .highlight-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .highlight-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .highlight-card p {
        font-size: 0.7rem;
    }

    /* Services section */
    .service-card {
        padding: 1rem;
    }

    .service-icon {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .service-list {
        font-size: 0.7rem;
    }

    .service-list li {
        padding: 0.2rem 0;
        padding-left: 0.9rem;
    }

    /* CTA Banner */
    .cta-banner h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .cta-banner p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }

    .cta-buttons .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

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

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

    .timeline-content {
        width: 100%;
        margin-left: 0;
        padding: 0.7rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid,
    .about-features {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
}

/* ==================== ULTRA RESPONSIVE IMPROVEMENTS ==================== */
@media (max-width: 600px) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .role-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-description {
        font-size: 0.85rem;
        margin: 0 auto 0.8rem;
    }

    .hero-stats {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }

    .stat-item {
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }

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

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

    .stat-date {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .section-title::before {
        top: -12px;
        width: 50px;
        height: 3px;
    }

    .section-title::after {
        width: 60px;
        height: 2px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .highlight-card {
        padding: 1rem;
    }

    .highlight-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .highlight-card h3 {
        font-size: 0.95rem;
    }

    .highlight-card p {
        font-size: 0.8rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

    .feature-item h4 {
        font-size: 0.9rem;
    }

    .feature-item p {
        font-size: 0.75rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .info-item {
        padding: 0.9rem;
    }

    .info-icon {
        font-size: 1.4rem;
    }

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

    .info-value {
        font-size: 0.85rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1.1rem;
    }

    .category-header {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .category-header i {
        font-size: 1.1rem;
    }

    .skill-category h3 {
        font-size: 0.95rem;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .skill-rating {
        font-size: 0.65rem;
    }

    .skill-bar {
        height: 4px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1.1rem;
    }

    .project-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .project-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .project-card p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .project-tech {
        gap: 0.4rem;
    }

    .project-tech span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .education-card {
        padding: 1.1rem;
    }

    .education-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-overlay h4 {
        font-size: 0.8rem;
    }

    .gallery-overlay p {
        font-size: 0.7rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .cta-banner {
        padding: 35px 0;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .cta-banner p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .cta-buttons .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}


/* ==================== FORCE HIDE TIMELINE ELEMENTS ON MOBILE ==================== */
@media (max-width: 480px) {
    /* Force hide timeline marker with high specificity */
    .experience .timeline-item .timeline-marker,
    .timeline-item .timeline-marker,
    .timeline-marker {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Force hide timeline line */
    .experience .experience-timeline::before,
    .experience-timeline::before {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure full width content */
    .experience .timeline-item .timeline-content,
    .timeline-item .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ==================== FLOATING CHAT WIDGET ==================== */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.5);
    animation: chatBounce 0.6s ease-out;
}

@keyframes elegantPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

@keyframes chatBounce {
    0% {
        transform: scale(1.15) rotate(15deg);
    }
    50% {
        transform: scale(1.2) rotate(20deg);
    }
    100% {
        transform: scale(1.15) rotate(15deg);
    }
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-body {
    padding: 1.5rem;
    color: var(--text-dark);
    background: var(--bg-white);
    animation: slideInUp 0.4s ease-out;
}

.chat-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}



.chat-footer {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
}

.chat-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.chat-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.chat-option i {
    font-size: 1.1rem;
}

/* Mobile Responsive Chat Widget */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 70px;
        right: 15px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .chat-box {
        width: 280px;
        bottom: 75px;
    }

    .chat-header {
        padding: 0.8rem;
    }

    .chat-header h3 {
        font-size: 0.95rem;
    }

    .chat-body {
        padding: 1.2rem;
    }

    .chat-body p {
        font-size: 0.85rem;
    }

    .chat-footer {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .chat-option {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .chat-option i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 60px;
        right: 10px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chat-box {
        width: calc(100vw - 20px);
        max-width: 300px;
        bottom: 70px;
        right: 10px;
    }

    .chat-header {
        padding: 0.7rem;
    }

    .chat-header h3 {
        font-size: 0.9rem;
    }

    .chat-close {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .chat-body {
        padding: 1rem;
    }

    .chat-body p {
        font-size: 0.8rem;
    }

    .chat-footer {
        padding: 0.7rem;
        gap: 0.5rem;
    }

    .chat-option {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }

    .chat-option i {
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .chat-box {
        width: calc(100vw - 15px);
        max-width: 280px;
    }
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-screen p {
    margin-top: 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 15px;
        right: 15px;
    }
}


/* ==================== RESUME DOWNLOAD MODAL ==================== */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.resume-modal.active {
    opacity: 1;
    visibility: visible;
}

.resume-modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.resume-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.resume-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.resume-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.resume-modal-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.resume-modal-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.resume-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resume-modal-buttons .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 10px;
    font-weight: 600;
}

.resume-modal-buttons .btn i {
    font-size: 1.1rem;
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
    .resume-modal {
        padding: 15px;
    }

    .resume-modal-content {
        padding: 2rem 1.5rem;
        max-width: 400px;
    }

    .resume-modal-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .resume-modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .resume-modal-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .resume-modal-buttons {
        gap: 0.8rem;
    }

    .resume-modal-buttons .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .resume-modal-close {
        top: 12px;
        right: 12px;
        font-size: 1.3rem;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .resume-modal {
        padding: 10px;
    }

    .resume-modal-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
        border-radius: 12px;
    }

    .resume-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .resume-modal-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .resume-modal-content p {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .resume-modal-buttons {
        gap: 0.6rem;
    }

    .resume-modal-buttons .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .resume-modal-buttons .btn i {
        font-size: 1rem;
    }

    .resume-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .resume-modal-content {
        padding: 1.2rem 0.8rem;
    }

    .resume-modal-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .resume-modal-content h3 {
        font-size: 1rem;
    }

    .resume-modal-content p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .resume-modal-buttons .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}




/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1002;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
/* Lazy loading for images */
img[loading="lazy"] {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print styles for friendly resume */
@media print {
    body {
        background: white;
        color: black;
    }

    .navbar,
    .chat-widget,
    .language-selector,
    .scroll-progress,
    .theme-toggle,
    .nav-cv-btn,
    .hamburger,
    .hero-buttons,
    .hero-social,
    .cta-buttons {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .section-title {
        color: black;
    }

    .section-title::before,
    .section-title::after {
        background: black;
    }

    .timeline-content,
    .education-card,
    .skill-category {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .btn {
        display: none;
    }
}

/* ==================== MOBILE STICKY CONTACT BUTTON ==================== */
.mobile-contact-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-contact-btn {
        display: flex;
    }
}

.mobile-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

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

/* ==================== ENHANCED PROJECT CARD HOVER ==================== */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::after {
    left: 100%;
}

/* ==================== SCROLL SPY ACTIVE NAV LINK ==================== */
.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

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

/* ==================== IMPROVED SECTION TRANSITIONS ==================== */
section {
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 0.6s ease forwards;
}

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

/* Disable animation on mobile for performance */
@media (max-width: 768px) {
    section {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ==================== ENHANCED GALLERY HOVER ==================== */
.gallery-item {
    position: relative;
}



/* ==================== TABLET OPTIMIZATIONS ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ==================== LIGHTBOX STYLES ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 80%;
}

.lightbox-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: white;
}

.lightbox-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-caption {
        bottom: 15px;
        padding: 0.8rem 1.5rem;
        max-width: 90%;
    }
    
    .lightbox-caption h3 {
        font-size: 1rem;
    }
    
    .lightbox-caption p {
        font-size: 0.8rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* ==================== SIMPLIFIED BORDERS & COLORS ==================== */
.about-card,
.project-card,
.timeline-content,
.contact-item,
.volunteer-item,
.education-card,
.service-card {
    border-width: 2px !important;
}

/* Remove excessive gradients and simplify colors */
.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.btn-tertiary {
    background: var(--accent-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.experience-badge,
.role-badge {
    background: var(--accent-color);
}

/* Simplify section decorations */
.section-title::before,
.section-title::after {
    height: 2px;
    background: var(--accent-color);
    box-shadow: none;
}

/* Reduce mobile spacing */
@media (max-width: 480px) {
    section {
        padding: 30px 0 !important;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .quick-highlights {
        padding: 30px 0 !important;
    }
}

/* ==================== REFERENCES SECTION ==================== */
.references {
    padding: 30px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .references {
        padding: 20px 0 !important;
    }
}

.references-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .references-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.reference-card {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .reference-card {
        padding: 1rem;
        text-align: left;
        display: flex;
        gap: 0.8rem;
        align-items: flex-start;
    }
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

@media (max-width: 480px) {
    .reference-card:hover {
        transform: none;
    }
}

.reference-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .reference-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin: 0;
    }
}

.reference-content {
    flex: 1;
}

.reference-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .reference-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
}

.reference-card > p {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

@media (max-width: 480px) {
    .reference-card > p {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
}

.reference-note {
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
    line-height: 1.6;
    font-weight: 400 !important;
}

@media (max-width: 480px) {
    .reference-note {
        font-size: 0.7rem !important;
        line-height: 1.4;
        display: none;
    }
}

/* ==================== MICRO-INTERACTIONS ==================== */
/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Card lift on hover */
.project-card,
.service-card,
.education-card,
.volunteer-item,
.reference-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.service-card:hover,
.education-card:hover,
.volunteer-item:hover,
.reference-card:hover {
    transform: translateY(-5px);
}

/* Icon bounce on hover */
.feature-icon,
.service-icon,
.reference-icon,
.highlight-icon {
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon,
.service-card:hover .service-icon,
.reference-card:hover .reference-icon,
.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Smooth color transitions */
.nav-link,
.social-icon,
.btn,
a {
    transition: all 0.3s ease;
}

/* Input focus effects */
input:focus,
textarea:focus {
    transform: scale(1.01);
    transition: transform 0.2s ease;
}

/* Skill bar animation on hover */
.skill-item:hover .skill-progress {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* Timeline marker pulse */
.timeline-marker {
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

/* Smooth scroll indicator */
.scroll-to-top {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Image hover zoom */
.gallery-image {
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Text selection color */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

.scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* ==================== PROFESSIONAL MOBILE LAYOUT ==================== */
@media (max-width: 480px) {
    /* Reduce all section spacing */
    section {
        padding: 20px 0 !important;
    }
    
    .hero {
        padding: 30px 0 !important;
    }
    
    /* Compact section titles */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .section-title::before {
        top: -8px;
        height: 2px;
    }
    
    .section-title::after {
        height: 2px;
    }
    
    /* Simplify hero */
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .role-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin: 0 auto 1rem;
        line-height: 1.5;
    }
    
    /* Compact profile */
    .profile-image {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .profile-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-width: 3px;
    }
    
    .graduation-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.5rem;
    }
    
    /* Horizontal compact stats */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 1rem auto 0.8rem;
    }
    
    .stat-item {
        padding: 0.6rem 0.3rem;
        min-height: auto;
    }
    
    .stat-icon {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
        margin: 0.2rem 0;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-date {
        font-size: 0.6rem;
        margin-top: 0.2rem;
    }
    
    /* Compact buttons */
    .hero-buttons {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Smaller social icons */
    .social-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Compact cards */
    .highlight-card,
    .feature-item,
    .education-card,
    .project-card,
    .service-card,
    .volunteer-item,
    .reference-card {
        padding: 0.8rem !important;
        min-height: auto !important;
        border-radius: 8px;
    }
    
    /* Remove card icons or make smaller */
    .highlight-icon,
    .feature-icon,
    .education-icon,
    .project-icon,
    .service-icon,
    .volunteer-icon,
    .reference-icon {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    /* Compact text */
    .highlight-card h3,
    .feature-item h4,
    .education-card h3,
    .project-card h3,
    .service-card h3,
    .volunteer-text h3,
    .reference-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .highlight-card p,
    .feature-item p,
    .project-card p,
    .service-card p,
    .volunteer-text p,
    .reference-note {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    /* Compact timeline */
    .timeline-content {
        padding: 0.8rem;
    }
    
    .timeline-content h3 {
        font-size: 0.85rem;
    }
    
    .company {
        font-size: 0.75rem;
    }
    
    .period {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .experience-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .responsibilities {
        font-size: 0.7rem;
    }
    
    .responsibilities li {
        padding: 0.15rem 0;
        padding-left: 0.8rem;
    }
    
    /* Compact info grid */
    .info-item {
        padding: 0.6rem;
        min-height: auto;
    }
    
    .info-icon {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .info-label {
        font-size: 0.6rem;
    }
    
    .info-value {
        font-size: 0.75rem;
    }
    
    /* Compact contact */
    .contact-item {
        padding: 0.7rem;
        gap: 0.6rem;
        min-height: auto;
    }
    
    .contact-item i {
        font-size: 1rem;
    }
    
    .contact-item h4 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-item p {
        font-size: 0.7rem;
    }
    
    /* Remove floating shapes on mobile */
    .floating-shape {
        display: none;
    }
    
    /* Simplify backgrounds */
    .hero,
    .quick-highlights,
    .cta-banner {
        background: #1e293b !important;
    }
    
    /* Remove decorative pseudo-elements */
    section::before,
    section::after,
    .hero::before,
    .about::before,
    .projects::before,
    .services::before,
    .gallery::after,
    .volunteer::before,
    .contact::before {
        display: none;
    }
    
    /* Thinner borders */
    .about-card,
    .project-card,
    .timeline-content,
    .contact-item,
    .volunteer-item,
    .education-card,
    .service-card,
    .reference-card {
        border-width: 1px !important;
    }
    
    /* Remove excessive shadows */
    .about-card,
    .project-card,
    .education-card,
    .service-card,
    .volunteer-item,
    .reference-card,
    .contact-item,
    .timeline-content {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Disable animations for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Keep only essential transitions */
    .btn,
    .nav-link,
    a {
        transition: opacity 0.2s ease !important;
    }
    
    /* Compact gallery */
    .gallery-grid {
        gap: 0.5rem;
    }
    
    .gallery-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    /* Compact CTA */
    .cta-banner h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .cta-banner p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        gap: 0.5rem;
    }
    
    /* Compact project details */
    .project-details {
        padding: 0.5rem;
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .project-tech {
        gap: 0.3rem;
    }
    
    .project-tech span {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Force CTA button sizes on mobile */
@media (max-width: 480px) {
    .cta-banner .btn,
    .cta-buttons .btn,
    .cta-buttons a.btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.7rem !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .cta-banner .btn i,
    .cta-buttons .btn i {
        font-size: 0.75rem !important;
    }
}




/* ==================== PARTICLE BACKGROUND ====================*/
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==================== CURSOR TRAIL ====================*/
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 0.5s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

/* ==================== TYPING ANIMATION ====================*/
.typing-text {
    display: inline-block;
    border-right: 3px solid var(--accent-color);
    padding-right: 5px;
    animation: blink 0.7s infinite;
    color: var(--text-dark);
    text-shadow: 
        0 0 10px rgba(102, 126, 234, 0.5),
        0 0 20px rgba(102, 126, 234, 0.3),
        0 0 30px rgba(102, 126, 234, 0.2);
    font-weight: 700;
}

body.dark-mode .typing-text {
    text-shadow: 
        0 0 10px rgba(102, 126, 234, 0.8),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 30px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2);
}

@keyframes blink {
    0%, 100% { border-color: var(--accent-color); }
    50% { border-color: transparent; }
}

/* ==================== CONFETTI ====================*/
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 10000;
    animation: confettiFall linear forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== ACHIEVEMENT NOTIFICATION ====================*/
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideInRight 0.5s ease, slideOutRight 0.5s ease 2.5s forwards;
    font-weight: 600;
}

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

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

/* ==================== SMOOTH PAGE TRANSITIONS ====================*/
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 3D CARD FLIP ====================*/
.project-card,
.education-card,
.highlight-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
}

.project-card:active,
.education-card:active,
.highlight-card:active {
    transform: rotateY(10deg) scale(0.98);
}

/* ==================== SOUND TOGGLE BUTTON ====================*/
.sound-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sound-toggle:active {
    transform: scale(0.95);
}

/* ==================== PARALLAX EFFECTS ====================*/
.hero-background {
    transition: transform 0.5s ease-out;
}

/* ==================== RESPONSIVE ADJUSTMENTS ====================*/
@media (max-width: 768px) {
    .cursor-trail {
        display: none;
    }
    
    .achievement-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .sound-toggle {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .typing-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .achievement-notification {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
    
    .sound-toggle {
        bottom: 65px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    
    .confetti {
        width: 8px;
        height: 8px;
    }
}

/* ==================== ANIMATED SVG ILLUSTRATIONS ====================*/
.svg-illustration {
    animation: svgDraw 2s ease-in-out;
}

@keyframes svgDraw {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.svg-icon {
    transition: all 0.3s ease;
}

.svg-icon:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* ==================== ENHANCED HOVER EFFECTS ====================*/
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ==================== SECTION TRANSITIONS ====================*/
section {
    position: relative;
    z-index: 1;
}

/* ==================== GLOWING EFFECTS ====================*/
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
                0 0 40px rgba(102, 126, 234, 0.4),
                0 0 60px rgba(102, 126, 234, 0.2);
}

/* ==================== PERFORMANCE OPTIMIZATIONS ====================*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-trail,
    .confetti,
    #particle-canvas {
        display: none !important;
    }
}

/* SVG Background Responsive */
.svg-mobile {
    display: none;
}

@media (max-width: 767px) {
    .svg-desktop {
        display: none;
    }
    
    .svg-mobile {
        display: block;
    }
}


/* ==================== RESUME MODAL ==================== */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.resume-modal.active {
    opacity: 1;
    visibility: visible;
}

.resume-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.resume-modal.active .resume-modal-content {
    transform: scale(1) translateY(0);
}

.resume-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1rem;
}

.resume-modal-close:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.resume-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.resume-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.resume-modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.resume-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.resume-modal-buttons .btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .resume-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .resume-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .resume-modal-content h3 {
        font-size: 1.25rem;
    }
}


/* ==================== MOBILE MENU BACKDROP ==================== */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-menu-backdrop {
        display: none;
    }
}


/* ==================== NAVBAR ENTRANCE ANIMATION ==================== */
@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: navbarSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Floating navbar pulse effect on hover */
.navbar.floating .nav-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode .navbar.floating .nav-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.4);
}
