:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --dark-color: #1f2937;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #20232a;
    padding-top: 0;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(31, 41, 55, 0.95) !important;
    box-shadow: var(--card-shadow);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    background: #20232a;
    padding: 80px 0 60px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* Code Animation */
.code-animation {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    background: rgba(40, 44, 52, 0.9);
    border-radius: 12px;
    padding: 30px;
    display: inline-block;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.code-line {
    display: block;
    color: #abb2bf;
    line-height: 1.8;
    font-size: 16px;
    opacity: 0;
    animation: fadeInLine 0.5s 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: #c678dd; font-weight: bold; }
.code-property { color: #e06c75; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }

@keyframes fadeInLine {
    to {
        opacity: 1;
        transform: translateX(0);
    }
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 40px;
    letter-spacing: -2px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

/* Typing Effect */
.hero-subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-top: 20px;
    height: 40px;
}

.typing-text {
    display: inline-block;
    min-width: 1px;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Project Cards */
.project-card {
    background: #2c3e50;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3), 0 10px 10px -5px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.project-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.project-card h3 {
    color: #ffffff;
}

.project-card p {
    color: #b3b3b3 !important;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.35);
}

.btn-outline-light {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Loading Animation */
[data-aos] {
    transition-property: transform, opacity;
}

[data-aos][data-aos][data-aos-duration="800"] {
    transition-duration: 800ms;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Yazılımlarım Banner */
.software-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.software-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.software-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

.banner-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.banner-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.banner-btn:hover i {
    transform: translateX(5px);
}

.banner-icon {
    position: absolute;
    font-size: 200px;
    color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.banner-icon.icon-1 {
    top: -50px;
    left: -50px;
    transform: rotate(-15deg);
}

.banner-icon.icon-2 {
    bottom: -50px;
    right: -50px;
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .software-banner {
        padding: 40px 20px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .banner-icon {
        font-size: 120px;
    }
}
