/* Index Page Specific Styles */
/* Body adjustments for index page */
body {
    padding-top: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Container max-width to prevent excessive right spacing */
.container {
    max-width: 1200px;
}

/* Mobile body adjustments */
@media (max-width: 991.98px) {
    body {
        padding-top: 0 !important;
        overflow-x: hidden;
    }
}

/* Hero Section */

.section-padding:not(#home) {
    scroll-margin-top: 80px;
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        var(--gradient-overlay),
        /* filtre rengi */
        url('../../images/hero/slide-1.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: cover;
}

.hero-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    /* margin-bottom: 2rem; */
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* Her zaman görünür */
    position: relative;
}

.typewriter-text {
    display: inline-block;
    min-width: 50px;
    /* Minimum genişlik */
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0;
    /* Başlangıçta görünmez */
    /* margin-bottom: 3rem; */
    transition: all 0.4s ease;
    /* Daha hızlı transition */
    min-height: 80px;
    /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(30px);
    /* Başlangıç pozisyonu */
    color: var(--text-white);
}

.hero-subtitle.fade-in-up {
    opacity: 0.9;
    transform: translateY(0);
}

.hero-subtitle.fade-out-down {
    opacity: 0;
    transform: translateY(30px);
}

/* Additional keyframe animations for subtitle */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 0.9;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

.hero-buttons {
    opacity: 1;
    /* Her zaman görünür */
    transform: translateY(0);
    min-height: 60px;
    /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem !important;
    padding-top: 50px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        min-height: 80px;
        /* Sabit yükseklik mobilde de */
    }

    .hero-subtitle {
        font-size: 1.2rem;
        min-height: 80px;
        /* Mobilde daha fazla yükseklik */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem !important;
        min-height: 120px;
        /* Mobilde daha fazla yükseklik */
    }

    .section-padding {
        padding: 40px 0;
    }
}

/* Blog Cards */
.blog-img {
    height: 200px;
    object-fit: cover;
}

/* Portfolio Cards */
.portfolio-img {
    height: 250px;
    object-fit: cover;
}

