:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ffc107;
    --hover-color: #ffd700;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hero Section - Enhanced */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Animated Background Shapes */
.hero-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatOptimized 15s infinite ease-in-out;
    border: 1px solid rgba(255, 193, 7, 0.15);
    will-change: transform;
    transform: translateZ(0); /* GPU hızlandırma */
    backface-visibility: hidden;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-1::before {
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-2::before {
    animation-delay: 1s;
    animation-direction: reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

.shape-3::before {
    animation-delay: 2s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

.shape-4::before {
    animation-delay: 3s;
    animation-direction: reverse;
}


/* Optimized Float Animation - GPU Accelerated */
@keyframes floatOptimized {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    33% {
        transform: translate3d(20px, -20px, 0);
    }
    66% {
        transform: translate3d(-20px, -40px, 0);
    }
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
}

.animation-delay-1 { animation-delay: 0.3s; }
.animation-delay-2 { animation-delay: 0.6s; }
.animation-delay-3 { animation-delay: 0.9s; }

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

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

/* Hero Stats */
.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Hero Buttons */
.hero-btn {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    transform: translate3d(0, -5px, 0) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.hero-btn.btn-warning:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

/* Tech Stack Icons */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.tech-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: var(--delay);
    opacity: 0;
    cursor: pointer;
}

.tech-icon:hover {
    transform: translate3d(0, -10px, 0) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.tech-icon i {
    display: block;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

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

.tech-icon span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Floating Animation */
.animate-float {
    animation: gentleFloat 6s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    cursor: pointer;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

/* Hero Badge */
.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

/* Neon Effects - Optimized */
.neon-title {
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(102, 126, 234, 0.3);
    animation: neonPulseLight 3s ease-in-out infinite;
}

@keyframes neonPulseLight {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.7),
            0 0 30px rgba(102, 126, 234, 0.5);
    }
}

/* Lightning Effects - Simplified */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none; /* Performans için devre dışı, mobilde açılmayacak */
}

/* Masaüstünde şimşekleri aç */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .lightning-container {
        display: block;
    }
    
    .lightning {
        position: absolute;
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, 
            transparent 0%, 
            rgba(255, 193, 7, 0.4) 50%, 
            transparent 100%);
        opacity: 0;
        animation: lightningOptimized 10s ease-in-out infinite;
        will-change: opacity;
    }
    
    .lightning-1 {
        left: 20%;
        animation-delay: 0s;
    }
    
    .lightning-2 {
        left: 50%;
        animation-delay: 4s;
    }
    
    .lightning-3 {
        left: 80%;
        animation-delay: 8s;
    }
    
    @keyframes lightningOptimized {
        0%, 95%, 100% {
            opacity: 0;
        }
        96%, 98% {
            opacity: 0.6;
        }
        97% {
            opacity: 0.3;
        }
    }
}

/* Neon Grid Background - Optimized */
.neon-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 193, 7, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 193, 7, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMoveSimple 25s linear infinite;
    z-index: 0;
    opacity: 0.4;
    will-change: transform;
    transform: translateZ(0); /* GPU hızlandırma */
}

@keyframes gridMoveSimple {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, 60px, 0);
    }
}

/* Improved Stats with Neon */
.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 193, 7, 0.4),
        inset 0 0 20px rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.6);
}

.hero-stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 193, 7, 0.3);
}

/* Rotating Text Animation */
.rotating-text-container {
    position: relative;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.rotating-text.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.rotating-text .highlight-text {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    position: relative;
    display: inline-block;
}

.rotating-text .highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: #fff;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25) !important;
    border-color: var(--primary-color) !important;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.feature-card .feature-icon {
    transition: transform 0.3s ease;
}

.feature-card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.feature-card ul {
    font-size: 0.9rem;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.feature-icon {
    color: var(--primary-color);
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--hover-color) !important;
}

.logo-img {
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 20px rgba(255, 193, 7, 0.6),
        0 0 40px rgba(255, 193, 7, 0.4);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hover-color);
    transition: width 0.3s ease;
}

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

/* Nav Link Stilleri */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    font-weight: 600;
}

.navbar-nav .nav-link.active::before {
    display: none;
}

.navbar-nav .nav-link i {
    transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link.active i {
    animation: pulse 2s infinite;
}

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

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--hover-color);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sticky-top {
    z-index: 1020;
}

.card {
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden; /* İçeriğin köşelerde taşmasını engelle */
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Kart içindeki görsellerin border-radius ile uyumlu olması için */
.card .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.content {
    line-height: 1.8;
}

.content h2, .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content ul, .content ol {
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* Footer Styles */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.hover-link:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.social-icon {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--accent-color) !important;
    transform: translateY(-5px) scale(1.2);
}

.footer-cta h4 {
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

/* Mobil için özel stiller */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        transform: translateX(5px);
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-cta h4 {
        font-size: 1.2rem;
    }
}
