/* Global Styles */
:root {
    --primary-color: #0071e3;
    --primary-gradient: linear-gradient(135deg, #0071e3, #40a9ff, #1890ff);
    --secondary-color: #111827;
    --accent-color: #0054AA;
    --light-color: #ffffff;
    --dark-color: #111827;
    --gray-color: #666666;
    --success-color: #10b981;
    --bg-color: #ffffff;
    --card-bg: #f5f5f7;
    --text-color: #1d1d1f;
    --border-color: #e6e6e6;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --header-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --blur-effect: blur(80px);
    --card-min-height: 150px;
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #6930c3;
    --primary-gradient: linear-gradient(135deg, #5e60ce, #6930c3, #7400b8);
    --secondary-color: #a2a8d3;
    --accent-color: #7400b8;
    --light-color: #f8f9fa;
    --dark-color: #e9ecef;
    --gray-color: #adb5bd;
    --bg-color: rgba(15, 15, 15, 0.8);
    --card-bg: rgba(25, 25, 25, 0.85);
    --text-color: #e9ecef;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.011em;
}

/* Optimized background system - no duplication, better performance */
body {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Light theme - simple subtle gradient */
body:not(.dark-theme) {
    background: 
        var(--bg-color),
        radial-gradient(at 20% 80%, rgba(0, 113, 227, 0.02) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(64, 169, 255, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Dark theme - optimized single background */
body.dark-theme {
    background: 
        var(--bg-color),
        radial-gradient(at 20% 20%, rgba(116, 0, 184, 0.15) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(105, 48, 195, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Removed heavy animation that was causing lag */

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

body:not(.dark-theme) .primary-btn {
    background: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;
}

body:not(.dark-theme) .primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

body:not(.dark-theme) .primary-btn:hover::before {
    opacity: 1;
}

body:not(.dark-theme) .secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

body:not(.dark-theme) .secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 113, 227, 0.1);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

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

body:not(.dark-theme) .secondary-btn:hover::before {
    opacity: 1;
}

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

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.secondary-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(105, 48, 195, 0.4);
}

.secondary-btn:hover::before {
    opacity: 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(15, 15, 15, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.animated-text {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-color);
    letter-spacing: -0.035em;
    position: relative;
}

.gradient-text {
    background-size: 300% 300%;
    background-image: linear-gradient(
        -45deg,
        var(--primary-color) 0%,
        #6930c3 25%,
        #7400b8 50%,
        #5e60ce 75%,
        var(--primary-color) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated-gradient 6s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.gradient-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: line-animation 6s ease-in-out infinite;
    z-index: -1;
}

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

@keyframes line-animation {
    0% {
        transform: scaleX(0);
    }
    20% {
        transform: scaleX(1);
    }
    80% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

.hero-description {
    margin-bottom: 30px;
}

.hero-description p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    font-weight: 400;
}

.highlight {
    position: relative;
    color: white;
    font-weight: 600;
    z-index: 1;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-gradient);
    z-index: -1;
    opacity: 0.5;
}

.hero-tagline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.tag-item i {
    font-size: 1.1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.tag-item:hover i {
    transform: scale(1.2);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, 
        rgba(105, 48, 195, 0.8) 0%, 
        rgba(105, 48, 195, 0) 70%);
    z-index: -1;
    opacity: 0.4;
    filter: blur(80px);
    animation: pulseGlow 5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.profile-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: scale(1.1);
}

.profile-card:hover img {
    transform: scale(1.15);
}

.hero-experience {
    display: flex;
    gap: 20px;
    margin-top: -50px;
    z-index: 2;
}

.exp-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    width: 160px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.exp-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.exp-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 5;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    animation: pulseMouseBorder 2s infinite alternate;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

@media screen and (max-width: 1200px) {
    .animated-text {
        font-size: 4.5rem;
    }
    
    .profile-card {
        width: 350px;
        height: 350px;
    }
}

@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-tagline {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .profile-card {
        width: 300px;
        height: 300px;
    }
    
    .animated-text {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-tagline {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .profile-card {
        width: 300px;
        height: 300px;
    }
    
    .animated-text {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 576px) {
    .animated-text {
        font-size: 2.8rem;
    }
    
    .profile-card {
        width: 250px;
        height: 250px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-experience {
        flex-direction: row;
        gap: 15px;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
    }
    
    .exp-item {
        width: 140px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-description p {
        font-size: 1.1rem;
    }
}

/* About Section Styles */
.about {
    position: relative;
    overflow: hidden;
}

.section-intro {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 25px auto 0;
    border-radius: 2px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    max-width: 650px;
}

.about-intro {
    margin-bottom: 40px;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    min-height: var(--card-min-height);
}

.about-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.3rem;
    color: white;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.card-content p span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.quote {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 40px;
    margin: 40px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quote:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.quote p {
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.quote i.fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.quote i.fa-quote-right {
    position: absolute;
    bottom: 40px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.quote span {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.about-profile {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    position: relative;
    width: 450px;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image, .real-photo {
    position: absolute;
    width: 420px;
    height: 520px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.profile-image.active, .real-photo.active {
    opacity: 1;
    transform: rotateY(0) translateZ(0);
    z-index: 2;
}

.profile-image:not(.active), .real-photo:not(.active) {
    opacity: 0;
    transform: rotateY(-90deg) translateZ(100px);
    z-index: 1;
    pointer-events: none;
}

.profile-image::after, .real-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.gradient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, 
        rgba(105, 48, 195, 0.8) 0%, 
        rgba(105, 48, 195, 0) 70%);
    z-index: -1;
    opacity: 0.4;
    filter: blur(80px);
    animation: pulseGlow 5s infinite alternate ease-in-out;
}

.profile-image img, .real-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: scale(1);
}

.profile-image:hover img, .real-photo:hover img {
    transform: scale(1.08);
}

.profile-caption {
    position: absolute;
    bottom: 0;
    text-align: center;
}

.profile-caption p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media screen and (max-width: 1200px) {
    .profile-image, .real-photo {
        width: 380px;
        height: 480px;
    }
    
    .profile-image-container {
        width: 400px;
        height: 520px;
    }
}

@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .about-intro {
        text-align: center;
    }
    
    .profile-image-container {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    .profile-image, .real-photo {
        width: 300px;
        height: 380px;
    }
    
    .profile-image-container {
        width: 320px;
        height: 420px;
    }
    
    .about-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .card-icon {
        margin-bottom: 15px;
    }
}

/* Skills Section Styles */
.skills {
    position: relative;
    overflow: hidden;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(105, 48, 195, 0.2);
}

.category-icon i {
    font-size: 1.3rem;
    color: white;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.02em;
}

.slider-container {
    display: flex;
    gap: 20px;
    animation: slideAnimation 25s linear infinite;
}

.slider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.slider-item i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slider-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.languages-slider {
    direction: ltr;
    overflow: hidden;
}

.tools-slider {
    direction: rtl;
    overflow: hidden;
}

@keyframes slideAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 7 - 140px)); /* Adjust based on item width and gap */
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: stretch;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: var(--card-min-height);
}

.skill-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 1.3rem;
    color: white;
}

.skill-content {
    flex: 1;
}

.skill-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.skill-level {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.level-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transform: translateX(-100%);
    transition: transform 1.5s cubic-bezier(0.1, 0.5, 0.25, 1);
}

.skill-card.animated .level-bar {
    transform: translateX(0);
}

@media screen and (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .slider-item {
        min-width: 100px;
        height: 100px;
    }
    
    @keyframes slideAnimation {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 7 - 140px));
        }
    }
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

@media screen and (max-width: 768px) {
    .projects .container {
        width: 100%;
        padding: 0;
        max-width: none;
    }
    
    .projects .section-title {
        padding: 0 20px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

@media screen and (max-width: 768px) {
    .projects-carousel-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        width: 100%;
    }
    
    .projects-grid {
        display: contents;
    }
    
    /* Custom scrollbar styling */
    .projects-carousel-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .projects-carousel-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .projects-carousel-wrapper::-webkit-scrollbar-thumb {
        background: rgba(114, 9, 183, 0.5);
        border-radius: 10px;
    }
    
    .projects-carousel-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(114, 9, 183, 0.7);
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .projects-carousel {
        align-items: flex-start;
    }
    
    .project-card {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        height: 540px;
        min-height: 540px;
        max-height: 540px;
        flex-shrink: 0;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
    }
    
    .project-card .project-image {
        flex-shrink: 0;
        height: 200px;
    }
    
    .project-card .project-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .project-card .project-content h3 {
        margin-bottom: 10px;
        height: 50px;
        display: flex;
        align-items: center;
    }
    
    .project-card .project-content p {
        height: 110px;
        margin-bottom: 15px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
    }
    
    .project-card .project-tags {
        min-height: 36px;
        margin-bottom: 15px;
    }
    
    .project-card .project-links {
        margin-top: auto;
    }
}

@media screen and (max-width: 576px) {
    .project-card {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        height: 520px;
        min-height: 520px;
        max-height: 520px;
    }
    
    .project-card .project-image {
        height: 180px;
    }
    
    .project-card .project-content {
        padding: 20px;
    }
    
    .project-card .project-content h3 {
        font-size: 1.1rem;
        height: 48px;
    }
    
    .project-card .project-content p {
        height: 105px;
    }
}

@media screen and (max-width: 400px) {
    .project-card {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 500px;
        min-height: 500px;
        max-height: 500px;
    }
    
    .project-card .project-image {
        height: 170px;
    }
    
    .project-card .project-content {
        padding: 18px;
    }
    
    .project-card .project-content h3 {
        height: 46px;
    }
    
    .project-card .project-content p {
        height: 100px;
    }
}

.project-card a.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-indent: -9999px;
    overflow: hidden;
}

.project-links {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 20;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.project-links a:hover::after {
    width: 100%;
}

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

@media screen and (max-width: 576px) {
    .project-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .project-links a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, transparent, transparent, transparent, rgba(67, 97, 238, 0.2), rgba(114, 9, 183, 0.2), rgba(247, 37, 133, 0.2));
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
    animation: gradientBG 5s ease infinite;
}

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

.project-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(114, 9, 183, 0.3);
}

.project-image {
    height: 220px;
    overflow: hidden;
    background-color: rgba(15, 15, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}


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

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

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

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.project-card:hover .project-content h3::after {
    width: 100%;
}

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

@media screen and (max-width: 576px) {
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

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

@media screen and (max-width: 576px) {
    .project-tags {
        gap: 6px;
        margin-bottom: 15px;
    }
}

.project-tags span {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

@media screen and (max-width: 576px) {
    .project-tags span {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Projects Carousel */
.projects-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .projects-carousel-wrapper {
        padding: 0;
        position: relative;
        margin: 0;
    }
    
    /* Hide carousel navigation arrows on mobile, use swipe instead */
    .projects-carousel-wrapper .carousel-nav {
        display: none;
    }
}

.projects-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .projects-carousel {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
        overflow: visible;
        padding: 20px 15px;
    }
}

@media screen and (max-width: 576px) {
    .projects-carousel {
        gap: 12px;
        padding: 20px 10px;
    }
}

@media screen and (max-width: 400px) {
    .projects-carousel {
        gap: 10px;
        padding: 15px 8px;
    }
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@media screen and (max-width: 768px) {
    .carousel-slide {
        display: contents !important;
    }
    
    .carousel-slide:not(.active) {
        display: contents !important;
    }
}

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

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(114, 9, 183, 0.4);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(114, 9, 183, 0.5);
}

@media screen and (max-width: 768px) {
    .carousel-indicators {
        display: none;
    }
}

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

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.project-links a:hover::after {
    width: 100%;
}

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

.project-links a i {
    margin-right: 5px;
}

/* Designs Section */
.designs {
    background-color: var(--card-bg);
    padding: 100px 0;
}

.swiper {
    width: 100%;
    height: 600px;
    margin-bottom: 40px;
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 20px;
}

.swiper-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.swiper-button-next,
.swiper-button-prev {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-gradient);
    opacity: 1;
    transform: scale(1.2);
}

.design-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.design-description p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.design-video {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.design-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive styling for the video on mobile */
@media screen and (max-width: 800px) {
    .design-video {
        height: 300px;
    }
    
    .design-video video {
        object-fit: contain;
    }
}

/* Achievements Section */
.achievements {
    background-color: var(--bg-color);
    padding: 100px 0;
}

.achievements-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.achievements-column h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.achievements-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.cert-list,
.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.cert-item,
.hobby-item {
    display: flex;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-height: var(--card-min-height);
}

.cert-item:hover,
.hobby-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.cert-icon,
.hobby-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.cert-icon i,
.hobby-icon i {
    font-size: 1.3rem;
    color: white;
}

.cert-details h4,
.hobby-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cert-details p,
.hobby-details span {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cert-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.achievement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.achievement-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.achievement-card:hover h3::after {
    width: 100%;
}

/* Contact Section */
.contact {
    background-color: var(--card-bg);
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.contact-left {
    width: 100%;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.contact-right {
    width: 100%;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: none !important;
}

.contact-right h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.contact-right h3::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230071e3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

body:not(.dark-theme) .contact-right h3::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230071e3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E");
}

body.dark-theme .contact-right h3::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E");
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--bg-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: var(--card-min-height);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
}

.contact-item:hover::before {
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    min-height: 60px;
}

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

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

.social-link-item i, .social-link-item span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link-item:hover i, .social-link-item:hover span {
    color: white;
    transform: scale(1.05);
}

.social-link-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: rgba(105, 48, 195, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link-item i {
    font-size: 1.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.social-link-item span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link-item:hover i,
.social-link-item:hover span {
    color: white;
}

/* Footer */
footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

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

.footer-content p {
    margin-bottom: 20px;
}

.resume-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.resume-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    filter: brightness(1.2);
}

.resume-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(105, 48, 195, 0.4);
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .achievements-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-card {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .burger {
        display: block;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media screen and (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .cert-grid,
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

/* Consistent container padding */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

@media screen and (max-width: 768px) {
    section {
        padding: 70px 0;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 50px 0;
    }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

@media screen and (max-width: 768px) {
    .section-title {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Consistent section spacing */
#home, #about, #skills, #projects, #achievements, #contact {
    scroll-margin-top: 80px;
}

/* Fix social links slider */
.auto-slider.social-slider {
    padding: 10px 0;
    margin: 0;
    overflow: visible;
}

.social-slider .slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    width: 100%;
    animation: none;
    padding: 0;
}

.social-slider .slider-item {
    min-width: auto;
    height: auto;
    padding: 15px;
    margin: 0;
    width: 100%;
}

/* Fix footer styling */
footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.resume-link {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 10px;
}

/* Add consistent hover animations for all cards */
.about-card, 
.skill-card, 
.project-card, 
.cert-item, 
.hobby-item, 
.contact-item,
.slider-item,
.social-link-item,
.exp-item,
.tag-item {
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                box-shadow 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                background-color 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                border-color 0.25s cubic-bezier(0.2, 0, 0.4, 1);
    position: relative;
    overflow: hidden;
}

.about-card:hover, 
.skill-card:hover, 
.project-card:hover, 
.cert-item:hover, 
.hobby-item:hover, 
.contact-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Add subtle glow effect on hover */
.about-card::after,
.skill-card::after,
.project-card::after,
.cert-item::after,
.hobby-item::after,
.contact-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.about-card:hover::after,
.skill-card:hover::after,
.project-card:hover::after,
.cert-item:hover::after,
.hobby-item:hover::after,
.contact-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Improved project card styling */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, transparent, transparent, transparent, rgba(67, 97, 238, 0.2), rgba(114, 9, 183, 0.2), rgba(247, 37, 133, 0.2));
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
    animation: gradientBG 5s ease infinite;
}

/* Improved project image hover effect */
.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* Make project tags more interactive */
.project-tags span {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Improve consistency of exp items */
.hero-experience {
    display: flex;
    gap: 20px;
    margin-top: -50px;
    z-index: 2;
}

.exp-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    width: 160px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.exp-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Improve hero tag items */
.hero-tagline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.tag-item i {
    font-size: 1.1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.tag-item:hover i {
    transform: scale(1.2);
}

/* Fix skill card level bar animation */
.skill-level {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.level-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transform: translateX(-100%);
    transition: transform 1.5s cubic-bezier(0.1, 0.5, 0.25, 1);
}

.skill-card.animated .level-bar {
    transform: translateX(0);
}

/* Add scroll reveal for sections */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.2, 0, 0.4, 1), 
                transform 0.5s cubic-bezier(0.2, 0, 0.4, 1);
}

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

/* Improve social links */
.social-link-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    position: relative;
}

.social-link-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: rgba(105, 48, 195, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link-item:hover::after {
    opacity: 0.9;
}

.social-link-item i, 
.social-link-item span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link-item:hover i, 
.social-link-item:hover span {
    color: white;
    transform: scale(1.05);
}

/* Improved footer styling */
.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

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

.resume-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.resume-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    filter: brightness(1.2);
}

.resume-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(105, 48, 195, 0.4);
}

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

/* Animation timing improvements for snappier feel */
.card-icon i,
.skill-icon i,
.tag-item i,
.social-link-item i,
.slider-item i,
.quote i {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.4, 1);
}

.about-card, 
.skill-card, 
.project-card, 
.cert-item, 
.hobby-item, 
.contact-item,
.slider-item,
.social-link-item,
.exp-item,
.tag-item {
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                box-shadow 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                background-color 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                border-color 0.25s cubic-bezier(0.2, 0, 0.4, 1);
}

.level-bar {
    transition: transform 0.8s cubic-bezier(0.17, 0.67, 0.3, 0.96);
}

.gradient-text::after {
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.3, 0.96);
}

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

@keyframes line-animation {
    0% {
        transform: scaleX(0);
    }
    20% {
        transform: scaleX(1);
    }
    80% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Snappier hover effects */
.btn:hover, 
.social-link-item:hover, 
.tag-item:hover {
    transform: translateY(-5px) scale(1.02);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                box-shadow 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                background-color 0.25s cubic-bezier(0.2, 0, 0.4, 1);
}

.tag-item:hover i,
.card-icon:hover i,
.skill-icon:hover i,
.social-link-item:hover i {
    transform: scale(1.15);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.4, 1);
}

/* Improved reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.2, 0, 0.4, 1), 
                transform 0.5s cubic-bezier(0.2, 0, 0.4, 1);
}

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

/* Social Link Cards for the Find Me Online section */
.social-cards-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: none !important;
}

.social-cards-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background: none;
    pointer-events: none;
    box-shadow: none !important;
}

body:not(.dark-theme) .social-cards-container::after {
    background: none;
    box-shadow: none !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.social-cards-container::-webkit-scrollbar {
    height: 6px;
}

.social-cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.social-cards-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.social-card {
    flex: 0 0 auto;
    min-width: 120px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.4, 1), 
                border-color 0.25s cubic-bezier(0.2, 0, 0.4, 1),
                background-color 0.25s cubic-bezier(0.2, 0, 0.4, 1);
    position: relative;
    overflow: hidden;
    height: 120px;
    box-shadow: none !important;
}

body:not(.dark-theme) .social-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

body:not(.dark-theme) .social-card i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    background: none;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.social-card i {
    font-size: 2.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.4, 1);
}

.social-card:hover i {
    transform: scale(1.15);
}

.social-card span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: color 0.25s cubic-bezier(0.2, 0, 0.4, 1);
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.2, 0, 0.4, 1);
    z-index: 0;
}

.social-card:hover::before {
    opacity: 0.15;
}

.social-card:hover span {
    color: white;
}

.social-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.4, 1);
    z-index: 1;
}

.social-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-cards-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.social-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0, 0.4, 1);
    position: relative;
    overflow: hidden;
}

.social-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.2, 0, 0.4, 1);
    z-index: 0;
}

.social-nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-nav-btn:hover::before {
    opacity: 1;
}

.social-nav-btn i {
    font-size: 1.5rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    transition: color 0.25s cubic-bezier(0.2, 0, 0.4, 1);
}

.social-nav-btn:hover i {
    color: white;
}

body:not(.dark-theme) .social-nav-btn {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

body:not(.dark-theme) .social-nav-btn:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 113, 227, 0.2);
}

