/* 
* Sovan Das Portfolio - Main Stylesheet
* Author: Sovan Das
*/

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: hsl(183, 100%, 74%); /* Electric Blue */
    --accent: hsl(183, 100%, 74%); /* Electric Blue */
    --background: hsl(240, 10%, 3.9%); /* Deep dark charcoal */
    --foreground: hsl(0, 0%, 98%); /* Bright off-white */
    --card: hsl(240, 5%, 10%); /* Slightly lighter dark for cards */
    --muted-foreground: hsl(240, 5%, 64.9%); /* Softer gray for muted text */
    
    /* Legacy color mappings for compatibility */
    --secondary-color: hsl(240, 5%, 10%);
    --dark-color: hsl(240, 10%, 3.9%);
    --light-dark-color: hsl(240, 5%, 10%);
    --text-color: hsl(0, 0%, 98%);
    --gray-color: hsl(240, 5%, 64.9%);
    --light-gray: rgba(255, 255, 255, 0.1);
    --dark-gray: rgba(0, 0, 0, 0.5);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    /* Section Spacing */
    --section-spacing: 60px;
    --section-padding: var(--section-spacing) 0;
    --section-divider-height: 3px;
    --section-divider-gradient: linear-gradient(90deg, var(--primary-color), transparent);
    --card-spacing: 25px;
    --element-spacing: 20px;

    /* Transitions */

/* Site Background */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--background);
    overflow: hidden;
}

@keyframes matrix-bg {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.1);
    }
}


@keyframes matrix-drop {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    color: #0f0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    overflow: hidden;
}

    --transition: all 0.3s ease;

    /* Shadows */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 0 10px rgba(0, 0, 0, 0.2);

    /* Dimensions */
    --nav-height: 70px;
    --section-padding: 80px 0;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-color);
}

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: var(--section-padding);
    margin: 0;
    position: relative;
    overflow: hidden;
}

section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(78, 204, 163, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    z-index: -1;
    pointer-events: none;
}

section:hover::after {
    width: 150%;
    height: 150%;
}

section + section {
    padding-top: var(--section-spacing);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--section-divider-height);
    background: var(--section-divider-gradient);
    z-index: 1;
}