/* Services Section */
.feature-icon {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-info {
    padding: 0;
}

/* Social Media Buttons */
.btn.instagram:hover {
    background: var(--gradient-instagram);
    color: var(--text-white);
    border-color: transparent;
}

.btn.github:hover {
    background: var(--color-github);
    color: var(--text-white);
    border-color: var(--color-github);
}

.btn.twitter:hover {
    background: var(--color-twitter);
    color: var(--text-white);
    border-color: var(--color-twitter);
}

.btn.linkedin:hover {
    background: var(--color-linkedin);
    color: var(--text-white);
    border-color: var(--color-linkedin);
}



/* Slide Backgrounds */
.slide-1 {
    background-image: var(--gradient-overlay), url('../../images/hero/slide-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-2 {
    background-image: var(--gradient-overlay), url('../../images/hero/slide-2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-3 {
    background-image: var(--gradient-overlay), url('../../images/hero/slide-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contact Section Social Buttons */
.btn-outline-custom-dark {
    border: 2px solid var(--gray-800);
    color: var(--gray-800);
    background: transparent;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom-dark:hover {
    background: var(--gray-800);
    color: var(--text-white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-custom-dark.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-custom-dark.github:hover {
    background: var(--gray-800);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-custom-dark.twitter:hover {
    background: #1da1f2;
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-custom-dark.linkedin:hover {
    background: #0077b5;
    border-color: transparent;
    color: var(--text-white);
}

/* Custom Button Styles */
.btn-custom {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background: var(--gradient-blue-alt);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
    color: var(--text-white);
    text-decoration: none;
}

/* Read More Button Styles */
.btn-outline-primary {
    color: var(--text-white);
    background: var(--gradient-primary);
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
    text-decoration: none;
}

/* Portfolio "Detayları Görüntüle" Button */
.btn-outline-light {
    color: var(--text-white);
    border: 2px solid var(--text-white);
    background: transparent;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: var(--bg-white) !important;
    color: var(--primary-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Hero Slider Button Styles */
.carousel-content .btn-custom {
    font-size: 1.1rem;
    padding: 10px 35px;
    margin: 0 10px;
    border-radius: 5px;
}

.carousel-content .btn-outline-light {
    font-size: 1.1rem;
    padding: 10px 35px;
    margin: 0 10px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-content .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-600);
}

/* Mobile Hero Button Improvements */
@media (max-width: 768px) {

    .carousel-content .btn-custom,
    .carousel-content .btn-outline-light {
        font-size: 0.95rem;
        padding: 12px 24px;
        margin: 5px;
        width: 100%;
        max-width: 200px;
    }

    .carousel-content .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .carousel-content h1 {
        font-size: 2rem !important;
    }

    .carousel-content p {
        font-size: 1rem;
    }
}

/* Prevent horizontal scroll and spacing issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive container adjustments */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
        gap: 0;
    }

    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Social Media Icon Styling */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.2rem;
}

/* Navbar Brand Bold */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    transition: all 0.4s ease;
    background-color: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1050;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: var(--box-shadow-lg);
}

.navbar-brand {
    color: var(--text-white) !important;
    transition: color 0.4s ease;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.4rem;
}

.navbar.scrolled .navbar-brand {
    color: var(--text-primary) !important;
}

.navbar-brand img {
    height: 40px;
    transition: opacity 0.4s ease;
}

.navbar-brand .logo-light {
    opacity: 1;
}

.navbar.scrolled .navbar-brand .logo-light {
    opacity: 0;
}

.navbar-brand .logo-dark {
    opacity: 0;
    position: absolute;
}

.navbar.scrolled .navbar-brand .logo-dark {
    opacity: 1;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.4s ease;
}

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

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

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

.navbar-nav .nav-link.active {
    color: var(--text-white) !important;
    font-weight: 600;
}

.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--secondary-600) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    border: none !important;
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .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%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile navbar styles */
@media (max-width: 991.98px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;
        will-change: auto !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: var(--box-shadow-xl);
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-collapse .navbar-nav .nav-link {
        color: var(--text-primary) !important;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .navbar-collapse .navbar-nav .nav-link:hover {
        color: var(--secondary-600) !important;
        background-color: rgba(29, 78, 216, 0.1);
        border-radius: 5px;
        padding-left: 15px;
    }

    .navbar-collapse .navbar-nav .nav-link.active {
        color: var(--secondary-600) !important;
        font-weight: 600;
        background-color: rgba(29, 78, 216, 0.1);
        border-radius: 5px;
        padding-left: 15px;
    }
}

/* Hero Section */

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    height: 100vh;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

/* Category Cards */
.category-card {
    background: var(--gradient-blue-alt);
    color: var(--text-white) !important;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: block;
    transition: transform 0.3s ease;
    text-align: center;
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.category-card h3,
.category-card p {
    color: var(--text-white);
}

.category-card:hover {
    color: var(--text-white);
    transform: scale(1.05);
}

.category-card.blue {
    background: var(--gradient-blue);
}

.category-card.green {
    background: var(--gradient-success);
}

.category-card.orange {
    background: var(--gradient-error);
}

.category-card.purple {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-400) 100%);
    color: var(--text-white);
}

.category-card.red {
    background: var(--gradient-error);
}

.category-card.teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.category-card.indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Contact Section Social Buttons */
.btn-outline-custom-dark.instagram:hover {
    background: var(--gradient-instagram);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-custom-dark.github:hover {
    background: var(--color-github);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-custom-dark.twitter:hover {
    background: var(--color-twitter);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-custom-dark.linkedin:hover {
    background: var(--color-linkedin);
    border-color: transparent;
    color: var(--text-white);
}

/* Custom Button Styles */
.btn-custom {
    /* background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); */
    border: none;
    color: var(--text-white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: var(--gradient-blue-alt);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
    color: var(--text-white);
}

.btn-outline-custom-dark {
    border: 2px solid var(--gray-800);
    color: var(--gray-800);
    background: transparent;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* Social Media Button Styles for btn-outline-light */
.btn-outline-light {
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light.instagram:hover {
    background: var(--gradient-instagram);
    border-color: transparent;
    color: var(--text-white);
    transform: translateY(-2px);
}

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

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

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

/* General Button Transition Enhancement */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Override for social media buttons to have specific transforms */
.btn.instagram:hover,
.btn.github:hover,
.btn.twitter:hover,
.btn.linkedin:hover {
    transform: translateY(-2px);
}

/* Tek ve ortak .btn-primary stili */
.btn-primary {
    background: var(--gradient-primary);
    /* border: 2px solid #1e40af; */
    border-radius: 5px;
    padding: 8px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    /* border-color: #1d4ed8; */
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3);
}

/* Social Media Button Styles for btn-outline-dark (Contact Section) */
.btn-outline-dark.instagram {
    color: var(--gray-800);
    border: 2px solid var(--gray-800);
    background: transparent;
    border-radius: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-dark.github {
    color: var(--gray-800);
    border: 2px solid var(--gray-800);
    background: transparent;
    border-radius: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-dark.twitter {
    color: var(--gray-800);
    border: 2px solid var(--gray-800);
    background: transparent;
    border-radius: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-dark.linkedin {
    color: var(--gray-800);
    border: 2px solid var(--gray-800);
    background: transparent;
    border-radius: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-dark.instagram:hover {
    background: var(--gradient-instagram);
    border-color: transparent;
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

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

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

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

i {
    font-size: var(--font-size-lg);
}

.bi-chevron-double-down {
    font-size: var(--font-size-3xl);
}

.scroll-down-btn {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-white);
    cursor: pointer;
    text-decoration: none;
    animation: bounce 1.8s infinite;
    transition: color 0.3s ease;
    z-index: 10;
}

.scroll-down-btn:hover {
    color: var(--bg-lighter);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, 10px);
    }

    60% {
        transform: translate(-50%, 5px);
    }
}

/* Contact Info Links Font Weight Fix */
#contact .contact-info a {
    font-weight: normal !important;
}