/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --black-color: #000000;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f193fb17 0%, #000000 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white-color) !important;
}

.navbar-nav .nav-link {
    color: var(--white-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

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

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Navbar için boşluk */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline-light {
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

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

/* ===== CODE ANIMATION ===== */
.hero-image {
    position: relative;
    z-index: 2;
}

.code-animation {
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 1s; }

.code-keyword {
    color: #ff6b6b;
    font-weight: bold;
}

.code-variable {
    color: #4ecdc4;
    font-weight: bold;
}

.code-property {
    color: #45b7d1;
}

.code-string {
    color: #f9ca24;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ===== SECTION STYLES ===== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* ===== ABOUT SECTION ===== */
.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 350px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--white-color);
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.about-image img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 30px 60px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.1;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 0.2;
    transform: rotate(-2deg);
}

/* Coding themed decorative elements */
.about-image::after {
    content: '</>';
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient-primary);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
}

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

.about-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills-category {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* ===== TECH LISTS ===== */
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.tech-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--primary-color);
}

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

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

.tech-item span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* Frontend list specific styles */
.frontend-list .tech-item {
    border-left-color: #667eea;
}

.frontend-list .tech-item i {
    color: #667eea;
}

.frontend-list .tech-item:hover {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff, #f0fff4);
}

.frontend-list .tech-item:hover i {
    color: #28a745;
}