/* Global card styling for consistency */
.project-card, .education-card, .certification-card, 
.achievement-card, .exp-card, .skill-category, 
.platform-achievements, .contact-item, .contact-form {
    margin-bottom: var(--card-spacing);
    padding: var(--element-spacing);
    border-radius: 12px;
    background-color: rgba(26, 26, 41, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(118, 218, 255, 0.2);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3cb38c;
}

/* ===== UTILITY CLASSES ===== */
.section-title {
    position: relative;
    font-size: 2.3rem;
    margin-bottom: 35px;
    margin-top: 0;
    text-align: center;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(78, 204, 163, 0.5);
    transition: all 0.5s ease;
}

section:hover .section-title {
    text-shadow: 0 0 15px rgba(78, 204, 163, 0.3);
}

section:hover .section-title::after {
    width: 100px;
    box-shadow: 0 0 15px rgba(78, 204, 163, 0.8);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: #3cb38c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(118, 218, 255, 0.1);
    transition: var(--transition);
    height: var(--nav-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    max-width: 1250px;
}

.logo {
    margin-left: 0;
}

.logo a {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(78, 204, 163, 0.3));
    transition: all 0.3s ease;
}

.logo a:hover .logo-img {
    filter: drop-shadow(0 0 12px rgba(78, 204, 163, 0.6));
    transform: scale(1.05);
}

.logo a:hover {
    background: rgba(78, 204, 163, 0.1);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .logo {
        margin-left: 0;
    }
    
    .logo a {
        font-size: clamp(1.2rem, 1.8vw, 1.5rem);
        padding: 0.4rem 0.6rem;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1vw, 10px);
}

.nav-links li {
    position: relative;
}

.nav-link {
    position: relative;
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    font-weight: 500;
    padding: clamp(6px, 0.8vw, 10px) clamp(8px, 1vw, 12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    display: block;
}

.nav-link:hover, 
.nav-link.active {
    background: rgba(78, 204, 163, 0.15);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.nav-link:hover::before, 
.nav-link.active::before {
    transform: scaleX(1);
}

@media screen and (max-width: 768px) {
    .nav-link {
        font-size: 1.1rem;
        padding: 15px 16px;
        text-align: center;
        width: 100%;
        border-radius: 8px;
        background: rgba(78, 204, 163, 0.05);
        margin: 5px 0;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(78, 204, 163, 0.2);
        transform: translateX(5px);
    }

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    background-color: var(--background);
    overflow: hidden;
}

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

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.hero-text h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    white-space: nowrap;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.terminal-container {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
    margin: 25px auto;
    border: 1px solid #0f0;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

@media screen and (max-width: 576px) {
    .terminal-container {
        padding: 15px 10px;
        margin: 15px auto;
        min-height: 50px;
    }

    .terminal-text {
        font-size: 0.9rem;
    }
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 255, 0, 0.05), transparent);
    pointer-events: none;
}

.terminal-prompt {
    color: #0f0;
    margin-right: 10px;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

.terminal-text {
    color: #0f0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.7);
    font-weight: 500;
    padding: 2px 0;
}

.typewriter {
    display: inline-block;
    white-space: nowrap;
    border-right: 2px solid #0f0;
    overflow: hidden;
    position: relative;
    animation: pulse 1.2s ease-in-out infinite;
    padding-right: 4px;
}

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

.typewriter::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.typing-text {
    display: inline-block;
    animation: typing-erase 8s steps(40) infinite;
}

@keyframes typing-erase {
    0%, 50%, 100% {
        width: 0;
    }
    25%, 75% {
        width: 100%;
    }
}

.social-links {
    display: flex;
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-dark-color);
    margin-right: 15px;
    transition: var(--transition);
}

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

.social-links a i {
    font-size: 1.2rem;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 40px;
}

.hero-image .profile-image {
    margin-top: 20px;
}

.profile-svg {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 10px rgba(78, 204, 163, 0.3));
}

@media screen and (min-width: 992px) {
    .hero-content {
        justify-content: space-between;
        gap: 30px;
    }

    .hero-image {
        display: flex;
        justify-content: flex-end;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

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

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

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

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

.animate-item {
    opacity: 0;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scaleUp {
    animation: scaleUp 0.6s ease-out forwards;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(145deg, var(--dark-color), var(--light-dark-color));
    position: relative;
    overflow: hidden;
}

.about-details {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(78, 204, 163, 0.1);
    transition: all 0.3s ease;
}

.about-details:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(78, 204, 163, 0.1);
}

.about-details p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: linear-gradient(145deg, var(--light-dark-color), var(--dark-color));
    position: relative;
}

/* ===== SOFT SKILLS SECTION ===== */
.soft-skills {
    background: linear-gradient(145deg, var(--dark-color), var(--light-dark-color));
    position: relative;
    overflow: hidden;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.soft-skill-item {
    background: rgba(35, 41, 49, 0.8);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    border: 1px solid rgba(78, 204, 163, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.soft-skill-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.soft-skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.soft-skill-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(78, 204, 163, 0.15);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    border: 1px solid rgba(78, 204, 163, 0.2);
}

.soft-skill-content {
    flex: 1;
}

.soft-skill-content h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.soft-skill-content p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .soft-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .soft-skill-item {
        padding: 20px;
        /* Simplify animations on mobile */
        animation: none !important;
        transform: none !important;
    }
    
    /* Technical skills mobile fixes */
    #skills {
        overflow-x: hidden;
    }

    #skills .section-content {
        overflow: visible !important;
        will-change: auto;
        transform: translateZ(0);
    }
    
    .skill-category {
        overflow: visible !important;
        height: auto !important;
        margin-bottom: 30px;
        padding: 15px;
        transform: none !important;
        animation: none !important;
        will-change: auto;
        backface-visibility: hidden;
    }
    
    .skill-item {
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 15px;
        /* Simplify animations */
        transform: none !important;
        transition: none !important;
    }
    
    .skill-bar {
        height: 8px;
        margin-top: 5px;
        position: relative;
        transform: translateZ(0);
    }
    
    .skill-level {
        transition: width 0.5s ease-out !important;
    }
    
    .skill-description {
        font-size: 0.85rem;
    }
    
    .skill-description ul li {
        margin-bottom: 2px;
    }
    
    /* Specifically target tool grids on mobile */
    .tool-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        transform: translateZ(0);
    }
    
    .tool-item {
        flex-basis: 100%;
        margin-bottom: 8px;
        /* Reduce animations */
        transform: none !important;
        transition: background-color 0.3s ease !important;
    }
    
    /* Simplified animation for tool items */
    .tool-item:hover {
        transform: none !important;
        background-color: rgba(35, 41, 49, 0.95);
    }
    
    /* Better handling of nested scrolling areas */
    .skill-items {
        transform: translateZ(0);
        overflow: visible !important;
    }
}

