@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Statistics numbers gradient */
.stat-number {
    background: linear-gradient(135deg, #A10005 0%, #3B0002 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Web specific: Increase statistics numbers size by 1.2x */
@media (min-width: 769px) {
    .stat-number {
        font-size: 3.6rem !important; /* 3rem * 1.2 = 3.6rem (approx 57.6px) */
    }
}

/* Web specific: Increase main header logo size by 2.4x (3x * 0.8 = 2.4x) */
@media (min-width: 769px) {
    header a img.site-header-logo {
        transform: scale(2.4) translateX(-10px) !important;
        transform-origin: left top !important;
    }
    
    /* Web specific: Increase footer logo size */
    footer .tw-flex.tw-gap-8 > div:first-child img {
        width: 189px !important; /* 210px * 0.9 = 189px */
        height: auto !important;
    }
    
    /* Align footer content with Articles section (Community Manager box) */
    footer {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    footer .tw-flex.tw-gap-8 {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        max-width: 80rem !important; /* 7xl = 80rem */
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* Laptop hover effect - Web only */
@media (min-width: 769px) {
    img.laptop-hover {
        transition: all 0.3s ease-in-out !important;
        cursor: pointer !important;
    }
    
    /* Web-only: enlarge hero laptop image by 20% */
    .reveal-hero-img {
        transform: scale(1.2) !important;
        transform-origin: center center !important;
    }

    /* Keep hover effect additive (1.2 * 1.05 ≈ 1.26) */
    img.laptop-hover:hover {
        transform: scale(1.26) !important;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)) !important;
    }
}

/* Gentle vertical floating animation */
@keyframes floatYSlow {
    0%, 100% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-30px);
    }
}

@media (min-width: 769px) {
    .floating-y-slow {
        animation: floatYSlow 3s ease-in-out infinite;
        will-change: transform;
    }
}

/* Footer left block forced offsets (desktop only) */
@media (min-width: 769px) {
    .footer-left-block {
        position: relative !important;
        left: var(--footer-left-x, -140px) !important;
        top: var(--footer-left-y, 0px) !important;
    }
    :root {
        --footer-left-x: 130px;
    }
}

/* Footer theme: black background, dark-gray text (all breakpoints) */
footer {
    background-color: #000 !important;
}

footer, footer * {
    color: #333 !important;
}

footer a {
    color: #333 !important;
}

footer::after {
    color: #333 !important;
}

/* Red gradient text utility */
.text-gradient-red {
    background-image: linear-gradient(90deg, #A10005 0%, #3B0002 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Footer right block forced offset (desktop only) */
@media (min-width: 769px) {
    .footer-right-block {
        position: relative !important;
        left: -50px !important; /* move whole content 50px to the left */
    }
}

/* Phone hover effect - Web only */
@media (min-width: 769px) {
    #secure-phone-img {
        transition: all 0.3s ease-in-out !important;
        cursor: pointer !important;
    }
    
    #secure-phone-img:hover {
        transform: scale(1.05) !important;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)) !important;
    }
}

:root{

    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #0d0d0d;/* button bg color*/

    --primary-text-color: #000;
    --link-hover: #6dbb00;
    --footer-link-hover: #6dbb00;
    --input-focus-bd-color: #0d0d0d;
}


html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

/* Custom cursor using favicon */
body, * {
    cursor: url('../assets/favicon.png') 8 8, auto !important;
}

/* Ensure clickable elements show hand cursor (override global custom cursor) */
a,
a *,
button,
button *,
[role="button"],
[role="button"] * {
    cursor: pointer !important;
}

