
/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b5b;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-light: #8e8ea0;
    --text-white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-dark: #1a1a2e;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===========================
   Base Styles
   =========================== */
body, html {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100%;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-secondary);
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===========================
   Typography
   =========================== */
.center {
    text-align: center;
}

.blockquote-footer {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url("imgs/bg-20.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(44, 62, 80, 0.75) 50%,
        rgba(26, 26, 46, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Main CTA Button */
.rage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.rage-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.rage-btn:hover::before {
    left: 100%;
}

.rage-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.rage-btn:active {
    transform: translateY(-2px) scale(1);
}

.rage-btn-icon {
    font-size: 1.4rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ===========================
   Card Styles - Modern Design
   =========================== */
.bodycard {
    background-color: transparent;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    font-family: 'Noto Sans', sans-serif;
    text-align: justify;
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem 1.25rem;
}

.card-body blockquote {
    margin: 0;
    padding: 0;
    border-left: none;
}

.card-body blockquote p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.card-body hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
}

/* ===========================
   Images
   =========================== */
.card-header img {
    max-width: 40px;
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes come-in {
    to { transform: translateY(0); }
}

.come-in {
    transform: translateY(150px);
    animation: come-in 0.8s ease forwards;
}

.come-in:nth-child(odd) {
    animation-duration: 0.6s;
}

.already-visible {
    transform: translateY(0);
    animation: none;
}

/* ===========================
   Parallax Effect - Enhanced
   =========================== */
.bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.bgimg-1 {
    background-image: url("imgs/bg-20.jpg");
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgimg-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.bgimg-1 .w3-display-middle {
    position: relative;
    z-index: 2;
}

.bgimg-1 .w3-padding-large {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem 3rem !important;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive: Turn off parallax for tablets and phones */
@media only screen and (max-device-width: 1600px) {
    .bgimg-1, .bgimg-2, .bgimg-3 {
        background-attachment: scroll;
        min-height: 60vh;
        background-color: #dbe1f1;
    }
}

/* ===========================
   Heart Icon - Enhanced
   =========================== */
.bgheart {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart {
    background-color: #ef4444;
    display: inline-block;
    height: 40px;
    margin: 0 10px;
    position: relative;
    transform: rotate(-45deg);
    width: 40px;
    animation: heartbeat 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.1); }
}

.heart:before,
.heart:after {
    content: "";
    background-color: #ef4444;
    border-radius: 50%;
    height: 40px;
    position: absolute;
    width: 40px;
}

.heart:before {
    top: -20px;
    left: 0;
}

.heart:after {
    left: 20px;
    top: 0;
}

/* ===========================
   Top Button - Modern Design
   =========================== */
.w3-top {
    padding: 1rem;
    background: transparent;
    z-index: 1000;
}

.w3-top .btn {
    border-radius: var(--radius-lg);
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.w3-top .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* ===========================
   Modal - Rage Form
   =========================== */
.modal {
    display: none !important;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.fade.show {
    opacity: 1;
}

.modal-backdrop {
    display: none !important;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 1rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.9) translateY(-30px);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Custom Modal Content */
.rage-modal {
    position: relative;
    pointer-events: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: rotate(90deg);
}

.rage-modal .modal-body {
    padding: 2.5rem;
}

.modal-title-custom {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Rage Form */
.rage-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.rage-textarea {
    width: 100%;
    min-height: 180px;
    max-height: 350px;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    resize: vertical;
    transition: var(--transition);
}

.rage-textarea::placeholder {
    color: var(--text-light);
}

.rage-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* Verification Section */
.verification-group {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff 100%);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.verification-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.verification-hint i {
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.rage-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.rage-input::placeholder {
    color: var(--text-light);
}

.rage-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* Form Errors */
.form-error {
    margin-top: 0.5rem;
}

.form-error .alert {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 1.2rem;
}

/* ===========================
   Posts Section
   =========================== */
.posts-section {
    padding: 4rem 1rem;
    background: var(--bg-secondary);
    min-height: 50vh;
}

.posts-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .heart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

.section-header .heart-icon i {
    color: var(--text-white);
    font-size: 1.5rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
    }
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--bg-dark);
    padding: 3rem 1rem;
    text-align: center;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.back-to-top:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    color: var(--text-white);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   File Upload Button
   =========================== */
.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btni {
    border: none;
    color: #fff;
    background-color: #fff;
    background-image: url("imgs/feather/image.svg");
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btni:hover {
    transform: scale(1.05);
}

.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* ===========================
   Loading Indicator
   =========================== */
#loading {
    display: none;
    width: 100%;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: 1.5rem;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .rage-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* Modal */
    .rage-modal .modal-body {
        padding: 1.5rem;
    }

    .modal-title-custom {
        font-size: 1.5rem;
    }

    .rage-textarea {
        min-height: 150px;
    }

    .verification-hint {
        font-size: 0.85rem;
    }

    /* Posts */
    .posts-section {
        padding: 3rem 1rem;
    }

    .section-header .heart-icon {
        width: 50px;
        height: 50px;
    }

    .section-header .heart-icon i {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Cards */
    .bodycard {
        padding: 1rem 0;
    }

    .card {
        margin-bottom: 1rem;
        border-radius: var(--radius-lg);
    }

    .card-body {
        padding: 1.25rem 1rem;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 1rem;
    }

    .back-to-top {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .rage-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .rage-btn-icon {
        font-size: 1.1rem;
    }

    .modal-title-custom {
        font-size: 1.35rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .card-body blockquote p {
        font-size: 0.95rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links .divider {
        display: none;
    }
}

/* ===========================
   W3.CSS Utility Classes (Minimal)
   =========================== */
.w3-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

.w3-display-container {
    position: relative;
}

.w3-display-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.w3-center {
    text-align: center !important;
}

.w3-padding-large {
    padding: 12px 24px !important;
}

.w3-padding-64 {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
}

.w3-black {
    color: #fff !important;
    background-color: #000 !important;
}

.w3-xlarge {
    font-size: 24px !important;
}

.w3-wide {
    letter-spacing: 4px;
}

.w3-animate-opacity {
    animation: opac 0.8s;
}

@keyframes opac {
    from { opacity: 0; }
    to { opacity: 1; }
}

.w3-opacity-min {
    opacity: 0.75;
}

.w3-opacity {
    opacity: 0.60;
}

.w3-hover-opacity-off:hover {
    opacity: 1;
}

.w3-content {
    max-width: 980px;
    margin: auto;
}

.w3-container {
    padding: 0.01em 16px;
}

.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.w3-button:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.w3-light-grey {
    color: #000 !important;
    background-color: #f1f1f1 !important;
}

.w3-margin-right {
    margin-right: 16px !important;
}

.w3-section {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}