:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(15, 15, 25, 0.95);
    --card-hover: rgba(20, 20, 35, 0.98);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.4);
}
body.light-mode {
    --dark-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-hover: rgba(255, 255, 255, 1);
    --glass: rgba(0, 0, 0, 0.03);
    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.08);
    --shadow-md: 0 8px 24px rgba(99, 102, 241, 0.12);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.15);
    --shadow-xl: 0 30px 80px rgba(99, 102, 241, 0.2);
}
body.light-mode .navbar {
    background: rgb(248 250 252 / 0.95);
    box-shadow: 0 4px 20px rgb(99 102 241 / 0.08);
}
body.light-mode .terminal {
    background: rgb(15 23 42 / 0.98);
}
body.light-mode .animated-bg {
    background: radial-gradient(circle at 20% 50%, rgb(99 102 241 / 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgb(139 92 246 / 0.08), transparent 50%),
    radial-gradient(circle at 40% 20%, rgb(236 72 153 / 0.05), transparent 50%);
}
body.light-mode .form-control {
    background: rgb(255 255 255 / 0.9) !important;
    border: 1px solid rgb(99 102 241 / 0.2) !important;
    color: var(--text-primary) !important;
}
body.light-mode .form-control:focus {
    background: rgb(255 255 255) !important;
}
.theme-toggle {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: var(--primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 10px 30px rgb(99 102 241 / 0.4) !important;
    z-index: 999999 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 2px solid rgb(255 255 255 / 0.1) !important;
    color: white !important;
    font-size: 1.5rem !important;
    pointer-events: auto !important;
}
.theme-toggle:hover {
    transform: scale(1.15) rotate(180deg) !important;
    box-shadow: 0 15px 40px rgb(99 102 241 / 0.5) !important;
}
.theme-toggle .icon {
    transition: opacity 0.3s ease;
    position: absolute;
}
.theme-toggle .moon {
    position: absolute;
}
.theme-toggle .sun {
    position: absolute;
    opacity: 0;
}
body.light-mode .theme-toggle .moon {
    opacity: 0;
}
body.light-mode .theme-toggle .sun {
    opacity: 1;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Space Grotesk", sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}
/* Ana Arka Plan Katmanı */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    /* Sabit ve derin bir renk geçişi, AI hareketliliğinden uzak */
    background: radial-gradient(circle at 50% -20%, rgba(79, 70, 229, 0.12), var(--dark-bg) 80%);
}

/* Mühendislik Izgarası (Blueprint) */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        /* Ana 100px'lik büyük kareler */
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
            /* Ara 20px'lik küçük teknik kareler */
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    /* Desenin sadece merkezde yoğunlaşıp kenarlarda kaybolması için maskeleme */
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

/* Ekstra: Noktalı Matris Katmanı (Modern Dokunuş) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.navbar {
    background: rgb(10 10 15 / 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    z-index: 10002;
}
.navbar.scrolled {
    padding: 0.9rem 0;
    box-shadow: var(--shadow-lg);
    background: rgb(10 10 15 / 0.98);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    transition: all 0.3s ease;
}
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 70%;
}
.nav-link:hover {
    color: var(--text-primary) !important;
}
.nav-link.active {
    color: var(--primary) !important;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 0.7rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(99 102 241 / 0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(99 102 241 / 0.5);
}
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}
.terminal {
    background: rgb(0 0 0 / 0.7);
    border-radius: 20px;
    border: 1px solid var(--border);
    font-family: "JetBrains Mono", monospace;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgb(20 20 30 / 0.95);
    border-bottom: 1px solid var(--border);
}
.terminal-buttons {
    position: absolute;
    top: 12px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 1;
}
.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-button.red {
    background: #ff5f56;
}
.terminal-button.yellow {
    background: #ffbd2e;
}
.terminal-button.green {
    background: #27c93f;
}
.terminal-content {
    margin-top: 40px;
    font-size: 0.95rem;
}
.terminal-line {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}
.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}
.terminal-line:nth-child(2) {
    animation-delay: 1s;
}
.terminal-line:nth-child(3) {
    animation-delay: 1.5s;
}
.terminal-line:nth-child(4) {
    animation-delay: 2s;
}
.terminal-line:nth-child(5) {
    animation-delay: 2.5s;
}
.terminal-line:nth-child(6) {
    animation-delay: 3s;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
.prompt {
    color: #10b981;
    font-weight: 600;
}
.command {
    color: #60a5fa;
}
.output {
    color: var(--text-secondary);
}
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgb(99 102 241 / 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.bento-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    background: var(--card-hover);
}
.bento-card:hover::before {
    opacity: 1;
}
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.blog-card:hover {
    transform: translateY(-12px);
}
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgb(99 102 241 / 0.4);
    transition: all 0.3s ease;
}
.bento-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}
.tech-tag {
    background: rgb(99 102 241 / 0.15);
    color: #a5b4fc;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgb(99 102 241 / 0.25);
    display: inline-block;
    margin: 4px;
    transition: all 0.3s ease;
}
.tech-tag:hover {
    background: rgb(99 102 241 / 0.25);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(99 102 241 / 0.3);
}
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(99 102 241 / 0.15), transparent);
    transition: left 0.6s ease;
}
.project-card:hover::before {
    left: 100%;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.project-card:hover .project-title {
    color: var(--primary);
}
.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}
.stat-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.form-control {
    background: rgb(255 255 255 / 0.05) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.form-control:focus {
    background: rgb(255 255 255 / 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgb(99 102 241 / 0.15) !important;
    outline: none !important;
}
.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}
.form-control,
.form-label {
    position: relative !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
}
textarea.form-control {
    resize: vertical;
    min-height: 160px;
}
.form-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgb(99 102 241 / 0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgb(99 102 241 / 0.4);
}
footer {
    background: rgb(10 10 15 / 0.95);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    backdrop-filter: blur(20px);
}
.page-header {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}
.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}
.filter-btn {
    background: rgb(99 102 241 / 0.1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}
.page-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgb(99 102 241 / 0.1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 10000;
    transition: width 0.1s ease;
}
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}
.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgb(99 102 241 / 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
.floating {
    animation: float 6s ease-in-out infinite;
}
.stats-container img {
    border-radius: 12px;
    transition: all 0.3s ease;
}
.stats-container:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
#contact .bento-card {
    position: relative;
    z-index: 10000;
}
@media (max-width: 991px) {
    body {
        cursor: auto;
    }
    #cursor {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
    .navbar-collapse {
        background: rgb(10 10 15 / 0.98);
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        border: 1px solid var(--border);
    }
    .section-title {
        font-size: 2.5rem;
    }
    .page-title {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    .page-header {
        padding: 120px 0 60px;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .bento-card {
        padding: 1.5rem;
    }
    .project-card {
        padding: 1.5rem;
    }
    .theme-toggle {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .page-title {
        font-size: 1.75rem;
    }
}
.swal2-popup {
    background: var(--card-bg) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    color: var(--text-primary) !important;
    font-family: "Space Grotesk", sans-serif !important;
    box-shadow: var(--shadow-xl) !important;
}
.swal2-title {
    color: var(--text-primary) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}
.swal2-html-container {
    color: var(--text-secondary) !important;
    font-size: 1.1rem !important;
}
.swal2-confirm.swal2-styled {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-radius: 12px !important;
    padding: 0.7rem 2rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgb(99 102 241 / 0.3) !important;
}
.swal2-cancel.swal2-styled {
    background: rgb(255 255 255 / 0.05) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
}
.swal2-icon.swal2-success {
    border-color: var(--success) !important;
    color: var(--success) !important;
}
.swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: var(--success) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border: 0.25em solid rgb(16 185 129 / 0.2) !important;
}
body.light-mode .swal2-popup {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
}
.project-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-card:hover .project-img {
    transform: scale(1.05);
}
.project-card {
    display: flex;
    flex-direction: column;
}
/* Aydınlık modda kart ikonlarının içindeki Font Awesome simgelerini düzelt */
body.light-mode .card-icon i,
body.light-mode .footer-contact-icon i,
body.light-mode .social-link-footer i {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* Hafif derinlik için */
}

/* Eğer ikonun arka planı (card-icon) aydınlık modda çok açıksa, ikonu primary renk yapalım */
/* body.light-mode .card-icon i { color: var(--primary) !important; } */

.navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
    }
}
footer {
    background: linear-gradient(180deg, rgb(10 10 15 / 0.98) 0%, rgb(5 5 10 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.08);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgb(99 102 241 / 0.03), transparent 40%),
    radial-gradient(circle at 80% 80%, rgb(139 92 246 / 0.03), transparent 40%);
    pointer-events: none;
}
footer .container {
    position: relative;
    z-index: 1;
}
.footer-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}
.footer-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.3);
}
.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary) !important;
    max-width: 400px;
}
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}
.social-links-footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.social-link-footer {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgb(99 102 241 / 0.08);
    border: 1px solid rgb(99 102 241 / 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.social-link-footer:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(99 102 241 / 0.35);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}
.footer-link i {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}
.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}
.footer-link:hover i {
    opacity: 1;
    transform: translateX(0);
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}
.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgb(99 102 241 / 0.08);
    border: 1px solid rgb(99 102 241 / 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: all 0.3s ease;
}
.footer-contact-item:hover .footer-contact-icon {
    background: rgb(99 102 241 / 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}
.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer-contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.footer-contact-text span,
.footer-contact-text a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact-text a:hover {
    color: var(--primary);
}
.footer-bottom {
    margin-top: 3rem;
}
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgb(99 102 241 / 0.15), transparent);
    margin-bottom: 1.5rem;
}
.footer-copyright,
.footer-made-with {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-made-with i {
    animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    10%,
    30% {
        transform: scale(1.1);
    }
    20%,
    40% {
        transform: scale(1);
    }
}
body.light-mode footer {
    background: linear-gradient(180deg, rgb(248 250 252 / 0.98) 0%, rgb(241 245 249 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.12);
}
body.light-mode footer::before {
    background: radial-gradient(circle at 20% 50%, rgb(99 102 241 / 0.04), transparent 40%),
    radial-gradient(circle at 80% 80%, rgb(139 92 246 / 0.04), transparent 40%);
}
body.light-mode .social-link-footer {
    background: rgb(99 102 241 / 0.08);
    border-color: rgb(99 102 241 / 0.15);
}
body.light-mode .footer-contact-icon {
    background: rgb(99 102 241 / 0.08);
    border-color: rgb(99 102 241 / 0.15);
}
footer {
    background: linear-gradient(180deg, rgb(10 10 15 / 0.98) 0%, rgb(5 5 10 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.08);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgb(99 102 241 / 0.04), transparent 50%),
    radial-gradient(circle at 70% 80%, rgb(139 92 246 / 0.04), transparent 50%);
    pointer-events: none;
}
footer .container {
    position: relative;
    z-index: 1;
}
.footer-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}
.footer-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.3);
}
.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 100%;
}
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.social-links-footer {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.social-link-footer {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgb(99 102 241 / 0.06);
    border: 1px solid rgb(99 102 241 / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.social-link-footer:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgb(99 102 241 / 0.35);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}
.footer-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}
.footer-link:hover::after {
    width: 100%;
}
.footer-contact-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-simple-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.footer-contact-simple-item:hover {
    color: var(--text-primary);
}
.footer-contact-simple-item i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    opacity: 0.8;
}
.footer-contact-simple-item span {
    line-height: 1.5;
}
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
}
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgb(99 102 241 / 0.12), transparent);
    margin-bottom: 1.5rem;
}
.footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
body.light-mode footer {
    background: linear-gradient(180deg, rgb(248 250 252 / 0.98) 0%, rgb(241 245 249 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.12);
}
body.light-mode footer::before {
    background: radial-gradient(circle at 30% 50%, rgb(99 102 241 / 0.05), transparent 50%),
    radial-gradient(circle at 70% 80%, rgb(139 92 246 / 0.05), transparent 50%);
}
body.light-mode .social-link-footer {
    background: rgb(99 102 241 / 0.08);
    border-color: rgb(99 102 241 / 0.15);
}
.footer-premium {
    background: linear-gradient(180deg, rgb(7 7 12 / 0.97) 0%, rgb(4 4 8 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.06);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 0;
}
.footer-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 30%, rgb(99 102 241 / 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgb(139 92 246 / 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.footer-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(99 102 241 / 0.5), rgb(139 92 246 / 0.5), transparent);
}
.footer-decoration::before,
.footer-decoration::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgb(99 102 241 / 0.6);
}
.footer-decoration::before {
    left: -3px;
}
.footer-decoration::after {
    right: -3px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgb(99 102 241 / 0.06);
}
.footer-brand {
    text-align: center;
    margin-bottom: 4rem;
}
.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-logo-link:hover {
    transform: scale(1.05) translateY(-4px);
}
.footer-logo-img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgb(99 102 241 / 0.2));
}
.footer-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.footer-section {
    text-align: center;
}
.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.footer-nav-link i {
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}
.footer-nav-link:hover {
    color: var(--primary);
    background: rgb(99 102 241 / 0.05);
    padding-right: 1.5rem;
}
.footer-nav-link:hover i {
    opacity: 1;
    transform: translateX(0);
}
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.footer-contact-item:hover {
    color: var(--text-primary);
    background: rgb(99 102 241 / 0.05);
}
.footer-contact-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgb(99 102 241 / 0.1), rgb(139 92 246 / 0.1));
    border: 1px solid rgb(99 102 241 / 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.footer-contact-item:hover .footer-contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgb(99 102 241 / 0.3);
}
.footer-contact-text {
    text-align: left;
    line-height: 1.5;
}
.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}
.footer-social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgb(99 102 241 / 0.05);
    border: 1px solid rgb(99 102 241 / 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.footer-social-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(99 102 241 / 0.1), transparent);
    transition: left 0.5s ease;
}
.footer-social-item:hover::before {
    left: 100%;
}
.footer-social-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: #fff0;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(99 102 241 / 0.3);
}
.footer-social-item i {
    font-size: 1rem;
}
.footer-bottom {
    padding: 2rem 0;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}