.skill-category {
    background-color: var(--light-dark-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.skill-category:has(.tool-grid) {
    background: var(--light-dark-color);
    border: 1px solid rgba(78, 204, 163, 0.1);
}

.skill-category:last-child {
    margin-bottom: 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    contain: content;
}

@media screen and (max-width: 576px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.tool-item {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(78, 204, 163, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tool-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 8px rgba(78, 204, 163, 0.3);
}

.tool-item:active {
    transform: translateY(-2px);
}

.tool-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(78, 204, 163, 0.2) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.tool-item:hover::after {
    opacity: 1;
    transform: scale(2);
}

.tool-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tool-item:hover .tool-name {
    transform: translateY(-2px);
    color: #5eddb7;
}

.tool-name i {
    transition: transform 0.3s ease;
}

.tool-item:hover .tool-name i {
    transform: scale(1.2) rotate(10deg);
}

.tool-name i {
    font-size: 1.1em;
}

.tool-description {
    color: var(--gray-color);
    font-size: 0.9em;
    line-height: 1.4;
}

.skill-category:hover {
    transform: translateY(-3px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    contain: layout;
}

@media screen and (max-width: 576px) {
    .skill-items {
        grid-template-columns: 1fr;
        gap: 15px;
        display: flex;
        flex-direction: column;
        contain: content;
    }
    
    .skill-category {
        padding: 15px 10px;
        overflow: visible;
        max-height: none !important;
        border: 1px solid rgba(78, 204, 163, 0.2);
        background-color: rgba(35, 41, 49, 0.8);
        /* Simplify rendering */
        will-change: auto;
        transform: none !important;
    }
    
    .skill-category h3 {
        font-size: 1.3rem;
    }
    
    /* Reduce layout shifts during loading */
    #skills .section-content {
        min-height: 100px;
        contain: layout;
    }
    
    /* Minimize effects */
    #skills .section-content::after,
    .skill-category::after,
    .skill-category::before {
        display: none;
    }
    
    /* Better mobile rendering for nested lists */
    .skill-description ul {
        padding: 0;
        margin: 0;
    }
    
    /* Turn off transitions for better performance */
    .skill-level {
        transition-duration: 0.3s !important;
    }
    
    /* Fix mobile skill bar display */
    .skill-bar {
        overflow: hidden;
        background-color: rgba(35, 41, 49, 0.95);
    }
}

.skill-item {
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
    border-left: 2px solid rgba(78, 204, 163, 0.3);
    transition: transform 0.3s ease, border-left 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
    border-left: 3px solid var(--primary-color);
}

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

.skill-item:hover .skill-name {
    color: var(--primary-color);
}

.skill-name::before {
    content: '• ';
    color: var(--primary-color);
    margin-right: 5px;
}

.skill-name span {
    font-size: 0.85rem;
    background-color: rgba(78, 204, 163, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill-item:hover .skill-name span {
    background-color: rgba(78, 204, 163, 0.3);
    transform: scale(1.05);
}

.skill-description {
    margin: 8px 0;
    font-size: 0.9rem;
}

.skill-description ul {
    list-style-type: none;
    padding-left: 0;
}

.skill-description ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
    color: var(--gray-color);
}

.skill-description ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-inset);
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s ease;
}

.skill-bar:hover .skill-level {
    box-shadow: 0 0 10px rgba(78, 204, 163, 0.5);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background: linear-gradient(145deg, var(--light-dark-color), var(--dark-color));
    position: relative;
}

.experience-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.exp-card {
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.exp-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.exp-card:hover::before {
    width: 6px;
}

.exp-header {
    margin-bottom: 20px;
    position: relative;
}

.exp-position {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.exp-company {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.company-name {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.company-location {
    color: var(--gray-color);
    font-size: 0.9rem;
    padding: 4px 12px;
    background: rgba(78, 204, 163, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(78, 204, 163, 0.2);
}

.exp-duration {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.exp-content {
    padding-top: 15px;
    border-top: 1px solid rgba(78, 204, 163, 0.1);
}

.exp-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.exp-responsibilities li {
    position: relative;
    padding-left: 25px;
    color: var(--gray-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

.exp-responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.exp-responsibilities li:hover {
    color: var(--text-color);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .experience {
        padding: 40px 0;
    }

    .exp-card {
        padding: 20px;
    }

    .exp-position {
        font-size: 1.3rem;
    }

    .exp-company {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .exp-responsibilities {
        grid-template-columns: 1fr;
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(145deg, var(--dark-color), var(--light-dark-color));
    position: relative;
    margin: 0;
    z-index: 0;
}

.platform-achievements {
    overflow: hidden;
    position: relative;
}

.platform-achievements:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.platform-achievements::before {
    content: '';
    position: absolute;
    top: 0;
left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.platform-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: var(--element-spacing) 0;
    padding: 0 var(--element-spacing) var(--element-spacing);
}

.platform-item {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(78, 204, 163, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-item:hover {
    transform: translateY(-3px);
    border-color: rgba(78, 204, 163, 0.3);
    background: rgba(26, 26, 26, 0.8);
}

.platform-name {
    color: var(--text-color);
    font-weight: 600;
}

.platform-count {
    color: var(--primary-color);
    font-size: 0.9em;
}

.project-card {
    background-color: rgba(35, 41, 49, 0.95);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(78, 204, 163, 0.2);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.project-content {
    padding: var(--element-spacing);
}

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

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.project-description {
    margin-bottom: 25px;
}

.project-description ul {
    list-style-type: none;
    padding-left: 5px;
}

.project-description ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.project-description ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.project-tags span {
    display: inline-block;
    background-color: rgba(78, 204, 163, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(78, 204, 163, 0.3);
    transition: var(--transition);
}

.project-tags span:hover {
    background-color: rgba(78, 204, 163, 0.2);
    transform: translateY(-2px);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(78, 204, 163, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(78, 204, 163, 0.3);
    transition: var(--transition);
    font-weight: 500;
}

.project-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 204, 163, 0.3);
}

.project-link i {
    font-size: 0.9rem;
}

/* ===== EDUCATION SECTION ===== */
.education {
    background: linear-gradient(145deg, var(--dark-color), var(--light-dark-color));
    position: relative;
    padding-bottom: calc(var(--section-spacing) * 0.75);
}

.education-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: rgba(35, 41, 49, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(78, 204, 163, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(78, 204, 163, 0.15);
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(78, 204, 163, 0.2);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.education-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(78, 204, 163, 0.3);
}

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

.education-institution {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-institution::before {
    content: '';
    font-size: 1.4rem;
}

.education-year, .education-gpa {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.education-year {
    background-color: rgba(78, 204, 163, 0.1);
    display: inline-block;
    padding: 8px 15px 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 5px;
    border: 1px solid rgba(78, 204, 163, 0.2);
}

.education-year::before {
    content: '';
    position: absolute;
    left: 0;
}

.education-gpa::before {
    content: '';
    position: absolute;
    left: 0;
}

.education-highlights {
    margin-top: 20px;
    padding: 15px;
    background: rgba(78, 204, 163, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(78, 204, 163, 0.2);
}

.education-highlights h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    color: var(--gray-color);
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

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

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-section {
    background: linear-gradient(145deg, var(--dark-color), var(--light-dark-color));
    position: relative;
    padding-top: var(--section-spacing);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-spacing);
    margin-top: var(--element-spacing);
}

.certification-card {
    display: flex;
    align-items: flex-start;
    gap: var(--element-spacing);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(78, 204, 163, 0.1);
}

.certification-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.certification-content {
    flex: 1;
}

.certification-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.certification-content .issuer {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(78, 204, 163, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(78, 204, 163, 0.3);
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background: rgba(78, 204, 163, 0.2);
    transform: translateY(-2px);
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-section {
    background: linear-gradient(145deg, var(--light-dark-color), var(--dark-color));
    position: relative;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-spacing);
    margin-top: var(--element-spacing);
}

.achievement-card {
    display: flex;
    align-items: flex-start;
    gap: var(--element-spacing);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(78, 204, 163, 0.1);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.achievement-content {
    flex: 1;
}

.achievement-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.achievement-rank {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.achievement-organizer {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .certifications-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LANGUAGES SECTION ===== */
.languages {
    background: linear-gradient(145deg, var(--dark-color), var(--light-dark-color));
    position: relative;
}

.language-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-spacing);
    list-style: none;
    margin-top: var(--element-spacing);
}

.language-list li {
    display: flex;
    align-items: center;
    background-color: rgba(35, 41, 49, 0.95);
    padding: var(--element-spacing);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(78, 204, 163, 0.1);
    position: relative;
    overflow: hidden;
}

.language-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.language-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    background-color: rgba(35, 41, 49, 0.95);
}

.language-list li i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 20px;
    transition: var(--transition);
}

.language-list li:hover i {
    transform: scale(1.1);
}

.language-list li span {
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-list li span::after {
    content: attr(data-level);
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(78, 204, 163, 0.1);
    border: 1px solid rgba(78, 204, 163, 0.3);
    transition: all 0.3s ease;
}

.language-list li:hover span::after {
    background: rgba(78, 204, 163, 0.2);
    border-color: var(--primary-color);
}

.language-list li span[data-level="Native"]::after {
    background: rgba(78, 204, 163, 0.2);
    border-color: var(--primary-color);
}

.language-list li span[data-level="Fluent"]::after {
    background: rgba(78, 204, 163, 0.15);
    border-color: rgba(78, 204, 163, 0.5);
}

.language-list li span[data-level="Professional"]::after {
    background: rgba(78, 204, 163, 0.1);
    border-color: rgba(78, 204, 163, 0.3);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(145deg, var(--light-dark-color), var(--dark-color));
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--section-divider-height);
    background: var(--section-divider-gradient);
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    top: -150px;
    right: -150px;
    border-radius: 50%;
    animation: pulse-glow 8s ease-in-out infinite alternate;
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.05;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

.contact-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: -80px;
    animation: float 12s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 25%;
    animation: float 20s ease-in-out infinite 2s;
}

.contact .section-content {
    max-width: 900px;
    margin: var(--element-spacing) auto 0;
    position: relative;
    z-index: 2;
}

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

.contact-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    background: rgba(35, 41, 49, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.3s; }
.contact-item:nth-child(3) { animation-delay: 0.5s; }
.contact-item:nth-child(4) { animation-delay: 0.7s; }

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

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.contact-item::after,
.project-card::after,
.education-card::after,
.exp-card::after,
.certification-card::after,
.achievement-card::after,
.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, var(--primary-color), transparent);
    transition: width 0.5s ease;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(78, 204, 163, 0.1);
    border-color: var(--primary-color);
    z-index: 3;
}

.contact-item:hover::before,
.project-card:hover::before,
.education-card:hover::before,
.exp-card:hover::before,
.certification-card:hover::before,
.achievement-card:hover::before,
.skill-category:hover::before {
    width: 8px;
}

.contact-item:hover::after,
.project-card:hover::after,
.education-card:hover::after,
.exp-card:hover::after,
.certification-card:hover::after,
.achievement-card:hover::after,
.skill-category:hover::after {
    width: 100%;
}

.contact-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    text-shadow: 0 0 15px rgba(78, 204, 163, 0.3);
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #5eddb7;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s ease;
}

.contact-item:hover h3 {
    color: var(--primary-color);
}

.contact-item h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.contact-item:hover h3::after {
    width: 50px;
}

.contact-item p, .contact-item a {
    color: var(--gray-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 2px 4px;
}

.contact-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(78, 204, 163, 0.3);
}

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

.contact-item .social-links {
    justify-content: center;
    margin-bottom: 0;
    perspective: 1000px;
}

.contact-item .social-links a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    margin: 0 5px;
}

.contact-item .social-links a:hover {
    transform: translateY(-5px) rotateY(10deg) scale(1.1);
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(78, 204, 163, 0.5);
}

.contact-form {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.contact-form:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 204, 163, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 204, 163, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--light-dark-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

.footer-content p {
    color: var(--gray-color);
    width: 100%;
    text-align: center;
}

footer .social-links {
    margin-bottom: 0;
}

/* ===== FORM MESSAGE ===== */
.form-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: rgba(78, 204, 163, 0.15);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.form-message.error {
    background-color: rgba(240, 82, 82, 0.15);
    color: #f05252;
    border-left: 4px solid #f05252;
}

.form-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* ===== FLOATING BUTTONS ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.back-to-top a {
    color: var(--dark-color);
}

.back-to-top:hover {
    background-color: #3cb38c;
    transform: translateY(-3px);
}

.download-resume {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--light-dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
}

.download-resume a {
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.download-resume::after {
    content: 'Resume';
    position: absolute;
    top: 50%;
    left: -70px;
    transform: translateY(-50%);
    background-color: var(--light-dark-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.download-resume:hover::after {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .download-resume {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    :root {
        --section-spacing: 50px;
        --card-spacing: 20px;
        --element-spacing: 18px;
    }

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

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-date {
        width: 100%;
        padding-right: 0;
        text-align: left;
        padding-left: 80px;
        position: relative;
        top: 0;
    }

    .timeline-content {
        width: 100%;
        padding-left: 80px;
        left: 0;
        margin-top: 10px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-spacing: 40px;
        --card-spacing: 18px;
        --element-spacing: 15px;
        --nav-height: 60px;
    }

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

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 10px;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .profile-image {
        width: 220px;
        height: 220px;
    }

    .hero-text {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .social-links {
        justify-content: center;
        margin: 25px auto;
        max-width: 280px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .social-links a {
        margin-right: 0;
    }

    .cta-buttons {
        justify-content: center;
        margin: 0 auto;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: clamp(20px, 5vh, 40px) 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: clamp(15px, 3vh, 25px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        left: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        height: calc(100vh - var(--nav-height));
        padding-bottom: 120px; /* Extra padding to ensure last items are visible */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links li {
        width: 90%;
        margin: 0 auto;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: clamp(8px, 2vh, 15px);
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        background: rgba(78, 204, 163, 0.05);
    }

    .hamburger {
        display: block;
    }

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

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

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

    .contact .section-content {
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --section-spacing: 35px;
        --card-spacing: 15px;
        --element-spacing: 12px;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .social-links {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin: 20px auto;
    }

    .social-links a {
        transform: scale(1.1);
        margin: 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .profile-image {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        border: 4px solid var(--primary-color);
        box-shadow: 0 0 20px rgba(78, 204, 163, 0.3);
        animation: glowing-profile 3s ease-in-out infinite;
        object-fit: cover;
        position: relative;
        display: block;
        margin: 0 auto;
    }

    .profile-image::before {
        content: '';
        position: absolute;
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        top: -15px;
        left: -15px;
        background: conic-gradient(transparent, transparent, transparent, white);
        border-radius: 50%;
        animation: rotate-lights 8s linear infinite, pulse-lights 2s ease-in-out infinite;
        opacity: 0.6;
        z-index: -1;
    }

    .profile-image::after {
        content: '';
        position: absolute;
        width: calc(100% + 15px);
        height: calc(100% + 15px);
        top: -7.5px;
        left: -7.5px;
        background: conic-gradient(transparent 30%, rgba(255, 255, 255, 0.8) 40%, transparent 50%);
        border-radius: 50%;
        animation: rotate-lights 5s linear infinite reverse;
        opacity: 0.4;
        z-index: -1;
    }

    @keyframes glowing-profile {
        0% {
            box-shadow: 0 0 15px rgba(78, 204, 163, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
        }
        50% {
            box-shadow: 0 0 30px rgba(78, 204, 163, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
        }
        100% {
            box-shadow: 0 0 15px rgba(78, 204, 163, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
        }
    }

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

    @keyframes pulse-lights {
        0%, 100% {
            opacity: 0.4;
        }
        50% {
            opacity: 0.7;
        }
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}
/* Footer styling */
footer {
    background-color: rgba(26, 26, 26, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}
/* Contact Form Styling */
.contact-form {
    background-color: rgba(30, 30, 50, 0.6);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 30px auto 0;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(78, 204, 163, 0.5);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

#formStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

#formStatus.success {
    display: block;
    background-color: rgba(56, 193, 114, 0.2);
    border: 1px solid rgba(56, 193, 114, 0.5);
    color: #38C172;
}

#formStatus.error {
    display: block;
    background-color: rgba(227, 52, 47, 0.2);
    border: 1px solid rgba(227, 52, 47, 0.5);
    color: #E3342F;
}