/* ========================================
   GhostVista - Modern Skeuomorphic Website
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0078d4;
    --secondary-color: #0099cc;
    --dark-bg: #e8f0f7;
    --darker-bg: #f0f5fa;
    --card-bg: #d9e8f5;
    --light-text: #1a1a1a;
    --muted-text: #595959;
    --accent-glow: rgba(0, 120, 212, 0.2);
    --shadow-dark: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --glass-light: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 120, 212, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('Images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #000000;
    margin: 0;
    padding: 20px;
    overflow: hidden;
    color: var(--light-text);
    line-height: 1.6;
    height: 100vh;
}

/* ========================================
   DESKTOP CONTAINER
   ======================================== */

.desktop-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* ========================================
   WINDOWS AERO WINDOW FRAME
   ======================================== */

.window-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(232, 240, 247, 0.65) 0%, rgba(240, 245, 250, 0.65) 100%);
    border: 1px solid rgba(0, 120, 212, 0.5);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 60px rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    margin-bottom: 8px;
}

/* Window Title Bar */
.window-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 31px;
    background: linear-gradient(180deg, rgba(0, 120, 212, 0.9) 0%, rgba(0, 107, 181, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0 3px;
    user-select: none;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.window-titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.window-icon {
    font-size: 16px;
    color: white;
}

.window-title {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-btn {
    width: 25px;
    height: 19px;
    border: none;
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
    color: #000;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3px 2px 0 0;
}

.window-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e3f2fd 100%);
}

.window-btn.close:hover {
    background: linear-gradient(180deg, #ff4444 0%, #dd0000 100%);
    color: white;
}

.window-btn:active {
    transform: translateY(1px);
}

/* Window Content Area */
.window-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(232, 240, 247, 0.5) 0%, rgba(240, 245, 250, 0.5) 100%);
    backdrop-filter: blur(15px);
}

main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(232, 240, 247, 0.3) 0%, rgba(240, 245, 250, 0.3) 100%);
}

/* Scrollbar styling for window content */
.window-content::-webkit-scrollbar {
    width: 16px;
}

.window-content::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f0f5fa 0%, #e8f0f7 100%);
}

.window-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
    border: 2px solid #e8f0f7;
    border-radius: 8px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0099cc 0%, #006bb5 100%);
}

main::-webkit-scrollbar {
    width: 16px;
}

main::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f0f5fa 0%, #e8f0f7 100%);
}

main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
    border: 2px solid #e8f0f7;
    border-radius: 8px;
}

main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0099cc 0%, #006bb5 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 120, 212, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    filter: drop-shadow(0 0 4px rgba(0, 120, 212, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 auto;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.subscribe-btn {
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
    color: white;
    border: 1px solid rgba(0, 120, 212, 0.5);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.subscribe-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #0099cc 0%, #006bb5 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 20px;
    background-attachment: fixed !important;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(232, 240, 247, 0.6) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0.5;
}

.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    top: 10%;
    right: -10%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-30px) translateX(30px); }
    50% { transform: translateY(-60px) translateX(0px); }
    75% { transform: translateY(-30px) translateX(-30px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0078d4, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: 1px solid rgba(0, 120, 212, 0.3);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #0099cc 0%, #006bb5 100%);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-full {
    width: 100%;
}

.floating-card {
    position: relative;
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.card-content {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 4px;
    padding: 0;
    text-align: center;
    box-shadow: none;
    animation: floatCard 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-30px) rotateX(5deg); }
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(0, 120, 212, 0.5);
    box-shadow: 
        0 0 0 12px rgba(0, 120, 212, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0099cc, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-grow: 0;
    padding: 1rem;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .icon-img {
        width: 150px;
        height: 150px;
        border: 3px solid rgba(0, 120, 212, 0.5);
    }

    .card-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .subscribe-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .icon-img {
        width: 120px;
        height: 120px;
    }

    .card-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   VIDEOS SECTION
   ======================================== */

.videos-section {
    padding: 6rem 20px;
    background: linear-gradient(180deg, rgba(232, 240, 247, 0.4) 0%, rgba(240, 245, 250, 0.4) 100%);
    min-height: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #0099cc, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 240, 247, 0.7));
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 120, 212, 0.1) 0%, rgba(0, 153, 204, 0.15) 100%);
    position: relative;
}

.play-icon {
    font-size: 3rem;
    color: rgba(0, 120, 212, 0.8);
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(0, 120, 212, 0.4));
}

.video-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.video-views {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 6rem 20px;
    background: linear-gradient(135deg, rgba(240, 245, 250, 0.4) 0%, rgba(232, 240, 247, 0.4) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 240, 247, 0.7));
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0099cc, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--muted-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 240, 247, 0.7));
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--muted-text);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 6rem 20px;
    background: linear-gradient(180deg, rgba(232, 240, 247, 0.4) 0%, rgba(240, 245, 250, 0.4) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 240, 247, 0.7));
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 4px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 3px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.03),
        0 0 8px rgba(0, 120, 212, 0.15);
}

.form-textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 240, 247, 0.7));
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.contact-details p {
    color: var(--muted-text);
}

.discord-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.discord-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.discord-link:hover {
    color: var(--primary-color);
}

.discord-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(180deg, rgba(240, 245, 250, 0.9) 0%, rgba(224, 232, 240, 0.9) 100%);
    border-top: 1px solid rgba(0, 120, 212, 0.3);
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-text);
    font-weight: 500;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f5fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
    border-radius: 6px;
    border: 2px solid #f0f5fa;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0099cc 0%, #006bb5 100%);
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInUp 0.6s ease-out forwards;
}
