/* 
  Theme: Sky & Cloud (Blue & White) 
  Style: Modern, Clean, Glassmorphism
*/

:root {
    /* Color Palette - Sky & Cloud */
    --bg-body: #F0F9FF;
    /* Very pale blue/white */
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.65);
    --glare: rgba(255, 255, 255, 0.9);

    --primary: #0EA5E9;
    /* Sky Blue 500 */
    --primary-hover: #0284C7;
    /* Sky Blue 600 */
    --primary-light: #E0F2FE;
    /* Sky Blue 100 */

    --text-main: #0F172A;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-inverse: #FFFFFF;

    --border-subtle: #E2E8F0;
    --border-focus: #38BDF8;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(14 165 233 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(14 165 233 / 0.1), 0 2px 4px -2px rgb(14 165 233 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(14 165 233 / 0.1), 0 4px 6px -4px rgb(14 165 233 / 0.1);
    --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    background-image:
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(186, 230, 253, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

button,
.btn {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-inner {
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.text-primary {
    color: var(--primary);
}

.text-dark {
    color: var(--text-main);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* CTA Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0EA5E9 100%);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    color: var(--text-main);
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* TODO: Implement mobile menu drawer */
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.server-stat-card {
    margin-top: 20px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
}

.stat-icon {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px;
    border-radius: 50%;
    display: flex;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 700;
    font-size: 16px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    padding: 10px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.main-card {
    top: 0;
    right: 0;
    width: 90%;
    height: 650px;
    z-index: 1;
    background: white;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.floating-card {
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
}

.card-1 {
    bottom: -120px;
    left: -120px;
    width: 200px;
    height: 140px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 40px;
    right: -20px;
    width: 80px;
    height: 80px;
    padding: 15px;
    border-radius: 20px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-img-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-logo-sm {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-badge {
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }
}

/* Sections Common */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.5);
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.feature-icon {
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    /* Fixed height rows */
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item-large {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

/* About Section */
.about-card {
    padding: 60px;
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.about-content p {
    margin-bottom: 24px;
}

.about-content strong {
    color: var(--primary);
    font-weight: 700;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-align: center;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.team-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* CTA Box */
.cta-box {
    padding: 60px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.copy-ip {
    font-family: monospace;
    font-size: 24px;
    font-weight: bold;
    margin: 0 10px;
}

.mt-2 {
    margin-top: 10px;
}

/* Footer */
.main-footer {
    background-color: var(--text-main);
    color: white;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    text-align: center;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid #334155;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
}

.text-white {
    color: white;
}