:root {
    --primary: #2563EB;
    --primary-dark: #1E3A8A;
    --primary-light: #0EA5E9;
    --dark: #0F172A;
    --text: #334155;
    --muted: #64748B;
    --background: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-light {
    background-color: #F1F5F9;
}

.bg-dark {
    background-color: var(--dark);
    color: var(--white);
}

.bg-dark .section-title {
    color: var(--white);
}

.card-ui {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-text {
    background-color: transparent;
    color: var(--primary);
    padding: 12px 0;
}

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

.btn-text i {
    transition: transform 0.3s;
}

.btn-text:hover i {
    transform: translateX(5px);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

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

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: all 0.3s ease-in-out;
}

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

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    background-size: cover;
    z-index: -1;
}

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

.hero-content {
    flex: 1;
}

.hero-content .greeting {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-content .name {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content .title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.badge {
    background-color: #E0E7FF;
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

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

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
}

.image-decoration {
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.2;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3/4;
    border: 8px solid var(--white);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}

/* Profile Summary Cards */
.profile-summary-cards {
    padding-top: 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: -40px;
    z-index: 10;
    position: relative;
}

.info-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    background-color: #EFF6FF;
    padding: 12px;
    border-radius: var(--radius-md);
}

.info-card h4 {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.info-card p {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* About Section */
.about-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-content {
    margin-bottom: 30px;
    color: var(--text);
}

.about-content p {
    margin-bottom: 15px;
}

.code-card {
    background-color: var(--dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}

.code-header {
    background-color: #1E293B;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.code-card pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-card code {
    font-family: 'Courier New', Courier, monospace;
    color: #A5B4FC;
    font-size: 0.9rem;
}

.about-profile-card {
    flex: 1;
}

.linkedin-style-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.card-header {
    height: 80px;
    background-color: var(--border);
    background-image: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 100%);
}

.card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--white);
    margin: -50px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.avatar-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.card-body {
    padding: 24px;
    text-align: center;
}

.card-body h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.card-body .role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.card-body .location {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.card-details {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.card-details li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.card-details i {
    color: var(--muted);
    width: 20px;
    text-align: center;
}

/* Timeline Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0 30px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    left: 12px;
    top: 20px;
    z-index: 1;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-content {
    margin-top: 10px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.timeline-header h3 {
    color: var(--dark);
    font-size: 1.25rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    background-color: #EFF6FF;
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-content .company {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.edu-icon {
    background-color: #EFF6FF;
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.edu-content h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.edu-content .department {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.edu-content .details {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 10px;
}

/* Skills & Tools */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-card {
    padding: 15px 20px;
}

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

.skill-info h4 {
    margin: 0;
    color: var(--dark);
}

.skill-level {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-iyi { background-color: #D1FAE5; color: #065F46; }
.badge-temel { background-color: #FEF3C7; color: #92400E; }
.badge-baslangic { background-color: #E0E7FF; color: #3730A3; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    padding: 25px 15px;
}

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

.tool-card span {
    font-weight: 500;
    color: var(--text);
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-browser {
    background-color: #F8FAFC;
    border-bottom: 1px solid var(--border);
}

.browser-header {
    background-color: #E2E8F0;
    padding: 10px 15px;
    display: flex;
    gap: 6px;
}

.browser-content {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.project-placeholder {
    color: var(--muted);
    font-size: 3rem;
}

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

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.project-info h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.project-info p {
    color: var(--muted);
    margin-bottom: 20px;
    flex: 1;
}

.project-links {
    margin-top: auto;
}

/* Events */
.event-card {
    padding: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.event-image {
    position: relative;
    width: 100%;
}

.event-image img {
    width: 100%;
    display: block;
}

.event-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.event-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.7);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.875rem;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

/* Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.interest-card {
    text-align: center;
    padding: 30px 20px;
}

.interest-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.interest-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.interest-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Language */
.language-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

.lang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.lang-header h3 {
    margin: 0;
    color: var(--dark);
}

.lang-level {
    background-color: #EFF6FF;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Approach */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.approach-card {
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: #EFF6FF;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.approach-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.approach-card p {
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* Goals */
.goals-section {
    position: relative;
    overflow: hidden;
}

.goals-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    font-size: 15rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.goals-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* GitHub */
.github-icon-large {
    font-size: 4rem;
    color: var(--dark);
    margin-bottom: 20px;
    display: block;
}

.github-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Contact */
.contact-desc {
    color: var(--muted);
    max-width: 600px;
    margin: -10px auto 40px;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 25px;
    color: var(--dark);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: #EFF6FF;
    padding: 10px;
    border-radius: var(--radius-md);
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--dark);
}

.info-item a {
    color: var(--muted);
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form-container {
    flex: 2;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-logo:hover {
    color: var(--primary-light);
}

.footer-motto {
    color: #94A3B8;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Messages */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    max-width: 350px;
}

.alert {
    padding: 15px 40px 15px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #34D399;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #F87171;
}

.close-alert {
    position: absolute;
    top: 15px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 1.2rem;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.appear {
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content .name {
        font-size: 2.8rem;
    }
    
    .hero-content .description {
        margin: 0 auto 30px;
    }
    
    .badges {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
    }
    
    .hero-content .name {
        font-size: 2.2rem;
    }
    
    .timeline::after {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-dot {
        left: 7px;
    }
}

@media (max-width: 576px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
}

/* --- New Hero Dev Card & Logo Styles --- */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.brand-text {
    font-weight: 500;
}

.brand-highlight {
    color: var(--primary);
    font-weight: 700;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.brand-logo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 15px;
}

.brand-logo-footer i {
    color: var(--primary-light);
}

.brand-logo-footer .brand-text {
    font-weight: 500;
}

.brand-logo-footer .brand-highlight {
    color: var(--primary-light);
    font-weight: 700;
}

.brand-logo-footer:hover {
    transform: translateY(-2px);
}

.hero-dev-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.hero-card-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
}

.hero-dev-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    position: relative;
    z-index: 1;
}

.dev-card-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dev-avatar {
    width: 70px;
    height: 70px;
    background-color: #EFF6FF;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.dev-info h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.dev-role {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dev-location {
    font-size: 0.85rem;
    color: var(--muted);
}

.dev-card-divider {
    height: 1px;
    background-color: var(--border);
    margin: 20px 0;
}

.dev-card-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 12px;
}

.dev-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dev-badges span {
    background-color: var(--background);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.dev-tech-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

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

.dev-card-footer {
    margin-top: 25px;
    background-color: var(--background);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

/* --- 15-20% Premium UI Enhancements --- */

/* Background details */
body {
    background-image: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.03), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.03), transparent 25%);
}

.bg-light {
    background-image: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.02), transparent 50%);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Navbar Enhancements */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* Hero Section Enhancements */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.name.gradient-text {
    position: relative;
}

.name.gradient-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(15px);
}

.badge {
    background-color: #EFF6FF;
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.badge i {
    color: var(--primary);
    font-size: 1.1em;
}

.badge:hover {
    background-color: #DBEAFE;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

/* Section Headings */
.section-heading {
    margin-bottom: 40px;
    position: relative;
}

.text-center .section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-subtitle.text-light {
    color: var(--primary-light);
}

.section-title {
    margin-bottom: 12px;
}

.accent-line {
    height: 3px;
    width: 40px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* Card Enhancements */
.card-ui {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.card-ui:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1D4ED8);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* SkillSwap Project Card */
.project-browser:hover .browser-content img {
    transform: scale(1.02);
}
.browser-content img {
    transition: transform 0.4s ease;
}
.project-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EFF6FF;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Event Badge */
.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.event-image {
    overflow: hidden;
}
.event-card:hover .event-image img {
    transform: scale(1.03);
}
.event-image img {
    transition: transform 0.5s ease;
}

/* Timeline */
.timeline-dot {
    border-color: var(--border);
    background-color: var(--background);
}
.timeline-dot.active-dot {
    background-color: var(--primary);
    border-color: #DBEAFE;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.timeline-header-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.current-badge {
    background: #EFF6FF;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Contact Link Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
}
.contact-link-card .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-link-card .info-item i:first-child {
    font-size: 1.8rem;
    color: var(--primary);
    background: #EFF6FF;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.info-text h4 {
    margin-bottom: 2px;
    color: var(--dark);
}
.info-text p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}
.hover-arrow {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.contact-link-card:hover .hover-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Footer Line */
.footer-gradient-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
}

.skill-name-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-name-area i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- UI/UX Enhancements (Carousel & Micro-animations) --- */

/* 1. Profile Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    position: relative;
    padding-bottom: 15px; /* for shadow space */
    /* Light fade on edges to hint at scrollability */
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.carousel-track .info-card {
    flex: 0 0 auto;
    width: 200px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .carousel-track .info-card {
        width: 250px; /* Slightly larger on mobile for single view focus */
    }
}

/* 2. Micro Animations */
/* Scroll Reveal adjustments */
.fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}
.fade-in.appear {
    opacity: 1;
}
.delay-1 {
    transition-delay: 0.15s;
}

/* Card Hover */
.card-ui {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-ui:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -8px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Icon Hover */
.card-ui i {
    transition: transform 0.3s ease;
}
.card-ui:hover i {
    transform: scale(1.05);
}

/* Button Hover */
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}
.contact-link-card:hover .hover-arrow {
    transform: translateX(4px);
}

/* 3. Accessibility / Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up, .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .card-ui:hover {
        transform: none;
    }
    .card-ui:hover i {
        transform: none;
    }
    .btn:hover {
        transform: none;
    }
}

.carousel-container {
    margin-top: -50px;
    z-index: 10;
}

/* ==========================================
   DJANGO BACKEND ENTEGRASYONU - EK STİLLER
   ========================================== */

/* Honeypot spam koruması — bot'lardan gizle */
.hp-wrapper {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
    left: -9999px;
}

/* Form validation hata mesajları */
.form-error {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.4rem;
}

/* Mesaj alert stilleri */
.messages-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    max-width: 380px;
    width: 100%;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

.alert.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.close-alert {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
    flex-shrink: 0;
}

.close-alert:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sertifikalar bölümü (projects-grid stilini kullanır) */
.certificates-section {
    background: var(--background);
}

/* Skill level badge renkleri (Türkçe seviyelere göre) */
.badge-baslangic { background: #fee2e2; color: #991b1b; }
.badge-iyi { background: #d1fae5; color: #065f46; }
.badge-temel { background: #fef3c7; color: #92400e; }
.badge-orta { background: #dbeafe; color: #1e40af; }
.badge-ileri { background: #ede9fe; color: #5b21b6; }
.badge-uzman { background: #ecfdf5; color: #064e3b; }

/* =========================================================
   Section title blue lines
   Keep only the underline in the "Kısaca Ben" (#about) section.
   ========================================================= */
.section-title::after {
    display: none !important;
}

#about .section-title::after {
    display: block !important;
}

/* Remove the additional blue accent line from every section except #about */
.accent-line {
    display: none !important;
}

#about .accent-line {
    display: block !important;
}