.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgb(99 102 241 / 0.06);
    border: 1px solid rgb(99 102 241 / 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.footer-badge i {
    font-size: 0.7rem;
    color: var(--primary);
}
body.light-mode .footer-premium {
    background: linear-gradient(180deg, rgb(249 250 251 / 0.98) 0%, rgb(243 244 246 / 0.99) 100%);
    border-top-color: rgb(99 102 241 / 0.12);
}
body.light-mode .footer-premium::before {
    background-image: radial-gradient(circle at 25% 30%, rgb(99 102 241 / 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgb(139 92 246 / 0.04) 0%, transparent 50%);
}
body.light-mode .footer-content {
    border-bottom-color: rgb(99 102 241 / 0.12);
}
body.light-mode .footer-social-item {
    background: rgb(99 102 241 / 0.08);
    border-color: rgb(99 102 241 / 0.15);
}
body.light-mode .footer-contact-icon {
    background: linear-gradient(135deg, rgb(99 102 241 / 0.12), rgb(139 92 246 / 0.12));
    border-color: rgb(99 102 241 / 0.25);
}
.site-footer {
    background: linear-gradient(180deg, rgb(8 8 13 / 0.97) 0%, rgb(5 5 10 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.08);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgb(99 102 241 / 0.03), transparent 40%),
    radial-gradient(circle at 80% 70%, rgb(139 92 246 / 0.03), transparent 40%);
    pointer-events: none;
}
.site-footer .container {
    position: relative;
    z-index: 1;
}
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgb(99 102 241 / 0.08);
}
.footer-col h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}
.footer-col h6::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.85rem;
}
.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}
.footer-col ul li a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}
.footer-col ul li a:hover::before {
    width: 100%;
}
.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.footer-logo:hover {
    transform: translateY(-3px);
}
.footer-logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgb(99 102 241 / 0.2));
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 380px;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 42px;
    height: 42px;
    background: rgb(99 102 241 / 0.06);
    border: 1px solid rgb(99 102 241 / 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.footer-social a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}