/* Specific frontend tech colors */
.frontend-list .tech-item:nth-child(1) i { color: #e34f26; } /* HTML */
.frontend-list .tech-item:nth-child(2) i { color: #1572b6; } /* CSS */
.frontend-list .tech-item:nth-child(3) i { color: #f7df1e; } /* JavaScript */
.frontend-list .tech-item:nth-child(4) i { color: #61dafb; } /* React */
.frontend-list .tech-item:nth-child(5) i { color: #000000; } /* Next.js */
.frontend-list .tech-item:nth-child(6) i { color: #cf649a; } /* Sass */
.frontend-list .tech-item:nth-child(7) i { color: #7952b3; } /* Bootstrap */
.frontend-list .tech-item:nth-child(8) i { color: #06b6d4; } /* Tailwind */
.frontend-list .tech-item:nth-child(9) i { color: #000000; } /* Shadcn */

/* Backend list specific styles */
.backend-list .tech-item {
    border-left-color: #585858;
}

.backend-list .tech-item i {
    color: #585858;
}

.backend-list .tech-item:hover {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff, #fff5f5);
}

.backend-list .tech-item:hover i {
    color: #dc3545;
}

/* Specific backend tech colors */
.backend-list .tech-item:nth-child(1) i { color: #777bb4; } /* PHP */
.backend-list .tech-item:nth-child(2) i { color: #3776ab; } /* Python */
.backend-list .tech-item:nth-child(3) i { color: #3178c6; } /* TypeScript */
.backend-list .tech-item:nth-child(4) i { color: #339933; } /* Node.js */
.backend-list .tech-item:nth-child(5) i { color: #000000; } /* Express.js */
.backend-list .tech-item:nth-child(6) i { color: #ed8b00; } /* Java */
.backend-list .tech-item:nth-child(7) i { color: #6db33f; } /* Spring Boot */
.backend-list .tech-item:nth-child(8) i { color: #4479a1; } /* MySQL */
.backend-list .tech-item:nth-child(9) i { color: #336791; } /* PostgreSQL */
.backend-list .tech-item:nth-child(10) i { color: #47a248; } /* MongoDB */
.backend-list .tech-item:nth-child(11) i { color: #3ecf8e; } /* Supabase */

 /* ===== ANIMATED SKILLS ORBITS ===== */
 .orbit-section {
     margin-bottom: 2rem;
     position: relative;
 }
 
 /* Vertical divider line for the entire skills section */
 .skills-section {
     position: relative;
 }
 
 .skills-section::after {
     content: '';
     position: absolute;
     top: 15%;
     left: 50%;
     
     transform: translateX(-50%);
     width: 2px;
     height: 80%;
     background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.8), transparent);
     z-index: 1;
     box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
 }
 
 /* Add spacing between frontend and backend sections */
 .orbit-section {
     margin-bottom: 3rem;
 }
 
 .orbit-title {
     font-size: 1.3rem;
     font-weight: 600;
     color: var(--dark-color);
     margin-bottom: 1.5rem;
 }
 
 .skills-animation-container {
     position: relative;
     width: 350px;
     height: 350px;
     margin: 0 auto;
     border-radius: 50%;
 }
 
 .frontend-orbit {
     background: radial-gradient(circle at center, rgba(97, 218, 251, 0.08) 0%, transparent 70%);
 }
 
 .backend-orbit {
     background: radial-gradient(circle at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
 }

 /* ---------- Container for the orbiting circles animation ---------- */
#frontend-orbit-container,
#backend-orbit-container {
    position: relative;
    top: 25px;
    left: 25px;
    height: 300px;
    width: 300px;
}

/* ---------- Center Code Icon ---------- */
.center-code-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--white-color);
    z-index: 10;
    animation: centerPulse 3s ease-in-out infinite;
}

.center-code-icon i {
    font-size: 1.8rem;
    color: var(--white-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

 /* ---------- Inner orbit - This is the circles closest to the central point ---------- */
#frontend-inner-orbit,
#backend-inner-orbit {
    position: absolute;
    top: 75px;
    left: 75px;
    width: 150px;
    height: 150px;
    border-radius: 100%;
    animation: spin-right 30s linear infinite;
}
 
 #frontend-inner-orbit {
     border: 2px rgba(97, 218, 251, 0.8) dashed;
 }
 
 #backend-inner-orbit {
     border: 2px rgba(102, 126, 234, 0.8) dashed;
 }

/* ---------- Repeating styles for the inner orbiting circles ---------- */
.inner-orbit-circles {
    position: absolute;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    border: 3px solid var(--white-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: counter-rotate 30s linear infinite;
}

/* Frontend Inner Orbit Positions */
#frontend-inner-orbit .inner-orbit-circles:nth-child(1) {
    top: 50px;
    left: -25px;
}

#frontend-inner-orbit .inner-orbit-circles:nth-child(2) {
    top: 95px;
    left: 100px;
}

#frontend-inner-orbit .inner-orbit-circles:nth-child(3) {
    top: 50px;
    left: 125px;
}

/* Backend Inner Orbit Positions */
#backend-inner-orbit .inner-orbit-circles:nth-child(1) {
    top: 50px;
    left: -25px;
}

#backend-inner-orbit .inner-orbit-circles:nth-child(2) {
    top: 95px;
    left: 100px;
}

#backend-inner-orbit .inner-orbit-circles:nth-child(3) {
    top: 50px;
    left: 125px;
}

 /* ---------- Middle orbit - This is the circles second closest to the central point ---------- */
#frontend-middle-orbit,
#backend-middle-orbit {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 250px;
    height: 250px;
    border-radius: 100%;
    animation: spin-right 30s linear infinite reverse;
}
 
 #frontend-middle-orbit {
     border: 2px rgba(97, 218, 251, 0.8) dashed;
 }
 
 #backend-middle-orbit {
     border: 2px rgba(102, 126, 234, 0.8) dashed;
 }

/* ---------- Repeating styles for the middle orbiting circles ---------- */
.middle-orbit-circles {
    position: absolute;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    border: 3px solid var(--white-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: counter-rotate-reverse 30s linear infinite;
}

/* Frontend Middle Orbit Positions */
#frontend-middle-orbit .middle-orbit-circles:nth-child(1) {
    top: -25px;
    left: 125px;
}

#frontend-middle-orbit .middle-orbit-circles:nth-child(2) {
    top: 25px;
    left: 200px;
}

#frontend-middle-orbit .middle-orbit-circles:nth-child(3) {
    top: 220px;
    left: 125px;
}

#frontend-middle-orbit .middle-orbit-circles:nth-child(4) {
    top: 125px;
    left: -25px;
}

/* Backend Middle Orbit Positions */
#backend-middle-orbit .middle-orbit-circles:nth-child(1) {
    top: -25px;
    left: 125px;
}

#backend-middle-orbit .middle-orbit-circles:nth-child(2) {
    top: 25px;
    left: 200px;
}

#backend-middle-orbit .middle-orbit-circles:nth-child(3) {
    top: 220px;
    left: 125px;
}

#backend-middle-orbit .middle-orbit-circles:nth-child(4) {
    top: 125px;
    left: -25px;
}

 /* ---------- Outer orbit - This is the circles furthest away from the central point ---------- */
