:root {
    --primary-color: #7f5af0;
    --secondary-color: #2cb67d;
    --background-color: #16161a;
    --text-color: #fffffe;
    --card-bg-color: #242629;
    --header-color: #fffffe;
    --paragraph-color: #94a1b2;
    --font-family: 'Poppins', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-logo {
    width: 100px;
    animation: pulse-rotate 2s infinite ease-in-out;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
@keyframes pulse-rotate {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.7; }
}
#mobile-nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(36, 38, 41, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
}
#mobile-nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
#mobile-nav-toggle:hover {
    transform: scale(1.1);
}
#mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--card-bg-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}
#mobile-sidebar.active {
    transform: translateX(0);
}
.sidebar-header { display: flex; align-items: center; margin-bottom: 40px; }
.sidebar-logo { width: 40px; margin-right: 15px; }
.sidebar-header span { font-size: 1.2rem; font-weight: 600; }
#mobile-sidebar ul { list-style: none; }
#mobile-sidebar ul li { margin-bottom: 25px; }
#mobile-sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
#mobile-sidebar ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}
.sidebar-socials { margin-top: auto; font-size: 24px; }
.sidebar-socials a { color: var(--paragraph-color); margin-right: 20px; transition: color 0.3s ease; }
.sidebar-socials a:hover { color: var(--primary-color); }
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#overlay.active {
    opacity: 1;
    visibility: visible;
}
#desktop-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 500;
}
#desktop-nav ul { list-style: none; }
#desktop-nav ul li { margin-bottom: 10px; text-align: right; }
#desktop-nav ul li a {
    color: var(--paragraph-color);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}
#desktop-nav ul li a:hover { color: var(--text-color); }
#desktop-nav ul li a.active { color: var(--primary-color); font-weight: 600; }
#desktop-nav ul li a::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}
#desktop-nav ul li a.active::after { opacity: 1; }
#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    animation: background-pan 30s linear infinite alternate;
    transition: background-image 1.5s ease-in-out;
}
#home::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
@keyframes background-pan {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--paragraph-color);
    font-weight: 300;
}
.animate-popup {
    opacity: 0;
    transform: translateY(30px);
    animation: popup 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes popup {
    to { opacity: 1; transform: translateY(0); }
}
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-down-indicator a {
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
.content-section {
    padding: 6.25rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.content-section h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 2.5rem;
    color: var(--header-color);
    font-weight: 600;
}
.content-section h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}
.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--paragraph-color);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hidden.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.875rem;
    margin-top: 3.125rem;
}
.card {
    background: var(--card-bg-color);
    padding: 2.5rem 1.875rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--primary-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(1.5);
    pointer-events: none;
}
.card:hover::before {
    opacity: 0.1;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    transition: transform 0.4s ease;
}
.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--header-color);
}
.card p {
    font-size: 1rem;
    color: var(--paragraph-color);
    line-height: 1.6;
}
.card .card-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}
.card .card-link:hover {
    color: #26a271;
    transform: translateX(5px);
}
.card .card-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}
.card .card-link:hover i {
    transform: translateX(3px);
}
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 1.875rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: #6a43d9;
    transform: scale(1.05);
}
footer {
    padding: 2.5rem 1.25rem;
    text-align: center;
    background-color: #111;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.footer-links a {
    color: var(--paragraph-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-color);
}
footer p {
    color: #6c757d;
    font-size: 0.9rem;
}
.footer-links a .link-icon {
    display: none;
}
.footer-links a .link-text {
    display: inline;
}
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background-color: #6a43d9;
}
@media (max-width: 768px) {
    #desktop-nav {
        display: none;
    }
    #mobile-nav-toggle {
        display: flex;
    }
    .content-section {
        padding: 5rem 0;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .content-section h2 { font-size: 2rem; }
    .footer-links {
        gap: 2rem;
    }
    .footer-links a {
        font-size: 1.5rem;
    }
    .footer-links a .link-text {
        display: none;
    }
    .footer-links a .link-icon {
        display: inline;
    }
}