.footer-social a:hover::before {
    width: 200%;
    height: 200%;
}
.footer-social a i {
    position: relative;
    z-index: 1;
}
.footer-social a:hover {
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgb(99 102 241 / 0.25);
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}
.footer-contact li:hover {
    transform: translateX(3px);
}
.footer-contact li i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.footer-contact li span,
.footer-contact li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact li a:hover {
    color: var(--primary);
}
.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}
body.light-mode .site-footer {
    background: linear-gradient(180deg, rgb(249 250 251 / 0.98) 0%, rgb(243 244 246 / 0.99) 100%);
    border-top: 1px solid rgb(99 102 241 / 0.12);
}
body.light-mode .site-footer::before {
    background: radial-gradient(circle at 20% 30%, rgb(99 102 241 / 0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgb(139 92 246 / 0.04), transparent 40%);
}
body.light-mode .footer-main {
    border-bottom: 1px solid rgb(99 102 241 / 0.12);
}
body.light-mode .footer-social a {
    background: rgb(99 102 241 / 0.08);
    border-color: rgb(99 102 241 / 0.15);
}
@media (max-width: 991px) {
    .site-footer {
        padding: 4rem 0 2rem;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .site-footer {
        padding: 3.5rem 0 2rem;
    }
    .footer-logo img {
        height: 38px;
    }
    .footer-desc {
        font-size: 0.9rem;
    }
    .footer-col h6 {
        font-size: 0.8rem;
    }
}
@media (max-width: 576px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .footer-logo img {
        height: 35px;
    }
    .footer-desc {
        max-width: 100%;
        font-size: 0.875rem;
    }
    .footer-social {
        justify-content: flex-start;
    }
    .footer-col h6 {
        margin-bottom: 1.25rem;
    }
    .footer-bottom {
        padding-top: 1.5rem;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}
.site-footer * {
    transition: all 0.3s ease;
}