body:not(.dark-theme) .social-nav-btn i {
    color: var(--dark-color);
}

body:not(.dark-theme) .social-nav-btn:hover i {
    color: white;
}

/* Light mode scrollbar */
body:not(.dark-theme) .social-cards-container {
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.05);
}

body:not(.dark-theme) .social-cards-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.dark-theme) .social-cards-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

@media screen and (max-width: 576px) {
    .social-cards-container {
        gap: 10px;
    }
    
    .social-card {
        min-width: 100px;
        padding: 15px 20px;
        height: 110px;
    }
    
    .social-card i {
        font-size: 1.8rem;
    }
    
    .social-card span {
        font-size: 0.85rem;
    }
    
    .social-cards-nav {
        margin-top: 15px;
    }
    
    .social-nav-btn {
        width: 45px;
        height: 45px;
    }
}

@keyframes pulseMouseBorder {
    0% {
        border-color: rgba(255, 255, 255, 0.3);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.6);
    }
}

body:not(.dark-theme) .social-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
    border-color: rgba(0, 113, 227, 0.2);
}

body:not(.dark-theme) .social-card span {
    color: var(--dark-color);
}

body:not(.dark-theme) .social-card i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    background: none;
}

body:not(.dark-theme) .social-card:hover span {
    color: white;
    -webkit-text-fill-color: white;
}

