/* Reset & Base Styles */
/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: fadeInScale 0.8s ease-out;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInScale 0.8s ease-out, gradientShift 3s ease infinite, pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 206, 209, 0.5));
}

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

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

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

@media (max-width: 768px) {
    .loader-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

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

:root {
    --primary-color: #00CED1;
    --secondary-color: #20B2AA;
    --text-color: #ffffff;
    --text-light: #a0a0a0;
    --bg-color: #000000;
    --bg-light: #1a1a1a;
    --border-color: #333333;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 20px rgba(0, 206, 209, 0.3), 0 0 40px rgba(0, 206, 209, 0.1);
    --glow-secondary: 0 0 30px rgba(32, 178, 170, 0.4);
}

[data-theme="light"] {
    --primary-color: #00CED1;
    --secondary-color: #20B2AA;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glow-primary: 0 0 20px rgba(0, 206, 209, 0.2), 0 0 40px rgba(0, 206, 209, 0.1);
    --glow-secondary: 0 0 30px rgba(32, 178, 170, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(1400px 700px at -15% -25%, rgba(0, 206, 209, 0.15), transparent 65%),
        radial-gradient(1200px 600px at 115% 15%, rgba(32, 178, 170, 0.12), transparent 65%),
        radial-gradient(800px 400px at 50% 50%, rgba(0, 206, 209, 0.08), transparent 70%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 206, 209, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 206, 209, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

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

.language-selector {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 206, 209, 0.2);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(0, 206, 209, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.3);
}

.lang-btn i {
    font-size: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 206, 209, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(32, 178, 170, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 50%, var(--bg-color) 100%);
    color: var(--text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('portfolio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.profile-image {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.profile-image::before {
    display: none;
}

.profile-image::after {
    display: none;
}


.profile-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: none;
    box-shadow: 
        0 0 40px rgba(0, 206, 209, 0.3),
        0 0 80px rgba(0, 206, 209, 0.15);
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    background: none;
    outline: none;
}

.profile-image:hover img {
    transform: scale(1.05);
    box-shadow: 
        0 0 60px rgba(0, 206, 209, 0.4),
        0 0 100px rgba(0, 206, 209, 0.2);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, 
        #ffffff 0%,
        rgba(0, 206, 209, 0.9) 30%,
        #ffffff 60%,
        rgba(32, 178, 170, 0.9) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s both, titleShimmer 4s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 206, 209, 0.3));
}

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

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

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(0, 206, 209, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    padding: 0 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 206, 209, 0.4), 0 0 20px rgba(0, 206, 209, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: 400px;
    display: block;
    opacity: 1;
    visibility: visible;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    position: relative;
    display: block;
}

.section-title.text-left {
    text-align: left;
    margin-bottom: 0.5rem;
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

.section-subtitle.text-left {
    text-align: left;
    margin-bottom: 2rem;
    margin-top: 0;
}

.certificates-container {
    padding: 80px 24px;
    max-width: 1200px;
}

.certificates-grid {
    margin-top: 0;
}

@media (max-width: 768px) {
    .certificates-grid {
        gap: 1rem;
    }
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-item span {
    font-weight: 600;
    color: var(--text-color);
}

/* Timeline Section */
.timeline {
    padding: 80px 0;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.timeline-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 1rem;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--primary-color) 10%,
        var(--secondary-color) 50%,
        var(--primary-color) 90%,
        transparent 100%
    );
    border-radius: 2px;
    opacity: 0.4;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-card {
    background: linear-gradient(135deg, 
        rgba(0, 206, 209, 0.05) 0%,
        rgba(32, 178, 170, 0.03) 50%,
        rgba(0, 206, 209, 0.05) 100%
    );
    border: 2px solid transparent;
    border-radius: 28px;
    padding: 2.5rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 206, 209, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    margin-left: 80px;
    z-index: 1;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--primary-color),
        transparent
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: shimmer 3s infinite;
}

.timeline-card::after {
    content: '';
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 
        0 0 20px rgba(0, 206, 209, 0.6),
        0 0 40px rgba(0, 206, 209, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: all 0.4s ease;
}

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

.timeline-card[data-reveal].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-card:hover {
    transform: translateY(-12px) translateX(10px) scale(1.03);
    border-color: rgba(0, 206, 209, 0.6);
    box-shadow: 
        0 25px 70px rgba(0, 206, 209, 0.4),
        0 0 60px rgba(0, 206, 209, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 206, 209, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 206, 209, 0.12) 0%,
        rgba(32, 178, 170, 0.08) 50%,
        rgba(0, 206, 209, 0.12) 100%
    );
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover::after {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 
        0 0 30px rgba(0, 206, 209, 0.8),
        0 0 60px rgba(0, 206, 209, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    color: white;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 
        0 10px 30px rgba(0, 206, 209, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    animation: gradientShift 3s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-year-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.timeline-card:hover .timeline-year-badge {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 15px 40px rgba(0, 206, 209, 0.7),
        0 0 50px rgba(0, 206, 209, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.timeline-card:hover .timeline-year-badge::before {
    opacity: 0.6;
}

.timeline-card-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        transparent 100%
    );
    border-radius: 3px;
    opacity: 0.4;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.timeline-card:hover .timeline-card-line {
    opacity: 0.8;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--secondary-color) 30%,
        var(--primary-color) 60%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

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

.timeline-card-body {
    position: relative;
}

.timeline-card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, 
        var(--text-color) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--text-color) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    text-shadow: 0 0 30px rgba(0, 206, 209, 0.3);
    animation: textShimmer 4s ease infinite;
}

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

.timeline-card:hover .timeline-card-body h3 {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 2s ease infinite;
    filter: drop-shadow(0 0 8px rgba(0, 206, 209, 0.5));
}

.timeline-card-body p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.timeline-card:hover .timeline-card-body p {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 30px;
        width: 3px;
    }

    .timeline-wrapper {
        gap: 2rem;
        padding: 1rem;
    }

    .timeline-card {
        padding: 1.8rem;
        margin-left: 60px;
    }

    .timeline-card::after {
        left: -60px;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .timeline-year-badge {
        min-width: 80px;
        height: 80px;
        font-size: 1.1rem;
        border-radius: 16px;
    }

    .timeline-card-body h3 {
        font-size: 1.3rem;
    }

    .timeline-card-body p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .timeline-wrapper::before {
        left: 20px;
        width: 2px;
    }

    .timeline-card {
        margin-left: 50px;
        padding: 1.5rem;
    }

    .timeline-card::after {
        left: -50px;
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .timeline-year-badge {
        min-width: 70px;
        height: 70px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .timeline-card-body h3 {
        font-size: 1.2rem;
    }
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--bg-light);
    transition: background-color 0.5s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 206, 209, 0.3),
        0 0 40px rgba(0, 206, 209, 0.15);
    border-color: rgba(0, 206, 209, 0.4);
    background: linear-gradient(135deg, 
        var(--bg-light) 0%,
        rgba(0, 206, 209, 0.05) 100%
    );
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

.projects-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    min-height: 500px;
    display: block;
    opacity: 1;
    visibility: visible;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 206, 209, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.contact-form:hover {
    border-color: rgba(0, 206, 209, 0.3);
    box-shadow: 0 12px 48px rgba(0, 206, 209, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 3px rgba(0, 206, 209, 0.1),
        0 4px 12px rgba(0, 206, 209, 0.2);
    transform: translateY(-2px);
}

.btn-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 206, 209, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 32px rgba(0, 206, 209, 0.5),
        0 0 20px rgba(0, 206, 209, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.2);
}

/* Form Message Styles */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.form-message.success {
    background: rgba(0, 206, 209, 0.15);
    border: 1px solid rgba(0, 206, 209, 0.4);
    color: #00CED1;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.2);
}

.form-message.error {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 206, 209, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
    transform: translateX(8px);
    border-color: rgba(0, 206, 209, 0.4);
    box-shadow: 0 8px 24px rgba(0, 206, 209, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(0, 206, 209, 0.2);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 206, 209, 0.5), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 206, 209, 0.3), transparent);
}

.footer-thanks {
    margin-bottom: 2rem;
}

.footer-thanks-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #00CED1;
    margin: 0;
    background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 206, 209, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 206, 209, 0.5));
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

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

.footer-social-link:hover {
    color: #00CED1;
    border-color: #00CED1;
    transform: translateY(-5px) scale(1.15);
    box-shadow: 
        0 10px 25px rgba(0, 206, 209, 0.4),
        0 0 20px rgba(0, 206, 209, 0.3);
    background: rgba(0, 206, 209, 0.15);
}

.footer-social-link:hover::before {
    width: 200px;
    height: 200px;
}

.footer-social-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.footer-copyright {
    margin-top: 1.5rem;
}

.footer-copyright-text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-copyright-text #currentYear {
    color: #00CED1;
    font-weight: 500;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
    animation: progressGradient 3s ease infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .language-selector {
        margin-left: 0;
        margin-right: 1rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .section-title.text-left {
        margin-bottom: 0.75rem;
    }

    .section-subtitle.text-left {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .certificates-container {
        padding: 60px 16px;
    }

    .timeline-container::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 0;
        margin-bottom: 2.5rem;
        align-items: flex-start;
    }

    .timeline-year {
        width: 80px;
        height: 80px;
        font-size: 0.85rem;
        position: static;
        left: auto;
        border-width: 2px;
        margin-bottom: 1rem;
        align-self: flex-start;
    }

    .timeline-content {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        border-radius: 12px;
        width: 100%;
    }

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

    .timeline-content p {
        font-size: 1rem;
    }

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-thanks-text {
        font-size: 1.1rem;
    }
    
    .footer-social {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .footer-copyright-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .section-title.text-left {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .section-subtitle.text-left {
        margin-bottom: 1.25rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .certificates-container {
        padding: 40px 12px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

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

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

    .timeline-year {
        width: 70px;
        height: 70px;
        font-size: 0.75rem;
        border-width: 2px;
    }
}

#skills { padding: 80px 0; }
#skills .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
#skills h2 { 
    font-size: 3.5rem; 
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#skills .subtitle { 
    opacity: .8; 
    margin-bottom: 1.25rem; 
    text-align: center;
    font-size: 0.95rem;
}
#skills .skills-grid { display: grid; gap: 14px; }
#skills .skills-grid h3 {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 6px;
    opacity: 0.85;
    color: var(--primary-color);
}
#skills .skills-grid h3:first-child {
    margin-top: 0;
}
@media (min-width: 900px) { #skills .skills-grid { grid-template-columns: 1fr 1fr; } }

.skill-item[data-skill] { 
    background: rgba(255,255,255,.05); 
    border: 1px solid rgba(0, 206, 209, 0.15); 
    border-radius: 16px; 
    padding: 20px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
.skill-item[data-skill]:hover { 
    transform: translateY(-6px) scale(1.02); 
    border-color: rgba(0, 206, 209, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 206, 209, 0.3),
        0 0 20px rgba(0, 206, 209, 0.2),
        inset 0 0 20px rgba(0, 206, 209, 0.05);
    background: rgba(255,255,255,.08);
}
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.skill-badge { 
    width: 48px; 
    height: 48px; 
    border-radius: 12px; 
    display: grid; 
    place-items: center; 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    font-size: 24px;
    flex-shrink: 0;
}
.skill-title { display: flex; align-items: center; gap: 8px; font-weight: 600; width: 100%; flex: 1; }
.skill-title .name { opacity: .95; font-size: 1.1rem; font-weight: 700; }
.skill-note { font-size: .9rem; opacity: .7; margin-top: 10px; line-height: 1.5; }
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.progress-wrap { 
    flex: 1;
    max-width: calc(100% - 70px);
    background: rgba(255,255,255,.08); 
    height: 14px; 
    border-radius: 999px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,.15);
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.progress-bar { 
    height: 100%; 
    width: 0%; 
    border-radius: 999px; 
    background: linear-gradient(90deg, #00CED1 0%, #20B2AA 50%, #00CED1 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    transform: translateZ(0); 
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 10px rgba(0, 206, 209, 0.5),
        0 0 20px rgba(0, 206, 209, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2.5s ease-in-out infinite;
}

.progress-percent {
    min-width: 40px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00CED1;
    text-shadow: 0 0 8px rgba(0, 206, 209, 0.5);
    opacity: 0.9;
}

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

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}
.progress-scale {
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.5;
}
[data-reveal] { opacity: 0; transform: translateY(10px); }
.visible { opacity: 1; transform: translateY(0); transition: all .45s ease; }
#skills .last-updated { margin-top: 10px; opacity: .6; font-size: .85rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  [data-reveal], .visible { opacity: 1 !important; transform: none !important; }
  .progress-bar { 
    transition: width 0.3s ease !important; 
    animation: none !important; 
    background: linear-gradient(90deg, #00CED1, #20B2AA) !important;
  }
  .progress-bar::after { display: none !important; }
}

/* Tarihte Bugün Modal */
.history-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.history-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.history-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 206, 209, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

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

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 206, 209, 0.2);
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
}

.history-modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.history-modal-close {
    background: transparent;
    border: 1px solid rgba(0, 206, 209, 0.3);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.history-modal-close:hover {
    background: rgba(0, 206, 209, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.history-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.history-loading,
.history-error {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.history-loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.history-error i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    display: block;
}

.history-content {
    color: var(--text-color);
}

.history-event {
    background: rgba(0, 206, 209, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.history-event:hover {
    background: rgba(0, 206, 209, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.2);
}

.history-event-year {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-event-year::before {
    content: "📅";
    font-size: 1rem;
}

.history-event-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .history-modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .history-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .history-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .history-modal-body {
        padding: 1.5rem;
    }
    
    .history-event {
        padding: 1rem;
    }
}