header{
    /* background-color: #fff;
    color: #000; */
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.animated-collapse{
    transition: width 0.3s ease;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 10px;
    padding: 5px 10px;
    transition: background-color 0.5s, color 0.5s;
}


.header-links:hover {
    color: var(--link-hover);
}

.material-icons.md-40 { 
    font-size: 40px; 
}

.primary-text-color{
    color: var(--primary-text-color);
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 25px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 25px;
    /* outline: none; */
    min-width: 100px;
    border: 2px solid #818080;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 2px solid var(--input-focus-bd-color);
}

.input-error{
    border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within{
    border-bottom: 3px solid #fd0101;
}


/* Navigation dots styling */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.footer-link{
    color: #0d0d0d;
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--footer-link-hover);
}


.review-container {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.review-card{
    box-shadow: 0px 2px 4px #757474a0;
    border-radius: 15px;
    /* width: 200px; */
    /* height: 550px; */
    padding: 10px;
}

/* --------- collapsible div ---------- */
.collapsible {
    background-color: #f3f0f0;
    color: #2b2929;
    /* cursor: pointer; */
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s;
}

/* Card theme helpers */
.card-red{
    background: linear-gradient(135deg, #A10005 0%, #3B0002 100%);
    color: #ffffff;
}

/* Community KOL cards - red gradient background */
.kol-card.card-red {
    background: linear-gradient(135deg, #A10005 0%, #3B0002 100%) !important;
    color: #ffffff !important;
}

.kol-card.card-red h3,
.kol-card.card-red div,
.kol-card.card-red p,
.kol-card.card-red span {
    color: #ffffff !important;
}

/* Articles section KOL cards - white background */
.kol-card:not(.card-red) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e5e7eb !important;
}

.kol-card:not(.card-red) h3,
.kol-card:not(.card-red) div,
.kol-card:not(.card-red) p,
.kol-card:not(.card-red) span {
    color: #000000 !important;
}


/* KOL card images - add gray border */
.kol-card img {
    border: 0.5px solid #d1d5db !important;
    border-radius: 4px !important;
}

/* White circle icons should have black text */
.kol-card .tw-bg-white .material-icons,
.kol-card .tw-bg-white i {
    color: #000000 !important;
}

/* Gradient sphere effects */
.gradient-sphere {
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.gradient-sphere:nth-child(2) {
    animation-delay: -2s;
}

.gradient-sphere:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
}

/* Enhanced 3D sphere effect */
.gradient-sphere::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
}

/* Articles grid responsive */
@media (max-width: 768px) {
    /* Center hero visuals (laptop/phone) on mobile */
    .floating-y-slow {
        width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .reveal-hero-img {
        display: block !important;
        margin: 0 auto !important;
    }
    .articles-grid {
        grid-template-columns: 1fr !important;
    }
}

/* KOL Card hover effects */
.kol-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.kol-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ------------ per-word gradient hover ------------- */
.hover-word{
    transition: color 0.2s ease, background-size 0.3s ease;
    background-size: 0% 100%;
    /* normal state: show regular text color */
}
@media (hover: hover){
    .hover-word:hover{
        color: transparent;
        background-image: linear-gradient(90deg, #A10005 0%, #3B0002 100%);
        -webkit-background-clip: text;
        background-clip: text;
        background-size: 100% 100%;
    }
}
.no-hover-words .hover-word{ /* opt-out container */
    background-image: none !important;
}

/* Hero heading gradient paint-fill on reveal */
.hero-heading .hover-word {
    position: relative;
    display: inline-block;
}

.hero-heading .hover-word::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    color: transparent;
    background-image: linear-gradient(90deg, #A10005 0%, #3B0002 100%);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    transition: width 2.4s ease;
    pointer-events: none;
}

.hero-heading .hover-word.is-painted::after {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hero-heading .hover-word::after {
        transition: none;
    }
}

/* Style for the collapsible content */
.content {
    padding: 0 18px;
    /* display: none; */
    height: 0px;
    overflow: hidden;
    background-color: transparent;
    transition: height 0.5s;
    text-align: justify;
    margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
    /* background-color: #dedddd; */
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #ffffff;
        color: #000000;
        overflow-y: auto;
        box-shadow: 2px 0px 3px #000;
    }

    .header-links{
        color: black;
    }
    
}

/* Fix mobile indentation issue for main heading */
@media (max-width: 768px) {
    .hero-heading {
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .hero-heading span {
        display: inline-block;
    }
    
    /* Ensure proper alignment for mobile */
    .hero-heading .reveal-hero-text {
        margin: 0;
        padding: 0;
    }
}

/* Community heading mobile styles */
@media (max-width: 768px) {
    .community-heading {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .community-heading div {
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        line-height: 1.2 !important;
    }
    
    /* Force image size on mobile */
    .community-heading + div img {
        height: 180px !important;
        width: 180px !important;
        max-height: 180px !important;
        max-width: 180px !important;
    }
}

/* Force image size on desktop */
@media (min-width: 769px) {
    .community-heading + div img {
        height: 250px !important;
        width: 250px !important;
        max-height: 250px !important;
        max-width: 250px !important;
    }
    
    /* Force testimonial images on desktop */
    .swiper-slide img {
        height: 250px !important;
        width: 250px !important;
        max-height: 250px !important;
        max-width: 250px !important;
    }
}

/* Testimonial alignment styles */
@media (max-width: 768px) {
    .swiper-slide {
        justify-content: center !important;
        align-items: center !important;
    }
    
    .swiper-slide > div {
        justify-content: center !important;
        align-items: center !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .swiper-slide > div p {
        text-align: center !important;
    }
    
    .swiper-slide > div b {
        text-align: center !important;
    }
    
    /* Articles heading mobile center alignment */
    .articles-heading {
        text-align: center !important;
    }
    
    .articles-heading div {
        text-align: center !important;
        display: block !important;
        line-height: 1.2 !important;
    }
    
    /* Footer mobile alignment */
    footer .tw-flex.tw-gap-8 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding-left: 0 !important;
        gap: 1rem !important;
    }
    
    /* Left side - logo and address (left aligned with padding) */
    footer .tw-flex.tw-gap-8 > div:first-child {
        flex: 1 !important;
        text-align: left !important;
        align-items: flex-start !important;
        padding-left: 1.5rem !important;
    }
    
    footer .tw-flex.tw-gap-8 > div:first-child img {
        margin-left: 0 !important;
    }
    
    footer .tw-flex.tw-gap-8 > div:first-child .tw-text-sm {
        text-align: left !important;
    }
    
    /* Right side - text content (left aligned, smaller text) */
    footer .tw-flex.tw-gap-8 > div:last-child {
        flex: 1 !important;
        text-align: left !important;
    }
    
    footer .tw-flex.tw-gap-8 > div:last-child .tw-text-3xl {
        font-size: 1.5rem !important; /* Reduced from 3xl */
    }
    
    footer .tw-flex.tw-gap-8 > div:last-child .tw-text-xl {
        font-size: 0.875rem !important; /* Reduced from xl */
    }
    
    /* Mobile phone image adjustment */
    #secure-phone-img {
        width: 200px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Center the phone image container */
    .tw-flex > div:has(#secure-phone-img) {
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Force mobile layout for Telegram browser */
.force-mobile-layout .community-heading {
    text-align: center !important;
}

.force-mobile-layout .community-heading div {
    text-align: center !important;
    display: block !important;
    line-height: 1.2 !important;
}

.force-mobile-layout .community-heading + div img {
    height: 180px !important;
    width: 180px !important;
    max-height: 180px !important;
    max-width: 180px !important;
}

.force-mobile-layout .swiper-slide {
    justify-content: center !important;
    align-items: center !important;
}

.force-mobile-layout .swiper-slide > div {
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.force-mobile-layout .articles-heading {
    text-align: center !important;
}

.force-mobile-layout .articles-heading div {
    text-align: center !important;
    display: block !important;
    line-height: 1.2 !important;
}

.force-mobile-layout #secure-phone-img {
    width: 200px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

.force-mobile-layout footer .tw-flex.tw-gap-8 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding-left: 0 !important;
    gap: 1rem !important;
}

/* Contact dropdown styles - minimal to avoid conflicts */
.contact-dropdown {
    position: relative;
}

/* Mobile hamburger menu styles */
@media (max-width: 768px) {
    #mobile-contact-btn {
        display: block !important;
    }
    
    /* Move header logo down on mobile */
    header a {
        margin-top: 15px !important;
    }
    
    /* Adjust red card sizes on mobile */
    .kol-card.card-red {
        height: auto !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 24px !important;
    }
    
    .kol-card.card-red h3 {
        margin-top: 16px !important;
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
    
    .kol-card.card-red p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin-top: 12px !important;
    }
    
    .kol-card.card-red .tw-gap-\[5\%\] {
        gap: 12px !important;
    }
    
    /* Adjust Community KOL card sizes on mobile */
    .kol-card.tw-bg-\[#edecec79\] {
        height: auto !important;
        min-height: 320px !important;
        max-height: 320px !important;
        padding: 16px !important;
        gap: 8px !important;
    }
    
    .kol-card.tw-bg-\[#edecec79\] .tw-h-\[200px\] {
        height: 140px !important;
    }
    
    .kol-card.tw-bg-\[#edecec79\] h3 {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    .kol-card.tw-bg-\[#edecec79\] p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-top: 4px !important;
    }
    
    .kol-card.tw-bg-\[#edecec79\] .tw-font-semibold {
        font-size: 0.875rem !important;
    }
    
    .kol-card.tw-bg-\[#edecec79\] span {
        font-size: 0.75rem !important;
        margin-top: auto !important;
    }
    
    /* Adjust black section padding on mobile */
    .tw-bg-black.tw-place-content-center {
        justify-content: flex-start !important;
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }
    
    .community-heading {
        margin-top: 0 !important;
    }
    
    /* Mobile footer redesign */
    footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 10px 20px !important;
    }
    
    /* Mobile: Add more top margin to black background section */
    .tw-bg-black.tw-text-white {
        margin-top: 40px !important;
    }
    
    footer .tw-flex.tw-gap-8 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding-left: 0 !important;
        max-width: 100% !important;
    }
    
    /* Hide original left side (footer logo + address) */
    footer .tw-flex.tw-gap-8 > div:first-child {
        display: none !important;
    }
    
    /* Redesign right side to be center layout */
    footer .tw-flex.tw-gap-8 > div:last-child {
        flex: none !important;
        text-align: center !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    /* Style for mobile footer logo */
    .mobile-footer-logo {
        width: 150px !important;
        height: 50px !important;
        margin: 0 auto 12px auto !important;
        display: block !important;
        object-fit: contain !important;
    }
    
    footer .tw-flex.tw-gap-8 > div:last-child .tw-text-3xl {
        display: none !important;
    }
    
    footer .tw-flex.tw-gap-8 > div:last-child .tw-text-xl {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    /* Hide original text content to replace with custom layout (hide all .tw-text-xl in right column) */
    footer .tw-flex.tw-gap-8 > div:last-child .tw-text-xl {
        display: none !important;
    }
    
    /* Add custom text content - Korea's text and Let's build together */
    footer .tw-flex.tw-gap-8 > div:last-child::after {
        content: 'Korea\'s Largest Cryptocurrency\A Community Since 2016\A Let\'s build together!';
        display: block;
        font-size: 0.875rem;
        /* Mobile-only red gradient text */
        background-image: linear-gradient(90deg, #A10005 0%, #3B0002 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
        /* Spacing tuning */
        margin-top: -6px;          /* pull closer to the mobile logo */
        margin-bottom: 10px;       /* push a bit toward the icons */
        line-height: 1.28;         /* widen inter-line spacing */
        white-space: pre-line;
        text-align: center;
    }
    
    /* Move social icons below Let's build together and make them bigger */
    footer .tw-flex.tw-gap-8 > div:last-child .tw-flex.tw-gap-2 {
        margin-top: 6px;
        justify-content: center;
    }
    
    footer .tw-flex.tw-gap-8 > div:last-child .tw-flex.tw-gap-2 a img {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Mobile specific: Make social icons 1.2x bigger */
    @media (max-width: 768px) {
        footer .tw-flex.tw-gap-8 > div:last-child .tw-flex.tw-gap-2 a img {
            width: 26px !important;
            height: 26px !important;
            object-fit: contain !important;
        }
    }
    
    /* Mobile specific: Ensure social icons are positioned below Let's build together */
    @media (max-width: 768px) {
        footer .tw-flex.tw-gap-8 > div:last-child .tw-flex.tw-gap-2 {
            margin-top: 8px;
            order: 1;
        }
        
        footer .tw-flex.tw-gap-8 > div:last-child::after {
            order: 0;
        }
    }
    
    /* Add address at the very bottom */
    footer::after {
        content: '14, Seolleung-ro 94-gil, Gangnam-gu\A Seoul, Republic of Korea, 06162';
        display: block;
        font-size: 0.75rem;
        color: #666;
        margin-top: 8px;
        line-height: 1.2;
        text-align: center;
        white-space: pre-line;
    }
    
    /* Reduce gaps between elements */
    footer .tw-flex.tw-gap-8 {
        gap: 12px !important;
    }
    
    footer .tw-flex.tw-gap-8 > div:last-child {
        gap: 8px !important;
    }
}

@media (min-width: 769px) {
    #mobile-contact-btn {
        display: none !important;
    }
    
    #mobile-contact-menu {
        display: none !important;
    }
}

/* Web testimonial alignment - center align text */
@media (min-width: 769px) {
    .community-heading {
        text-align: center !important;
    }
    
    .community-heading div {
        text-align: center !important;
    }
    
    /* Center the entire testimonial container */
    .swiper-slide {
        justify-content: center !important;
        align-items: center !important;
    }
    
    .swiper-slide > div {
        text-align: center !important;
        margin: 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .swiper-slide > div p {
        text-align: center !important;
    }
    
    .swiper-slide > div b {
        text-align: center !important;
    }
}