* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(180deg, #12121a 0%, #0d0d14 100%);
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ff1493;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    text-decoration: none;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkFloat 2s ease-out forwards;
}

@keyframes sparkFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}

.nav-links {
    display: flex;
    gap: 50px;
    flex: 2;
    justify-content: center;
}

.nav-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}


.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff1493, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Discord Button */
.discord-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #6b73f7 0%, #5865F2 100%);
}

.discord-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 40px;
    min-height: 70vh;
    background: 
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
}

.hero-box {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.8) 0%, rgba(20, 20, 28, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 120px 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 20, 147, 0) 0%, 
        rgba(139, 92, 246, 0) 50%, 
        rgba(255, 20, 147, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.hero-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.hero-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: 
        0 0 0 1px rgba(255, 20, 147, 0.2),
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 20, 147, 0.15),
        0 0 100px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-box:hover::before {
    opacity: 0.1;
}

.hero-box:hover::after {
    opacity: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-box:hover .hero-title {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: #888888;
    font-weight: 400;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-box:hover .hero-subtitle {
    color: #aaaaaa;
}

/* Hero Side Text */
.hero-side-text {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #888888 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 5px;
    text-transform: uppercase;
    position: absolute;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-left {
    left: 120px;
    transform: translateX(-20px);
}

.hero-right {
    right: 80px;
    transform: translateX(20px);
}

/* Show side text on hero-box hover */
.hero:has(.hero-box:hover) .hero-side-text {
    opacity: 1;
}

.hero:has(.hero-box:hover) .hero-left {
    transform: translateX(0);
}

.hero:has(.hero-box:hover) .hero-right {
    transform: translateX(0);
}

/* Services Section */
.services {
    padding: 120px 40px 100px;
    text-align: center;
    background: #0d0d14;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 30%, #888888 60%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff1493, #8b5cf6);
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Bottom row - 2 cards centered */
.services-grid .service-card:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(50%);
}

.services-grid .service-card:nth-child(5) {
    grid-column: 3 / 4;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-50%);
}

.service-card {
    background: linear-gradient(145deg, rgba(35, 30, 45, 0.9) 0%, rgba(25, 22, 35, 0.95) 100%);
    border-radius: 12px;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.15);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.service-card:hover .card-image {
    transform: scale(1.02);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    pointer-events: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0) 0%, rgba(255, 20, 147, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(255, 20, 147, 0.2) 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid .service-card:nth-child(1),
    .services-grid .service-card:nth-child(2),
    .services-grid .service-card:nth-child(3),
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: span 1;
    }
    
    .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }
    
    .hero-box {
        padding: 60px 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .section-title {
        font-size: 36px;
    }
}


/* Typing Effect Banner */
.typing-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 40px;
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.9) 0%, rgba(18, 18, 26, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.typing-static {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.typing-text {
    font-size: 20px;
    font-weight: 700;
    color: #aaaaaa;
    letter-spacing: 2px;
}

.typing-cursor {
    font-size: 20px;
    font-weight: 400;
    color: #aaaaaa;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


/* 4 Block Services Grid */
.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.services-grid-4 .service-card {
    min-height: 350px;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .services-grid-4 {
        grid-template-columns: 1fr;
    }
}






/* What Sets Us Apart Section */
.about-section {
    padding: 100px 40px;
    text-align: center;
    background: #0a0a0f;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    border-left: 3px solid #ff1493;
    padding-left: 30px;
    text-align: left;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 50px;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: #ff69b4;
}




/* Cursor Follower */
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cursor-follower.active {
    opacity: 1;
}

.cursor-icon {
    font-size: 24px;
}

.cursor-text {
    font-size: 14px;
    font-weight: 600;
    color: #ff1493;
    background: rgba(20, 20, 28, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 20, 147, 0.3);
    white-space: nowrap;
}

.service-card[data-label] {
    cursor: none;
}


/* Service Card Link */
a.service-card {
    text-decoration: none;
    display: block;
}

/* User Profile (Discord Login) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(35, 38, 55, 0.9) 0%, rgba(25, 28, 42, 0.95) 100%);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(88, 101, 242, 0.5);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.logout-btn svg {
    width: 16px;
    height: 16px;
    color: #9098a8;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.logout-btn:hover svg {
    color: #ef4444;
}


/* Login Required Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 15, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: linear-gradient(160deg, rgba(30, 33, 50, 0.98) 0%, rgba(18, 20, 32, 0.99) 100%);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 24px;
    padding: 50px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 50px 120px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(88, 101, 242, 0.1);
}

.login-modal-overlay.active .login-modal {
    transform: scale(1) translateY(0);
}

.login-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(88, 101, 242, 0.1) 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.login-modal-icon svg {
    width: 40px;
    height: 40px;
    color: #5865F2;
}

.login-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.login-modal-text {
    font-size: 16px;
    color: #9098a8;
    margin-bottom: 30px;
    line-height: 1.6;
}

.login-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.login-modal-btn svg {
    width: 22px;
    height: 22px;
}

.login-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.4);
}

.login-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9098a8;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.login-modal-close:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}