html {
    background: #292d35;
    background-attachment: fixed;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background: #292d35;
    color: #ABB2BF;
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(97, 175, 239, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 175, 239, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

body.loading {
    overflow: hidden;
}

/* Menü açıkken body scroll kilidi */
body.menu-open {
    overflow: hidden;
}

/* Menü açıkken özellikle hero ve hakkımda içeriklerini görsel olarak geri plana it */
body.menu-open .hero,
body.menu-open .about-section {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(97, 175, 239, 0.08), transparent 40%), radial-gradient(circle at 80% 30%, rgba(198, 120, 221, 0.08), transparent 40%), #1e2127;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.loader-controls {
    position: absolute;
    top: 16px;
    left: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.loader-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.loader-controls .red { background: #ff5f56; }
.loader-controls .yellow { background: #ffbd2e; }
.loader-controls .green { background: #27c93f; }

.loader-code {
    font-size: 14px;
    color: #C5D1E6;
    opacity: 0.95;
    font-family: 'Fira Code', monospace;
    min-height: 120px;
    text-align: left;
    position: relative;
    white-space: pre-line;
    padding: 30px 16px 12px;
    border-radius: 12px;
    border: 1px solid rgba(138, 180, 248, 0.15);
    background: radial-gradient(circle at 15% 20%, rgba(97, 175, 239, 0.07), transparent 45%), radial-gradient(circle at 85% 10%, rgba(198, 120, 221, 0.06), transparent 40%), #0f1117;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 20px 40px rgba(0,0,0,0.35);
    overflow: hidden;
}

.loader-code::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 16px;
    background: #8AB4F8;
    right: -12px;
    top: 6px;
    animation: caret 0.9s step-end infinite;
}

.loader-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #61AFEF 0%, #C678DD 50%, #98C379 100%);
    opacity: 0.5;
}

@keyframes caret {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1;
    padding: 60px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    background-color: #61AFEF;
    border-radius: 3px;
}

.logo-text {
    color: #ABB2BF;
    font-size: 18px;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(138, 180, 248, 0.3);
    background: rgba(41, 45, 53, 0.9);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: #8AB4F8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(41, 45, 53, 0.3);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    backdrop-filter: blur(5px);
    min-height: 44px;
    align-items: center;
    z-index: 1001;
    white-space: nowrap;
}

.language-selector {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fira Code', monospace;
    margin-right: 0;
    position: absolute;
    right: -110px;
    background: rgba(41, 45, 53, 0.3);
    padding: 6px 16px;
    border-radius: 25px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    backdrop-filter: blur(5px);
    height: 40px;
    z-index: 1001;
}

.lang-option {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ABB2BF;
    background-color: transparent;
    border: 1px solid transparent;
}

.lang-option:hover {
    color: #61AFEF;
    background-color: rgba(97, 175, 239, 0.1);
    transform: translateY(-1px);
}

.lang-option.active {
    color: #61AFEF;
    background-color: rgba(97, 175, 239, 0.15);
    border: 1px solid rgba(97, 175, 239, 0.3);
    font-weight: 600;
}

.lang-separator {
    color: #3C4043;
    font-size: 12px;
    font-weight: 300;
    user-select: none;
}

.nav-link {
    color: #ABB2BF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 25px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 180, 248, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #8AB4F8;
    background: rgba(138, 180, 248, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #8AB4F8;
    background: rgba(138, 180, 248, 0.15);
    box-shadow: 0 0 20px rgba(138, 180, 248, 0.2);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ABB2BF;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector:hover .dropdown-arrow {
    transform: rotate(180deg);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(97, 175, 239, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 180, 248, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #FFFFFF;
    font-family: 'Fira Code', monospace;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5EAF7 50%, #8AB4F8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(138, 180, 248, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #8AB4F8;
    font-family: 'Fira Code', monospace;
    font-style: italic;
    opacity: 0.95;
    letter-spacing: -0.3px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 17px;
    color: #C5D1E6;
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 95%;
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button {
    background: linear-gradient(135deg, rgba(97, 175, 239, 0.15) 0%, rgba(138, 180, 248, 0.15) 100%);
    border: 1.5px solid rgba(97, 175, 239, 0.6);
    color: #8AB4F8;
    padding: 16px 36px;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(97, 175, 239, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #61AFEF 0%, #8AB4F8 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(97, 175, 239, 0.4), 0 0 0 4px rgba(97, 175, 239, 0.1);
    border-color: #61AFEF;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ai-animation-container {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.ai-animation-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97, 175, 239, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.ai-animation {
    width: 360px;
    height: 360px;
    opacity: 0.95;
    filter: drop-shadow(0 0 40px rgba(97, 175, 239, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #8AB4F8;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    background: rgba(97, 175, 239, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(97, 175, 239, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(97, 175, 239, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 1s both, bounce 2s ease-in-out infinite 1.5s;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-indicator:hover {
    color: #61AFEF;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(97, 175, 239, 0.2);
    border-color: rgba(97, 175, 239, 0.5);
    box-shadow: 0 8px 30px rgba(97, 175, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.scroll-indicator:hover svg {
    transform: translateY(8px);
}

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

/* Animations - Removed complex animations, using GIF instead */

/* About Me Section */
.about-section {
    padding: 80px 0;
    background: transparent;
    min-height: 100vh;
    position: relative;
}



.about-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.about-header-inner {
    display: flex;
    flex-direction: column; /* image top then socials+btn */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
}

.profile-avatar {
    width: 176px; /* 2x larger avatar */
    height: 176px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(97, 175, 239, 0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 6px rgba(97,175,239,0.08);
}

.about-actions {
    display: flex;
    flex-direction: column; /* social links then button */
    align-items: center;
    gap: 14px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 900px) {
    .about-card-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-right {
        border-left: none;
        padding-left: 0;
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 0;
    color: #FFFFFF;
    border: 1px solid #3C4043;
    background: rgba(40, 44, 51, 0.6);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.github:hover { background: #24292e; color: #FFFFFF; border-color: #24292e; }
.social-link.linkedin:hover { background: #0a66c2; color: #FFFFFF; border-color: #0a66c2; }
.social-link.x:hover { background: #000000; color: #FFFFFF; border-color: #000000; }

.cv-button {
    background: linear-gradient(135deg, #61AFEF 0%, #4A9EFF 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(97, 175, 239, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.cv-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cv-button:hover::before {
    left: 100%;
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(97, 175, 239, 0.4);
}

.about-text {
    margin-bottom: 60px;
}

.within-card {
    max-width: 900px;
    margin: 8px 0 0;
}

.about-card {
    padding: 32px;
    margin-bottom: 36px; /* space before Technologies card */
    text-align: left;
    background: rgba(30, 33, 39, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 175, 239, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(138, 180, 248, 0.2);
    border-color: rgba(138, 180, 248, 0.3);
}

.about-card-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* give text a bit more room */
    gap: 32px;
    align-items: center;
}

.about-left,
.about-right { width: 100%; }

.about-left {
    display: flex;
    align-items: center;
    justify-content: center; /* center avatar+links within left half */
}

.about-left .about-header-inner {
    align-items: center; /* center inside the left column */
}

.about-right {
    border-left: 1px solid rgba(97, 175, 239, 0.12);
    padding-left: 24px;
}

.about-right p {
    font-size: 18px;
    line-height: 1.9;
    color: #D7DAE0;
    white-space: pre-line; /* honor line breaks in content */
    text-align: justify;
}

.about-header {
    margin-bottom: 50px;
    position: relative;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8AB4F8, transparent);
    border-radius: 1px;
}

.about-header h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

.about-section-title {
    font-size: 24px;
    color: #8AB4F8; /* unified primary heading color */
    margin-bottom: 16px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.about-text h4 {
    font-size: 24px;
    color: #61AFEF;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(97, 175, 239, 0.2);
}

.about-text p {
    font-size: 16px;
    color: #D7DAE0; /* softer body color for better contrast */
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-card {
        padding: 20px;
    }
    .about-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .about-left {
        justify-content: center;
    }
    .about-actions {
        align-items: center;
    }
    .about-right {
        width: 100%;
        text-align: left;
    }
    .about-text.within-card {
        margin: 12px 0 0; /* metni biraz aşağı kaydır */
    }
    .about-text p {
        text-align: justify;
        width: 100%;
    }
}

.skills-section {
    margin-bottom: 36px; /* unified section spacing */
}

.section-card {
    background: rgba(30, 33, 39, 0.6);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 175, 239, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(138, 180, 248, 0.2);
    border-color: rgba(138, 180, 248, 0.25);
}

.skills-section h4 {
    font-size: 24px; /* match Hakkımda */
    color: #8AB4F8; /* unify section heading color */
    margin-bottom: 20px; /* match Hakkımda spacing */
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: left;
    padding-left: 0; /* align with section's own padding */
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

/* Technologies Section */
.technologies-section {
    padding: 80px 0;
    margin-bottom: 0;
}

.technologies-content {
    max-width: 1200px;
    margin: 0 auto;
}

.technologies-header {
    margin-bottom: 50px;
    position: relative;
}

.technologies-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8AB4F8, transparent);
    border-radius: 1px;
}

.technologies-header h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

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

.skill-category {
    background: rgba(40, 44, 51, 0.8);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(97, 175, 239, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(97, 175, 239, 0.2), 0 0 0 1px rgba(138, 180, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(138, 180, 248, 0.35);
}

.skill-category h5 {
    font-size: 22px;
    color: #8AB4F8;
    margin-bottom: 25px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: center;
}

.skill-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    justify-items: stretch;
}

.skill-tag {
    background: linear-gradient(135deg, #2A2E35 0%, #3C4043 100%);
    color: #E3E7EE;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(138, 180, 248, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
}

.skill-icon {
    width: 13px;
    height: 13px;
    margin-right: 6px;
    vertical-align: -2px;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(97, 175, 239, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #61AFEF 0%, #4A9EFF 100%);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(97, 175, 239, 0.3);
}

.experience-section {
    margin-bottom: 36px;
}

.experience-section h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 30px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: left;
    padding-left: 0;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.experience-card {
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.85) 0%, rgba(60, 64, 67, 0.7) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8AB4F8, #61AFEF, #C678DD);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(138, 180, 248, 0.4);
}

.exp-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.exp-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15) 0%, rgba(97, 175, 239, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8AB4F8;
    border: 1px solid rgba(138, 180, 248, 0.3);
    transition: all 0.3s ease;
}

.experience-card:hover .exp-icon {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.25) 0%, rgba(97, 175, 239, 0.2) 100%);
    transform: scale(1.1);
    border-color: rgba(138, 180, 248, 0.5);
}

.exp-icon svg {
    width: 24px;
    height: 24px;
}

.exp-card-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-title {
    font-size: 18px;
    color: #FFFFFF;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.exp-date {
    font-size: 13px;
    color: #61AFEF;
    font-family: 'Fira Code', monospace;
}

.exp-company {
    font-size: 15px;
    color: #C678DD;
    margin-bottom: 16px;
    font-weight: 600;
}

.exp-description {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-description li {
    color: #ABB2BF;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.exp-description li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #8AB4F8, #61AFEF);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(138, 180, 248, 0.5);
}

.education-section h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 30px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: left;
    padding-left: 0;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.education-card {
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.85) 0%, rgba(60, 64, 67, 0.7) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8AB4F8, #61AFEF, #C678DD);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(138, 180, 248, 0.4);
}

.edu-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.edu-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15) 0%, rgba(97, 175, 239, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8AB4F8;
    border: 1px solid rgba(138, 180, 248, 0.3);
    transition: all 0.3s ease;
}

.education-card:hover .edu-icon {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.25) 0%, rgba(97, 175, 239, 0.2) 100%);
    transform: scale(1.1);
    border-color: rgba(138, 180, 248, 0.5);
}

.edu-icon svg {
    width: 24px;
    height: 24px;
}

.edu-card-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-title {
    font-size: 18px;
    color: #FFFFFF;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.edu-date {
    font-size: 13px;
    color: #61AFEF;
    font-family: 'Fira Code', monospace;
}

.edu-institution {
    font-size: 15px;
    color: #C678DD;
    margin-bottom: 12px;
    font-weight: 600;
}

.edu-gpa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #98C379;
    font-weight: 500;
}

.edu-gpa svg {
    color: #98C379;
}

/* Certificates Section */
.certificates-section {
    padding: 80px 0;
    position: relative;
}

.certificates-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.certificates-header {
    margin-bottom: 50px;
    position: relative;
}

.certificates-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8AB4F8, transparent);
    border-radius: 1px;
}

.certificates-header h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

.certificates-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.85) 0%, rgba(60, 64, 67, 0.7) 100%);
    border: 1px solid rgba(138, 180, 248, 0.25);
    border-radius: 999px;
    color: #ABB2BF;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 180, 248, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.filter-btn:hover {
    color: #8AB4F8;
    border-color: rgba(138, 180, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(138, 180, 248, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.2) 0%, rgba(97, 175, 239, 0.15) 100%);
    color: #8AB4F8;
    border-color: rgba(138, 180, 248, 0.6);
    box-shadow: 0 4px 16px rgba(138, 180, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8AB4F8, transparent);
    border-radius: 1px;
}

.certificate-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.certificate-card.hidden {
    display: none;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.certificate-card.hidden-row {
    display: none;
}

.certificates-grid.expanded .certificate-card.hidden-row {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

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

.certificate-card {
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.85) 0%, rgba(60, 64, 67, 0.7) 100%);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(138, 180, 248, 0.25);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8AB4F8, #61AFEF, #C678DD);
    border-radius: 18px 18px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(138, 180, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(138, 180, 248, 0.5);
}

.certificate-title {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.certificate-org {
    font-size: 14px;
    color: #8AB4F8;
    margin-bottom: 6px;
}

.certificate-meta {
    font-size: 13px;
    color: #ABB2BF;
    margin-bottom: 10px;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #98C379;
}

.certificate-badge svg {
    width: 14px;
    height: 14px;
}


.certificate-preview {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(138, 180, 248, 0.3);
    background: #1e2127;
    margin-bottom: 18px;
}

.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px auto 0;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.85) 0%, rgba(60, 64, 67, 0.7) 100%);
    border: 1px solid rgba(138, 180, 248, 0.25);
    border-radius: 999px;
    color: #8AB4F8;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 180, 248, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.show-more-btn:hover {
    color: #61AFEF;
    border-color: rgba(138, 180, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(138, 180, 248, 0.3);
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15) 0%, rgba(97, 175, 239, 0.1) 100%);
}

.show-more-btn svg {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded svg {
    transform: rotate(180deg);
}

.show-more-btn.hidden {
    display: none;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .certificates-filters {
        gap: 8px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .certificates-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    position: relative;
    min-height: 100vh;
}

.projects-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-header {
    margin-bottom: 50px;
    position: relative;
}

.projects-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8AB4F8, transparent);
    border-radius: 1px;
}

.projects-header h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.8) 0%, rgba(60, 64, 67, 0.6) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8AB4F8, #61AFEF, #C678DD);
    border-radius: 16px 16px 0 0;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px rgba(138, 180, 248, 0.4);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(138, 180, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(138, 180, 248, 0.4);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2A2E35 0%, #3C4043 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(138, 180, 248, 0.2);
}

.project-placeholder {
    color: #8AB4F8;
    opacity: 0.6;
}

.project-content {
    flex: 1;
}

.project-title {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 12px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.project-description {
    font-size: 14px;
    color: #ABB2BF;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.tech-tag {
    background: linear-gradient(135deg, #2A2E35 0%, #3C4043 100%);
    color: #8AB4F8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(138, 180, 248, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #8AB4F8 0%, #61AFEF 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
}


/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 13px;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    position: relative;
    min-height: 100vh;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.contact-header h4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8AB4F8, transparent);
    border-radius: 1px;
}


.contact-header h4 {
    font-size: 24px;
    color: #8AB4F8;
    margin-bottom: 16px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-shadow: 0 0 18px rgba(138, 180, 248, 0.25);
    position: relative;
}

.contact-subtitle {
    font-size: 16px;
    color: #ABB2BF;
    line-height: 1.6;
    position: relative;
    margin-top: 30px;
}

.contact-form-container {
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.8) 0%, rgba(60, 64, 67, 0.6) 100%);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-label {
    font-size: 14px;
    color: #8AB4F8;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
}

.form-input,
.form-textarea {
    background: linear-gradient(135deg, #2A2E35 0%, #3C4043 100%);
    border: 1px solid rgba(138, 180, 248, 0.3);
    border-radius: 10px;
    padding: 14px 18px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: 'Fira Code', monospace;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    border-color: #8AB4F8;
    box-shadow: 0 0 0 4px rgba(138, 180, 248, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2A2E35 0%, #3C4043 100%);
    transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #ABB2BF;
    opacity: 0.7;
}

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

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    background: linear-gradient(135deg, #2A2E35 0%, #3C4043 100%);
    border: 1px solid rgba(138, 180, 248, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    flex: 0 0 auto;
    width: 200px;
    height: 48px;
    box-sizing: border-box;
}

.captcha-input-group {
    display: flex;
    flex: 1;
}

.captcha-input-group .form-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

#captchaText {
    font-size: 18px;
    font-weight: bold;
    color: #8AB4F8;
    font-family: 'Fira Code', monospace;
    letter-spacing: 2px;
    user-select: none;
    background: linear-gradient(45deg, #8AB4F8, #61AFEF, #C678DD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.refresh-btn {
    background: linear-gradient(135deg, #8AB4F8 0%, #61AFEF 100%);
    border: none;
    border-radius: 6px;
    padding: 8px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 180, 248, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #8AB4F8 0%, #61AFEF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(138, 180, 248, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 24px;
    }
    
    .contact-form {
        gap: 20px;
    }
    
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .captcha-display {
        justify-content: center;
        width: 100%;
        height: 48px;
        box-sizing: border-box;
    }
    
    .captcha-input-group {
        flex: none;
        width: 100%;
    }
    
    .captcha-input-group .form-input {
        height: 48px;
    }
}

/* Quote Section */
.quote-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    background-color: #1E2127;
    z-index: 10;
}

.quote-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #FFFFFF;
    background-color: transparent;
}

.quote-marks {
    position: absolute;
    font-size: 40px;
    color: #FFFFFF;
    font-weight: bold;
}

.quote-start {
    top: -10px;
    left: 20px;
}

.quote-end {
    bottom: -10px;
    right: 20px;
}

.quote-content {
    text-align: center;
    margin: 20px 0;
}

.quote-text {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 500;
}

.quote-author {
    font-size: 14px;
    color: #FFFFFF;
    text-align: right;
}

.site-footer {
    margin-top: 40px;
    padding: 24px 0;
    background: rgba(30, 33, 39, 0.8);
    border-top: 1px solid rgba(138, 180, 248, 0.12);
    text-align: center;
}

.site-footer .footer-content {
    color: #ABB2BF;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .ai-animation-container {
        width: 280px;
        height: 280px;
    }
    
    .ai-animation-container::before {
        width: 320px;
        height: 320px;
    }
    
    .ai-animation-container::after {
        width: 340px;
        height: 340px;
    }
    
    .ai-animation {
        width: 280px;
        height: 280px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .quote-section {
        position: relative;
        padding: 10px 0;
    }
}

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

    .menu-toggle {
        width: 40px;
        height: 40px;
        gap: 5px;
    }

    .nav-links {
        padding: 10px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 10px 18px;
        font-size: 15px;
    }
    
    .quote-text {
        font-size: 16px;
    }
    
    .quote-box {
        padding: 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-tags {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .skill-tag {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quote-section {
        position: relative;
        padding: 5px 0;
    }

    /* Experience & Education mobile */
    .experience-grid,
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-card,
    .education-card {
        padding: 20px;
    }

    .exp-card-header,
    .edu-card-header {
        gap: 12px;
    }

    .exp-icon,
    .edu-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .exp-icon svg,
    .edu-icon svg {
        width: 20px;
        height: 20px;
    }

    .exp-title,
    .edu-title {
        font-size: 16px;
    }

    .exp-date,
    .edu-date {
        font-size: 12px;
    }

    .exp-company,
    .edu-institution {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .exp-description li {
        font-size: 13px;
        padding-left: 20px;
    }

    .exp-description li::before {
        left: 6px;
        width: 5px;
        height: 5px;
    }

    .edu-gpa {
        font-size: 13px;
    }

    /* Typography scaling */
    .about-header h4,
    .projects-header h4,
    .experience-section h4,
    .education-section h4,
    .contact-header h4 {
        font-size: 20px;
    }

    .about-section-title {
        font-size: 20px;
    }

    .about-right p {
        font-size: 15px;
        line-height: 1.6;
        text-align: justify;
    }

    .project-card {
        padding: 18px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .tech-tag {
        font-size: 11px;
    }

    .site-footer {
        padding: 20px 0;
        margin-top: 24px;
    }
    .site-footer .footer-content {
        font-size: 13px;
    }

}

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Tablet responsive header & navigation */
@media (max-width: 1024px) {
    .header {
        padding: 24px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 8px 12px;
        height: auto;
        width: 100%;
    }

    .language-selector {
        position: static;
        margin-left: 0;
        right: 0;
        justify-content: center;
        width: 100%;
        max-width: 420px;
    }
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .header {
        padding: 16px 0;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        z-index: 1000; /* mobile nav container above page content */
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 1200; /* toggle button always on top */
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        background: #1E2127; /* solid overlay so underlying hero text görünmez */
        border: 1px solid rgba(138, 180, 248, 0.25);
        border-radius: 0;
        padding: 28px 20px 32px;
        margin-top: 0;
        box-shadow: 0 24px 48px rgba(0,0,0,0.45);
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 1100; /* overlay above all content */
    }

    .nav.nav-open .nav-links {
        display: flex;
    }

    .nav-link {
        height: auto;
        justify-content: flex-start;
    }

    .language-selector {
        display: none;
        position: fixed;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        width: auto;
        max-width: 90vw;
        margin: 0;
        padding: 8px 18px;
        border-radius: 999px;
        justify-content: center;
        gap: 10px;
        background: rgba(41, 45, 53, 0.96);
        border: 1px solid rgba(138, 180, 248, 0.35);
        box-shadow: 0 12px 30px rgba(0,0,0,0.5);
        z-index: 1200; /* overlay menüden de üstte, her zaman ekranın alt-ortasında */
    }

    .nav.nav-open .language-selector {
        display: flex;
    }

    .hero {
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
        width: 100%;
    }

    .hero-text {
        order: 1;
        text-align: center;
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-description {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: 2;
        margin-top: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .ai-animation {
        width: 220px;
        height: 220px;
    }
    .ai-animation-container {
        width: 220px;
        height: 220px;
    }

    .scroll-indicator {
        bottom: 20px;
        width: 36px;
        height: 36px;
    }

    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }

    .modal-content {
        padding: 24px;
        max-width: 90%;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .modal-icon svg {
        width: 36px;
        height: 36px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-message {
        font-size: 14px;
    }

    .modal-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(40, 44, 51, 0.95) 0%, rgba(60, 64, 67, 0.9) 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(138, 180, 248, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.modal-icon.success {
    background: rgba(152, 195, 121, 0.2);
    color: #98C379;
    border: 2px solid rgba(152, 195, 121, 0.4);
}

.modal-icon.error {
    background: rgba(224, 108, 117, 0.2);
    color: #E06C75;
    border: 2px solid rgba(224, 108, 117, 0.4);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
    font-family: 'Fira Code', monospace;
}

.modal-message {
    font-size: 16px;
    color: #ABB2BF;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btn {
    background: linear-gradient(135deg, #8AB4F8 0%, #61AFEF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 180, 248, 0.4);
}

.download-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8AB4F8 0%, #61AFEF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(138, 180, 248, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    text-decoration: none;
}

.download-icon-btn::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 ease, height 0.6s ease;
}

.download-icon-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-icon-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(138, 180, 248, 0.5);
    background: linear-gradient(135deg, #61AFEF 0%, #8AB4F8 100%);
}

.download-icon-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.download-icon-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.download-icon-btn:hover svg {
    transform: translateY(2px);
}

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #282C33;
}

::-webkit-scrollbar-thumb {
    background: #61AFEF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A9EFF;
}
