/* --- CSS Reset & Variables --- */
:root {
    /* Colors */
    --bg-dark: #020617;
    /* Slate 950 */
    --bg-surface: #0f172a;
    /* Slate 900 */
    --bg-surface-light: rgba(255, 255, 255, 0.03);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-color: #38bdf8;
    /* Sky 400 */
    --accent-hover: #7dd3fc;
    --accent-glow: rgba(56, 189, 248, 0.2);

    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, #0284c7 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

.layout-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
}

.bg-glow-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(43, 43, 43, 0.5);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

.accent {
    color: var(--accent-color);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
}

.text-center {
    text-align: center;
    margin-inline: auto;
}

/* --- Components --- */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition-normal);
}

.glass-header.scrolled {
    padding: 0.25rem 0;
    top: 10px;
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Orijinal renk tonlarını bozmadan koyu renk logoyu açık temalı bir yapıya çevirme büyüsü */
    filter: invert(1) hue-rotate(180deg) brightness(1.4);
    mix-blend-mode: screen;
}

.logo:hover .header-logo-img {
    transform: scale(1.05);
    filter: invert(1) hue-rotate(180deg) brightness(1.6) drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--text-primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05); /* Soft glass background for button */
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    position: relative;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.mobile-menu-btn b {
    display: block;
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 11px;
}

.mobile-menu-btn b:nth-child(1) { top: 15px; }
.mobile-menu-btn b:nth-child(2) { top: 21.5px; width: 15px; left: 11px; }
.mobile-menu-btn b:nth-child(3) { top: 28px; }

.mobile-menu-btn.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.mobile-menu-btn.active b { background: #ef4444; }

.mobile-menu-btn.active b:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.mobile-menu-btn.active b:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.mobile-menu-btn.active b:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Offset for fixed header */
    position: relative;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.45) 100%), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* --- Services Section --- */
/* --- Services Section (Bento Grid) --- */
.services-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 380px;
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-surface);
    cursor: pointer;
}

.bento-card:active {
    transform: scale(0.98) translateY(2px);
}

.bento-card:nth-child(1) {
    grid-column: span 2;
}

.bento-card:nth-child(2) {
    grid-column: span 1;
}

.bento-card:nth-child(3) {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-card:nth-child(4) {
    grid-column: span 1;
}

.bento-card:nth-child(5) {
    grid-column: span 2;
}

.bento-card:nth-child(6) {
    grid-column: span 2;
}

.bento-card:nth-child(7) {
    grid-column: span 1;
}

.bento-card:nth-child(8) {
    grid-column: span 1;
}

.bento-card:hover,
.bento-card.active-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
    z-index: 5;
}

.bento-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover .bento-bg,
.bento-card.active-card .bento-bg {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.7) 40%, rgba(2, 6, 23, 0.2) 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.bento-card:hover .bento-overlay,
.bento-card.active-card .bento-overlay {
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.7) 40%, rgba(2, 6, 23, 0.2) 100%);
}

.bento-content {
    position: relative;
    z-index: 3;
}

.bento-content h3 {
    font-size: 1.65rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s ease;
}

.bento-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    transition: all 0.4s ease;
}

.bento-card:hover .bento-content p,
.bento-card.active-card .bento-content p {
    max-height: 250px;
    opacity: 1;
    margin-top: 1rem;
}

.bento-action {
    display: inline-flex;
    margin-top: 1.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    transition-delay: 0.1s;
}

.bento-card:hover .bento-action,
.bento-card.active-card .bento-action {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .services-bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-card:nth-child(1) {
        grid-column: span 2;
    }

    .bento-card:nth-child(2) {
        grid-column: span 1;
    }

    .bento-card:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card:nth-child(4) {
        grid-column: span 2;
    }

    .bento-card:nth-child(5) {
        grid-column: span 3;
    }

    .bento-card:nth-child(6) {
        grid-column: span 1;
    }

    .bento-card:nth-child(7) {
        grid-column: span 1;
    }

    .bento-card:nth-child(8) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .services-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto; /* Allow cards to grow with content */
        gap: 1.5rem;
    }

    .bento-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 380px; /* Minimum height for consistency */
        padding: 2rem; /* Slightly reduced padding for mobile */
    }

    /* Show content by default on mobile */
    .bento-content p {
        max-height: 1000px;
        opacity: 1;
        margin-top: 1rem;
    }

    .bento-action {
        opacity: 1;
        transform: translateY(0);
        margin-top: 1.5rem;
    }

    /* Darker overlay on mobile for better readability */
    .bento-overlay {
        background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.8) 50%, rgba(2, 6, 23, 0.4) 100%);
    }

    /* Prevent hover-only styles from flickering on tap if they are already shown */
    .bento-card:hover,
    .bento-card.active-card {
        transform: none;
        box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
    }
}



/* --- References --- */
.references {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.8rem;
    padding: 2rem 0;
}

.logo-box {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    aspect-ratio: 16/9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo-box img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-box span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.logo-box:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15), 0 0 0 1px var(--accent-color);
    z-index: 5;
}

.logo-box:hover img {
    transform: scale(1.12);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    background: #020617;
    /* Slate 950 */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 400px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.contact-info .icon {
    font-size: 1.2rem;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-map:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

.btn-map svg {
    transition: transform 0.3s ease;
}

.btn-map:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a:hover {
    color: var(--text-primary);
}

/* --- Animations --- */
/* Initial state for JS reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(25px) saturate(160%);
        -webkit-backdrop-filter: blur(25px) saturate(160%);
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center links as requested */
        padding: 2rem;
        text-align: center;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Simple staggered delay */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }

    .nav-links a {
        font-size: 1.75rem !important; /* Smaller cleaner size */
        font-weight: 700 !important;
        display: block;
        color: #fff !important;
        letter-spacing: -0.5px;
    }

    /* Disable bg-glow on mobile to fix rendering issues and improve performance */
    .bg-glow {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-scroll-indicator {
        display: none; /* Hide on small screens to avoid overlap with buttons */
    }

    .glass-header {
        top: 10px;
        width: 95%;
        padding: 0.4rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 5vw;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* --- Signature Styles --- */
.footer-signature {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-signature span {
    opacity: 0.6;
    font-weight: 400;
}

.footer-signature a {
    color: var(--accent-color);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-signature a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-signature a:hover {
    color: #fff;
}

.footer-signature a:hover::after {
    width: 100%;
}

.social-links-footer {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links-footer a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* Modern rounded corners */
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.social-links-footer a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
    border-color: var(--accent-color);
}

/* Scroll Offset for Contact on Mobile */
#contact {
    scroll-margin-top: 110px;
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    /* Slate 900 slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    /* Cyan border */
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn svg {
    transition: transform 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.scroll-top-btn:hover svg {
    transform: translateY(-2px);
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.modal-content-inner {
    padding: 3rem;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal */
.modal-content-inner::-webkit-scrollbar {
    width: 8px;
}

.modal-content-inner::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.modal-content-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content-inner::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.modal-content-inner h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-right: 3rem;
    position: relative;
    display: inline-block;
}

.modal-content-inner h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.modal-body-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-body-text p {
    margin-bottom: 1.5rem;
}

.modal-body-text p:last-child {
    margin-bottom: 0;
}

.modal-body-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-content-inner {
        padding: 2rem;
    }

    .modal-content-inner h2 {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}

/* Custom Scrollbar for Nav Links on Mobile */
.nav-links::-webkit-scrollbar {
    width: 6px;
}

.nav-links::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-links::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}