#frontend-outer-orbit,
#backend-outer-orbit {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 350px;
    height: 350px;
    border-radius: 100%;
    animation: spin-right 30s linear infinite;
}
 
 #frontend-outer-orbit {
     border: 2px rgba(97, 218, 251, 0.8) dashed;
 }
 
 #backend-outer-orbit {
     border: 2px rgba(102, 126, 234, 0.8) dashed;
 }

/* ---------- Repeating styles for the outer orbiting circles ---------- */
.outer-orbit-circles {
    position: absolute;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    border: 3px solid var(--white-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: counter-rotate 30s linear infinite;
}

 /* Frontend Outer Orbit Positions */
 #frontend-outer-orbit .outer-orbit-circles:nth-child(1) {
     top: -25px;
     left: 175px;
 }
 
 #frontend-outer-orbit .outer-orbit-circles:nth-child(2) {
     top: 175px;
     left: -25px;
 }
 
 /* Backend Outer Orbit Positions */
 #backend-outer-orbit .outer-orbit-circles:nth-child(1) {
     top: -25px;
     left: 175px;
 }
 
 #backend-outer-orbit .outer-orbit-circles:nth-child(2) {
     top: 175px;
     left: -25px;
 }
 
 #backend-outer-orbit .outer-orbit-circles:nth-child(3) {
     top: 325px;
     left: 175px;
 }
 
 #backend-outer-orbit .outer-orbit-circles:nth-child(4) {
     top: 175px;
     left: 325px;
 }

/* Icon styles for orbit circles */
.inner-orbit-circles i,
.middle-orbit-circles i,
.outer-orbit-circles i {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

 /* Frontend tech icon colors */
 #frontend-inner-orbit .inner-orbit-circles:nth-child(1) i { color: #e34f26; } /* HTML */
 #frontend-inner-orbit .inner-orbit-circles:nth-child(2) i { color: #1572b6; } /* CSS */
 #frontend-inner-orbit .inner-orbit-circles:nth-child(3) i { color: #cf649a; } /* Sass */
 
 #frontend-middle-orbit .middle-orbit-circles:nth-child(1) i { color: #f7df1e; } /* JavaScript */
 #frontend-middle-orbit .middle-orbit-circles:nth-child(2) i { color: #61dafb; } /* React */
 #frontend-middle-orbit .middle-orbit-circles:nth-child(3) i { color: #000000; } /* Next.js */
 #frontend-middle-orbit .middle-orbit-circles:nth-child(4) i { color: #7952b3; } /* Bootstrap */
 
 #frontend-outer-orbit .outer-orbit-circles:nth-child(1) i { color: #06b6d4; } /* Tailwind */
 #frontend-outer-orbit .outer-orbit-circles:nth-child(2) i { color: #000000; } /* Shadcn */
 
 /* Backend tech icon colors */
 #backend-inner-orbit .inner-orbit-circles:nth-child(1) i { color: #777bb4; } /* PHP */
 #backend-inner-orbit .inner-orbit-circles:nth-child(2) i { color: #3776ab; } /* Python */
 #backend-inner-orbit .inner-orbit-circles:nth-child(3) i { color: #ed8b00; } /* Java */
 
 #backend-middle-orbit .middle-orbit-circles:nth-child(1) i { color: #339933; } /* Node.js */
 #backend-middle-orbit .middle-orbit-circles:nth-child(2) i { color: #000000; } /* Express.js */
 #backend-middle-orbit .middle-orbit-circles:nth-child(3) i { color: #6db33f; } /* Spring Boot */
 #backend-middle-orbit .middle-orbit-circles:nth-child(4) i { color: #3178c6; } /* TypeScript */
 
 #backend-outer-orbit .outer-orbit-circles:nth-child(1) i { color: #4479a1; } /* MySQL */
 #backend-outer-orbit .outer-orbit-circles:nth-child(2) i { color: #336791; } /* PostgreSQL */
 #backend-outer-orbit .outer-orbit-circles:nth-child(3) i { color: #47a248; } /* MongoDB */
 #backend-outer-orbit .outer-orbit-circles:nth-child(4) i { color: #3ecf8e; } /* Supabase */

/* ---------- Animation ---------- */
@keyframes spin-right {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

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



/* Glow effect for orbit lines */
.orbit-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(97, 218, 251, 0.1), transparent);
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.6;
    }
}

