/* SUGARY78 - CoralMC Style Redesign (Blue Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&family=Press+Start+2P&display=swap');

:root {
    /* Blue Palette - Light Mode Base */
    --bg-body: #ffffff;
    --bg-section: #f0f8ff;
    /* AliceBlue */
    --bg-card: #e6f3ff;
    --bg-dark: #0a192f;

    /* Gradients */
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #e6f3ff;

    /* Accent Colors - Cyan/Blue */
    --primary: #0077b6;
    /* Darker blue for contrast on white */
    --primary-light: #0096c7;
    --primary-dark: #023e8a;
    --secondary: #48cae4;
    --accent-gold: #f5af19;
    /* Kept for subtle highlights if needed */

    /* Text Colors */
    --text-dark: #0a192f;
    /* Dark text for light mode */
    --text-body: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;

    /* UI Elements */
    --border-color: #cbd5e0;
    --shadow-sm: 0 2px 8px rgba(0, 119, 182, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 119, 182, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 119, 182, 0.2);
    --shadow-card: 0 10px 40px rgba(0, 119, 182, 0.08);

    /* Layout */
    --nav-height: 80px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    /* Extra Bold */
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-body);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    height: var(--nav-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    /* Reduced from 0.75rem */
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* Changed from 50% to 10px for square look */
    object-fit: cover;
    border: 2px solid #fff;
    /* Inner white border */
    box-shadow: 0 0 0 2px var(--primary);
    /* Outer blue ring */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
        /* Motion blur effect start */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.logo span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width var(--transition-medium);
    border-radius: 2px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 4rem) 5% 6rem;
    position: relative;
    background: radial-gradient(circle at top right, #f0f8ff 0%, #ffffff 100%);
    overflow: hidden;
}

/* Animated Background Particles/Blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(72, 202, 228, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    /* Slight rounded square for Minecraft feel */
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 119, 182, 0.15);
    margin-bottom: 2rem;
    transition: transform var(--transition-medium);
}

.profile-img:hover {
    transform: scale(1.05) rotate(3deg);
}

.glitch-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    text-shadow: none;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Social Links in Hero */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.bg-light {
    background: var(--bg-section);
}

/* ===== GRID & CARDS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card Icons */
.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all var(--transition-medium);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--bg-dark);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* Discord/Community Section */
.discord-section {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.2);
    margin-top: 4rem;
}

.discord-icon-large {
    font-size: 4rem;
    color: #5865F2;
    /* Discord Color */
    margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary);
}

/* Utility */
.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-section);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform var(--transition-medium);
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: var(--shadow-lg);
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 1.0s ease-out forwards;
    /* Sped up to 1.0s */
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Features / Stats Section Background */
/* Features / Stats Section Background */
#about.page-section {
    background-color: #f0f8ff;
    /* AliceBlue base */
    background-image: radial-gradient(#0077b6 0.5px, transparent 0.5px), radial-gradient(#0077b6 0.5px, #f0f8ff 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 1;
    /* Ensure opacity is full */
}

/* ===== GALLERY & IMAGE CARDS ===== */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    padding: 0;
    overflow: hidden;
    height: 300px;
    /* Taller for better view */
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    padding-top: 60px;
    /* Offset for fixed navbar */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    /* Increased width to accommodate larger text */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensures explicit centering */
}

.profile-img {
    width: 250px;
    /* Increased size significantly */
    height: 250px;
    border-radius: 20px;
    /* Rounded square */
    border: 4px solid #fff;
    /* Inner white border */
    margin-bottom: 2rem;
    box-shadow: 0 0 0 4px var(--primary), 0 0 30px rgba(0, 180, 216, 0.6);
    /* Outer ring + Glow */
    object-fit: cover;
}

.hero h1 {
    font-size: 5rem;
    /* Increased from ~3.5rem */
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    /* Keep consistent */
}

.hero p {
    font-size: 1.5rem;
    /* Increased font size */
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 700px;
}

/* ===== SOCIAL CARDS (Full Background Style) ===== */
.social-card {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    text-align: center;
    border: none;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff !important;
    /* Force white text */
}

/* Background Image Container */
.social-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay for text readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.social-card:hover .social-img {
    transform: scale(1.1);
}

.social-content {
    position: relative;
    z-index: 2;
    margin: 0;
    width: 100%;
}

/* Text Overrides for Social Cards */
.social-card h3 {
    color: #ffffff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.social-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.social-card i {
    color: #ffffff !important;
    /* Icon white */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Specific Social Styles */
.social-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.btn-discord {
    background-color: #5865F2;
    color: white;
    border: none;
}

.btn-discord:hover {
    background-color: #4752c4;
    color: white;
}

.btn-youtube {
    background-color: #ff0000;
    color: white;
    border: none;
}

.btn-youtube:hover {
    background-color: #cc0000;
    color: white;
}

.text-youtube {
    color: #ff0000 !important;
}

/* Collab Section */
.collab-text {
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: var(--text-body);
}

.footer-container {
    padding: 0;
}

.footer-socials {
    margin-bottom: 2rem;
}

/* Page Specific Spacing */
.page-section {
    padding-top: 150px;
    min-height: 80vh;
}

.bio-text {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}