:root {
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);

    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --active-color: #00d2ff;
    --sidebar-width: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #000;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;

    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;

    .video-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        opacity: 0.6;
    }

    .hero {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;

        padding-left: calc(var(--sidebar-width) + 100px);

        padding-right: 50px;
    }

    .hero h1 {
        font-size: 5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: slideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .herobutton {
        animation: slideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1);

    }

    .hero p {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.8);
        max-width: 600px;
        animation: slideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .side-nav-container {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: var(--sidebar-width);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 20px;
    }

    .liquid-glass-menu {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 40px 15px;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 50px;

        box-shadow: var(--glass-shadow);
        align-items: center;
        position: relative;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.6);
        position: relative;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 2;
    }

    .nav-item i {
        font-size: 1.8rem;
        margin-bottom: 5px;
        transition: transform 0.3s;
    }

    .nav-item span {
        font-size: 0.75rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s;
        position: absolute;
        /* Keep layout stable */
        top: 35px;
        white-space: nowrap;
    }

    /* Hover & Active States */
    .nav-item:hover,
    .nav-item.active {
        color: #fff;
    }

    .nav-item:hover i {
        transform: scale(1.2);
        text-shadow: 0 0 15px var(--active-color);
    }

    .nav-item.active i {
        transform: translateY(-5px);
        color: var(--active-color);
        text-shadow: 0 0 20px var(--active-color);
    }

    .nav-item:hover span,
    .nav-item.active span {
        opacity: 1;
        transform: translateY(0);
    }

    .liquid-glass-menu::before {
        content: '';
        position: absolute;
        width: 60%;
        height: 50px;
        background: rgba(255, 255, 255, 0.15);
        filter: blur(20px);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
        pointer-events: none;
        opacity: 0.5;
    }

    .admin-nav-container {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: var(--sidebar-width);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 20px;
    }

    .admin-menu {
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .admin-menu .nav-item span {
        left: auto;
        right: 50px;

        top: 50%;
        transform: translateY(-50%) translateX(-10px);
        opacity: 0;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.8);
        padding: 5px 10px;
        border-radius: 5px;
    }

    .admin-menu .nav-item:hover span {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    .page-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: calc(var(--sidebar-width) + 50px);
        padding-right: calc(var(--sidebar-width) + 50px);

        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .page-section h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
        background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .glass-card {
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        padding: 2rem;
        border-radius: 20px;
        margin-bottom: 1rem;
        max-width: 600px;
        transition: box-shadow 0.3s, border-color 0.3s;
    }


    .glass-card h3 {
        margin-bottom: 0.5rem;
        color: #fff;
    }

    .glass-card p {
        color: rgba(255, 255, 255, 0.7);
    }

    @media (max-width: 768px) {
        :root {
            --sidebar-width: 0px;
        }

        .page-section {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 100px;

            text-align: center;
            align-items: center;
        }

        .hero h1 {
            font-size: 3rem;
        }

        .side-nav-container {
            top: auto;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 95%;
            height: auto;
            padding: 0;
        }

        .liquid-glass-menu {
            flex-direction: row;
            width: 100%;
            justify-content: space-between;

            padding: 15px 25px;
            border-radius: 30px;
            gap: 0;
        }

        .nav-item {
            justify-content: center;
            padding: 5px;
        }

        .nav-item i {
            margin-bottom: 0;
            font-size: 1.5rem;
        }

        .nav-item span {
            display: none;
        }

        .nav-item.active i {
            transform: translateY(-8px) scale(1.1);
        }

        .liquid-glass-menu::before {
            width: 80%;
            height: 60px;
            top: 50%;
            left: 50%;
            opacity: 0.3;
        }

        .admin-nav-container {
            top: 10px;
            right: 10px;
            left: auto;
            bottom: auto;
            width: auto;
            height: auto;
            padding: 0;
            transform: none;
        }

        .admin-menu {
            flex-direction: row;
            padding: 8px 15px;
            gap: 15px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .admin-menu .nav-item i {
            font-size: 1.2rem;
            margin-bottom: 0;
        }

        .admin-menu .nav-item span {
            display: none !important;
        }
    }

    .site-logo {
        position: fixed;
        top: 30px;
        left: 0;
        width: var(--sidebar-width);

        padding: 0 25px;
        height: auto;
        z-index: 2000;
        filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
        transition: transform 0.3s ease;
    }

    .site-logo:hover {
        transform: scale(1.1);
    }

    @media (max-width: 768px) {
        .site-logo {
            width: 60px;
            top: 15px;
            left: 15px;
            padding: 0;
        }
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .projects-grid .glass-card {
        margin-bottom: 0;
        max-width: none;
        height: 100%;
        display: flex;
        flex-direction: column;

        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        transition: box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .projects-grid .glass-card:hover {
        transform: translateY(-8px);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(165, 243, 252, 0.3);
        background: rgba(255, 255, 255, 0.06);
    }

    .project-image {
        width: 100%;
        height: 240px;

        position: relative;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project-image.logo-mode img {
        object-fit: contain;
    }

    .glass-card:hover .project-image img {
        transform: scale(1.1);
    }

    .project-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .glass-card:hover .project-image::after {
        opacity: 1;
    }

    .project-content {
        padding: 1.8rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        width: 100%;
        justify-content: flex-start;
    }

    .project-card h3 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        background: linear-gradient(90deg, #fff, #a5f3fc);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .project-card p {
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.6;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    @media (min-width: 900px) {
        .project-card.featured {
            grid-column: 1 / -1;

            flex-direction: row;

            height: 400px;
        }

        .project-card.featured .project-image {
            width: 55%;
            height: 100%;
            border-bottom: none;
            border-right: 1px solid rgba(255, 255, 255, 0.05);
        }

        .project-card.featured .project-content {
            width: 45%;
            justify-content: center;
            padding: 3rem;
        }

        .project-card.featured h3 {
            font-size: 2.2rem;
        }

        .project-card.featured p {
            font-size: 1.1rem;
        }
    }

    .tags {
        margin-top: auto;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .tag {
        font-size: 0.75rem;
        font-weight: 500;
        padding: 6px 14px;
        background: rgba(165, 243, 252, 0.1);
        border-radius: 20px;
        color: #a5f3fc;
        border: 1px solid rgba(165, 243, 252, 0.2);
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
    }

    .tag:hover {
        background: rgba(165, 243, 252, 0.2);
        box-shadow: 0 0 10px rgba(165, 243, 252, 0.2);
    }

    a.project-link.tag {
        background: #fff;
        color: #000;
        border: none;
        font-weight: 700;
    }

    a.project-link.tag:hover {
        background: #a5f3fc;
        transform: translateY(-2px);
    }

    @media (max-width: 900px) {
        .projects-grid {
            grid-template-columns: 1fr;
            max-width: 500px;
        }

        .project-card.featured {
            flex-direction: column;
            height: auto;
        }

        .project-card.featured .project-image {
            width: 100%;
            height: 240px;
            border-right: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .project-card.featured .project-content {
            width: 100%;
            padding: 1.8rem;
        }
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        width: 100%;
        max-width: 1200px;
    }

    .service-card {
        text-align: center;
        padding: 2.5rem;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .service-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--active-color);
        box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
    }

    .service-card i {
        font-size: 3rem;
        color: var(--active-color);
        margin-bottom: 10px;
        transition: transform 0.3s;
    }

    .service-card:hover i {
        transform: scale(1.1) rotate(5deg);
        text-shadow: 0 0 20px var(--active-color);
    }

    .service-card h3 {
        font-size: 1.25rem;
        color: #fff;
    }

    .service-card p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

.glass-footer {
    margin-top: 4rem;
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--active-color);
    box-shadow: 0 0 15px var(--active-color);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.loading-spinner {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: var(--active-color);
}

.ip-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.ip-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-value {
    color: #fff;
    font-weight: 600;
    font-family: monospace;
    font-size: 1rem;
}

.map-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(165, 243, 252, 0.1);
    color: #a5f3fc;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.map-link:hover {
    background: rgba(165, 243, 252, 0.2);
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 100px;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.3s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Added for gizlilik page */
.animate-fade-in {
    animation: slideIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