body:not(.dark-theme) .social-card:hover i {
    color: white;
    -webkit-text-fill-color: white;
}

body:not(.dark-theme) .social-card::before {
    background: var(--primary-gradient);
}

/* Light mode text color fixes */
body:not(.dark-theme) {
    --text-color: #333333;
    --gray-color: #666666;
}

body:not(.dark-theme) .hero-description p {
    color: #333333;
}

body:not(.dark-theme) .about-intro p {
    color: #333333;
}

body:not(.dark-theme) .project-content p {
    color: #555555;
}

body:not(.dark-theme) .card-content p {
    color: #555555;
}

body:not(.dark-theme) .cert-details p,
body:not(.dark-theme) .hobby-details p,
body:not(.dark-theme) .contact-item p {
    color: #555555;
}

/* Improve Achievements & Interests cards in light mode */
body:not(.dark-theme) .cert-item,
body:not(.dark-theme) .hobby-item {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
}

body:not(.dark-theme) .cert-item:hover,
body:not(.dark-theme) .hobby-item:hover {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.12);
    transform: translateY(-5px);
    border-color: rgba(0, 113, 227, 0.2);
}

body:not(.dark-theme) .cert-icon,
body:not(.dark-theme) .hobby-icon {
    background-color: rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.15);
}

body:not(.dark-theme) .cert-icon i,
body:not(.dark-theme) .hobby-icon i {
    color: var(--primary-color);
}