/* ===== PROJECTS SECTION ===== */
.project-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--dark-color);
    color: var(--white-color);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== PROJECT MODALS ===== */
.project-modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

.project-modal-image img,
.project-modal-image video {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.project-modal-details h6 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.project-modal-details ul {
    list-style: none;
    padding-left: 0;
}

.project-modal-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-modal-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.project-modal-details .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-modal-details .tech-tag {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-modal-details .tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.project-modal-details .project-links .btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.project-modal-details .project-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .project-modal-details .project-links {
        flex-direction: column;
    }
    
    .project-modal-details .project-links .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ===== VIDEO PLAYER MODALS ===== */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* Video modal responsive */
@media (max-width: 768px) {
    .video-container video {
        max-height: 50vh;
    }
}

/* ===== MORE PROJECTS BUTTON SECTION ===== */
.more-projects-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.more-projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(102,126,234,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.more-projects-section .container {
    position: relative;
    z-index: 2;
}

.more-projects-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-projects-section .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 ease;
}

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

.more-projects-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.more-projects-section .btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.more-projects-section .btn:hover i {
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact-info-horizontal {
    padding: 2rem 0;
}

.contact-item-horizontal {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item-horizontal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.contact-item-horizontal:hover .contact-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.contact-icon-wrapper .contact-icon {
    font-size: 2rem;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
}

.contact-content h5 {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-content p {
    color: var(--light-color);
    margin: 0;
    font-size: 1rem;
}

.social-links-horizontal {
    margin-top: 3rem;
}

.social-links-horizontal .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-horizontal .social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: var(--white-color);
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 50px;
    text-align: center;
}

.contact-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--white-color);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: var(--white-color);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .code-animation {
        font-size: 0.9rem;
        padding: 1.5rem;
    }
    
    /* About image responsive */
    .about-image img {
        width: 280px;
        height: 320px;
    }
    
    .about-image::after {
        width: 35px;
        height: 35px;
        font-size: 12px;
        top: -12px;
        right: -12px;
    }
    
    /* Navbar için ek boşluk */
    .hero-section {
        padding-top: 75px;
    }
    
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Navbar için ek boşluk */
    .hero-section {
        padding-top: 70px;
    }
    
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Smaller screens image adjustments */
    .about-image img {
        width: 250px;
        height: 280px;
    }
    
    .about-image::after {
        width: 30px;
        height: 30px;
        font-size: 10px;
        top: -10px;
        right: -10px;
    }
    
    .about-image::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
         /* Mobile adjustments */
     .tech-list {
         grid-template-columns: 1fr;
         gap: 0.8rem;
     }
     
     /* Hide divider on mobile */
     .skills-section::after {
         display: none;
     }
    
    .tech-item {
        padding: 0.8rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 1rem;
    }
    
         .skills-animation-container {
         width: 280px;
         height: 280px;
     }
     
     #frontend-orbit-container,
     #backend-orbit-container {
         height: 230px;
         width: 230px;
     }
    
    .center-code-icon {
        width: 35px;
        height: 35px;
    }
    
    .center-code-icon i {
        font-size: 1.2rem;
    }
    
         #frontend-inner-orbit,
     #backend-inner-orbit {
         top: 65px;
         left: 65px;
         width: 100px;
         height: 100px;
     }
     
     #frontend-middle-orbit,
     #backend-middle-orbit {
         top: 35px;
         left: 35px;
         width: 160px;
         height: 160px;
     }
     
     #frontend-outer-orbit,
     #backend-outer-orbit {
         top: -17px;
         left: -17px;
         width: 264px;
         height: 264px;
     }
    
    .inner-orbit-circles,
    .middle-orbit-circles,
    .outer-orbit-circles {
        height: 35px;
        width: 35px;
    }
    
    .inner-orbit-circles i,
    .middle-orbit-circles i,
    .outer-orbit-circles i {
        font-size: 1.2rem;
    }
    
         /* Mobile positioning adjustments */
     #frontend-inner-orbit .inner-orbit-circles:nth-child(1),
     #backend-inner-orbit .inner-orbit-circles:nth-child(1) {
         top: 65px;
         left: -17px;
     }
     
     #frontend-inner-orbit .inner-orbit-circles:nth-child(2),
     #backend-inner-orbit .inner-orbit-circles:nth-child(2) {
         top: -17px;
         left: 65px;
     }
     
     #frontend-inner-orbit .inner-orbit-circles:nth-child(3),
     #backend-inner-orbit .inner-orbit-circles:nth-child(3) {
         top: 65px;
         left: 82px;
     }
    
         #frontend-middle-orbit .middle-orbit-circles:nth-child(1),
     #backend-middle-orbit .middle-orbit-circles:nth-child(1) {
         top: -17px;
         left: 80px;
     }
     
     #frontend-middle-orbit .middle-orbit-circles:nth-child(2),
     #backend-middle-orbit .middle-orbit-circles:nth-child(2) {
         top: 80px;
         left: 145px;
     }
     
     #frontend-middle-orbit .middle-orbit-circles:nth-child(3),
     #backend-middle-orbit .middle-orbit-circles:nth-child(3) {
         top: 145px;
         left: 80px;
     }
     
     #frontend-middle-orbit .middle-orbit-circles:nth-child(4),
     #backend-middle-orbit .middle-orbit-circles:nth-child(4) {
         top: 80px;
         left: -17px;
     }
    
         #frontend-outer-orbit .outer-orbit-circles:nth-child(1) {
         top: -17px;
         left: 132px;
     }
     
     #frontend-outer-orbit .outer-orbit-circles:nth-child(2) {
         top: 132px;
         left: -17px;
     }
     
     #backend-outer-orbit .outer-orbit-circles:nth-child(1) {
         top: -17px;
         left: 132px;
     }
     
     #backend-outer-orbit .outer-orbit-circles:nth-child(2) {
         top: 132px;
         left: -17px;
     }
     
     #backend-outer-orbit .outer-orbit-circles:nth-child(3) {
         top: 264px;
         left: 132px;
     }
     
     #backend-outer-orbit .outer-orbit-circles:nth-child(4) {
         top: 132px;
         left: 247px;
     }
}

/* ===== UTILITY CLASSES ===== */
.bg-darker {
    background: var(--black-color);
}

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

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--primary-color);
    color: var(--white-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ===== FOCUS STYLING ===== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .back-to-top,
    .scroll-progress,
    .preloader {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}
