/* Reset ve Temel Stiller */
:root {
    --primary-color: #6C63FF;
    --primary-dark: #5a52d6;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --card-bg: #f5f5f7;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #7d75ff;
    --primary-dark: #6C63FF;
    --text-color: #f5f5f5;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: rgba(30, 30, 30, 0.95);
    --border-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

h1, h2, h3 {
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    height: 70px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: relative;
    width: 100%;
    height: 100%;
}

.logo img {
    max-height: 40px;
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background-color: var(--card-bg);
    color: var(--primary-color);
}

.theme-toggle .fas {
    transition: transform 0.5s ease;
}

.theme-toggle:hover .fas {
    transform: rotate(30deg);
}

/* Language Selector Styles */
.language-dropdown {
    position: relative;
}

.language-select {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    width: 36px;
    height: 36px;
}

.language-select:hover {
    background-color: var(--card-bg);
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.language-select:hover .flag-icon {
    transform: scale(1.1);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-options button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    text-align: left;
}

.language-options button:hover {
    background-color: var(--card-bg);
    color: var(--primary-color);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.desktop-nav li {
    margin-left: 25px;
    position: relative;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 8px 20px;
}

/* Oyunlar Dropdown Özel Stili */
.games-dropdown-menu {
    min-width: 450px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.games-category-title {
    grid-column: span 2;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.game-dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.game-dropdown-item:hover {
    background-color: var(--card-bg);
}

.game-dropdown-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.game-dropdown-item span {
    font-size: 0.9rem;
}

.view-more-btn {
    grid-column: span 2;
    text-align: center;
    margin-top: 10px;
}

.view-more-btn a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.view-more-btn a:hover {
    background-color: var(--primary-dark);
    color: #fff !important; /* Yazı sabit beyaz kalır */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Web Apps Dropdown */
.webapps-dropdown-menu {
    min-width: 300px;
    padding: 15px;
    display: grid;
    gap: 10px;
}

/* Mobile Navigation - Important for responsive design */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    z-index: 100;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%; /* Reduced from 300px fixed width to percentage */
    max-width: 350px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px; /* Increased padding at the bottom to ensure all content is visible */
}

.mobile-nav.active {
    right: 0;
    height: 100%;
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-nav-header .logo img {
    height: 40px;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-nav-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease; /* Increased transition time for smoother animation */
    padding-left: 15px;
    padding-right: 15px;
    width: 100%; /* Ensure full width */
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 1000px;
    margin-bottom: 10px; /* Add margin at the bottom for better spacing */
    margin-top: 5px; /* Add margin at the top for better spacing */
}

.mobile-dropdown-menu ul {
    padding: 0;
}

.mobile-dropdown-menu h4 {
    margin: 15px 0 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.mobile-dropdown-menu a img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 800px;
    width: 90%;
    z-index: 3;
    position: relative;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease 0.5s forwards;
    opacity: 0;
    text-align: center;
}

/* Dark mode slide content styling */
[data-theme="dark"] .slide-content {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: var(--text-color); /* Ensure text color matches dark theme */
}

/* Ensure slider background overlay works well with dark mode */
[data-theme="dark"] .slide {
    background-blend-mode: darken;
}

/* Improve button contrast in dark mode */
[data-theme="dark"] .slide-content .btn {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.4);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Slider controls and dots removed as they were not working */

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 20px;
    border-radius: 2px;
}

.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 20px;
}

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

.filter-btn:hover:not(.active) {
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.tab-btn:hover:not(.active) {
    color: var(--primary-color);
}

.tab-icon {
    font-size: 1.2rem;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.3s ease;
}

.loading-container {
    text-align: center;
    /* Arka plan kutusunu kaldırdık */
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
}

.loading-gif {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    display: none;
}

.light-mode-gif {
    display: block;
}

.dark-mode-gif {
    display: none;
}

[data-theme="dark"] .light-mode-gif {
    display: none;
}

[data-theme="dark"] .dark-mode-gif {
    display: block;
}

.loading-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

/* Progress bar removed */

/* Dark mode */
[data-theme="dark"] .loading-text {
    color: var(--text-color);
}

body.loading-active {
    overflow: hidden;
    height: 100vh;
}



/* Media Queries for Different Device Sizes */
@media (max-width: 1024px) {
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .games-dropdown-menu {
        min-width: 380px;
    }
}

@media (max-width: 768px) {
    .loading-gif {
        width: 150px;
        height: 150px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-container {
        padding: 20px;
    }    
	
	.desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Fix tab navigation on mobile */
    .tab-navigation {
        gap: 8px;
        margin-top: 20px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: calc(50% - 8px);
        justify-content: center;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    /* Ensure header layout works on mobile */
    .header-container {
        padding: 15px 10px;
    }
    
    .logo img {
        max-height: 40px;
    }

    .hero-slider {
        margin-top: 70px;
        height: 350px;
    }

    /* Slide content kutusu küçültme */
    .slide-content {
        padding: 10px;
        font-size: 0.65rem;
        max-width: 75%;
    }

    .slide-content h2 {
        font-size: 1rem;
    }

    .slide-content p {
        font-size: 0.75rem;
    }

    /* Slide içindeki alt yazılar */
    .slide-content .subtitle,
    .slide-content .meta,
    .slide-content small,
    .slide-content span {
        font-size: 0.65rem;
    }

    /* Slide dışı başlıklar */
    .slide-title,
    .slide-heading,
    .slider .heading,
    .slider h1,
    .slider h2 {
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .prev-slide,
    .next-slide {
        width: 40px;
        height: 40px;
    }

    .projects-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .social-links {
        justify-content: center;
        margin-left: 0;
    }
    
    /* Improve social icons spacing on mobile */
    .social-links a {
        margin: 0 8px;
        font-size: 1.5rem;
        padding: 8px;
    }
    
    /* Improve contact section on mobile */
    .footer-contact p {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-contact p i {
        min-width: 20px;
        text-align: center;
    }
    
    /* Ensure consistent width for footer sections */
    .footer-logo, 
    .footer-links, 
    .footer-contact {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        margin-bottom: 20px;
        text-align: center;
        width: auto;
    }
    
    .footer-links-container,
    .contact-info-container {
        width: 100%;
        align-items: center;
        justify-content: center;
        max-width: 300px;
    }
    
    .footer-links ul {
        text-align: center;
        width: 100%;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: 15px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ensure mobile menu is fully visible on smaller devices */
    .mobile-nav {
        width: 90%;
    }
}

/* Galaxy Note 20 and similar large phones */
/* Galaxy Note 20 and similar large phones */
@media screen and (min-width: 360px) and (max-width: 915px) {
    /* Specific styles for Galaxy Note 20 */
    .mobile-nav {
        width: 90%;
        max-width: 380px;
    }
    
    .mobile-dropdown-menu {
        padding-right: 25px;
    }
    
    .mobile-dropdown-menu a {
        font-size: 1rem;
        padding: 10px 0;
    }
    
    .mobile-dropdown-menu img {
        width: 35px;
        height: 35px;
    }
    
    /* Improve touch targets for better usability */
    .mobile-dropdown .nav-link {
        padding: 12px 0;
    }
    
    /* Adjust hero slider for taller screens */
    .hero-slider {
        height: 380px;
    }
    
    /* Fix mobile navigation scrolling */
    .mobile-nav {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve mobile dropdown visibility */
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 1500px; /* Increased to ensure all content is visible */
    }
    
    /* Adjust footer for better spacing */
    .footer-content {
        gap: 30px;
    }
    
    /* Ensure buttons are easier to tap */
    .btn, 
    .mobile-menu-btn,
    .close-menu-btn,
    .language-select,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Language Selector */
.language-dropdown {
    position: relative;
    margin-left: 15px;
}

.language-select {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 3px;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-options button {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px 20px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-options button:hover {
    background-color: var(--card-bg);
}

/* Technologies Section */
.technologies-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.tech-logos img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: var(--transition);
}

.tech-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .tech-logos {
        gap: 20px;
    }
    
    .tech-logos img {
        width: 60px;
        height: 60px;
    }
}
.technologies-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

.tech-logos img {
    height: 80px;
    opacity: 0.7;
    transition: var(--transition);
}

.tech-logos img:hover {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 60px 0 0;
    color: var(--text-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.footer-logo {
    flex: 2;
    min-width: 200px;
}

.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-align: left;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .footer-links h3:after,
    .footer-contact h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .footer-contact,
    .footer-logo {
        min-width: 100%;
    }
}

.footer-links-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links-container {
        justify-content: center;
    }
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.contact-item {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.contact-item i {
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-info-container {
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-links-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.3rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Theme transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    max-width: 800px;
    width: 100%;
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--card-bg);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: var(--card-bg);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.modal h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.modal-body {
    color: var(--text-color);
}

/* About Modal Specific Styles */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    transition: var(--transition);
}

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

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Modal Specific Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info .contact-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.contact-info .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-info .contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info .contact-item h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-info .contact-item p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.1);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        margin: 10px auto;
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal h2 {
        font-size: 1.5rem;
        padding-right: 40px;
    }

    .feature {
        padding: 15px;
    }

    .feature i {
        font-size: 2rem;
    }

    .modal-body {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    .contact-info .contact-item {
        padding: 15px 10px;
    }

    .contact-info .contact-item i {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .close-modal {
        right: 10px;
        top: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Theme transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