body:not(.dark-theme) .cert-details h4,
body:not(.dark-theme) .hobby-details h4 {
    color: #333333;
}

body:not(.dark-theme) .cert-details a {
    color: var(--primary-color);
    font-weight: 600;
}

body:not(.dark-theme) .cert-details a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Fix section titles and headings in light mode */
body:not(.dark-theme) .section-title {
    color: #222222;
}

body:not(.dark-theme) h2, 
body:not(.dark-theme) h3, 
body:not(.dark-theme) h4 {
    color: #222222;
}

body:not(.dark-theme) .achievements-column h3,
body:not(.dark-theme) .contact-right h3 {
    color: #222222;
}

body:not(.dark-theme) .achievements-column h3::after {
    background-color: var(--primary-color);
}

/* Fix quote in light mode */
body:not(.dark-theme) .quote {
    background-color: rgba(0, 113, 227, 0.05);
    border: 1px solid rgba(0, 113, 227, 0.1);
}

body:not(.dark-theme) .quote p {
    color: #333333;
}

body:not(.dark-theme) .quote i {
    color: var(--primary-color);
}

/* Fix tag items in light mode */
body:not(.dark-theme) .tag-item {
    background-color: rgba(0, 113, 227, 0.05);
    border: 1px solid rgba(0, 113, 227, 0.1);
    color: #333333;
}

body:not(.dark-theme) .tag-item:hover {
    background-color: rgba(0, 113, 227, 0.1);
    border-color: rgba(0, 113, 227, 0.2);
}

/* Fix experience items in light mode */
body:not(.dark-theme) .exp-item {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e6e6;
}

body:not(.dark-theme) .exp-item:hover {
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.12);
    transform: translateY(-5px);
    border-color: rgba(0, 113, 227, 0.2);
}

body:not(.dark-theme) .exp-number {
    color: var(--primary-color);
}

body:not(.dark-theme) .exp-text {
    color: #555555;
}

/* Fix hero badge in light mode */
body:not(.dark-theme) .hero-badge,
body:not(.dark-theme) .section-badge {
    background-color: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.15);
    color: var(--primary-color);
}

/* Fix highlight text in light mode */
body:not(.dark-theme) .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

body:not(.dark-theme) .highlight::after {
    background: rgba(0, 113, 227, 0.15);
}

/* Improve social cards hover in light mode */
body:not(.dark-theme) .social-card:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.2) !important;
    transform: translateY(-5px);
}

body:not(.dark-theme) .social-card:hover i {
    background: none;
    color: white;
    -webkit-text-fill-color: white;
}

body:not(.dark-theme) .social-card:hover span {
    color: white;
    -webkit-text-fill-color: white;
}

body:not(.dark-theme) .social-card::before {
    background: none;
}

body:not(.dark-theme) .social-cards-container {
    background-color: transparent;
    box-shadow: none !important;
}

body:not(.dark-theme) .contact-right {
    background-color: #f5f5f7;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* Improve primary button in dark mode */
.dark-theme .primary-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(105, 48, 195, 0.4);
}

.dark-theme .primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7400b8, #6930c3, #5e60ce);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
    border-radius: 50px;
}

.dark-theme .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(105, 48, 195, 0.5);
}

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

.dark-theme .primary-btn i {
    color: white;
    margin-right: 8px;
}

/* Improve secondary button in dark mode */
.dark-theme .secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dark-theme .secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
    border-radius: 50px;
}

.dark-theme .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.dark-theme .secondary-btn:hover::before {
    opacity: 1;
}

.dark-theme .secondary-btn i {
    color: white;
    margin-right: 8px;
}

/* Add focus states for accessibility */
.primary-btn:focus,
.secondary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(105, 48, 195, 0.4);
}

.dark-theme .primary-btn:focus {
    box-shadow: 0 0 0 3px rgba(105, 48, 195, 0.6);
}

.dark-theme .secondary-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

body:not(.dark-theme) .primary-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.4);
}

body:not(.dark-theme) .secondary-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
}

.primary-btn i,
.secondary-btn i {
    margin-right: 8px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.primary-btn:hover i,
.secondary-btn:hover i {
    transform: translateX(2px);
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}

.loader::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    animation: gradientMove 2s ease infinite;
    box-shadow: 0 0 20px rgba(105, 48, 195, 0.5);
}

.loader::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background-color: var(--bg-color);
}

.loader-text {
    position: absolute;
    bottom: -40px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Hide scrollbar during preloading */
body.loading {
    overflow: hidden;
}

/* Optimize animations */
.floating-blob {
    will-change: transform;
}

.hero-visual, .hero-text {
    will-change: transform;
}

.profile-card, .card-glow {
    will-change: transform;
}

/* Defer non-critical CSS */
.reveal:not(.active) {
    transition: none !important;
}

/* Optimize performance during scrolling */
body.is-scrolling .floating-blob {
    animation-play-state: paused;
}

body.is-scrolling .card-glow {
    animation-play-state: paused;
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .floating-blob {
        opacity: 0.5;
    }
    
    .card-glow {
        opacity: 0.3;
    }
    
    @keyframes pulseGlow {
        0% {
            opacity: 0.2;
            transform: scale(0.95);
        }
        100% {
            opacity: 0.3;
            transform: scale(1.05);
        }
    }
}

/* Add passive hint for touch events */
.social-cards-container {
    touch-action: pan-x;
}
