/* ======================================
   GLOBAL STYLES & CORE SETUP
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #050505;
    color: white;
}

/* ---------- FLAME BACKGROUND ---------- */
body {
    position: relative;
    background: radial-gradient(circle at center, #170000 0%, #070707 70%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    width: 420px;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
    filter: blur(8px) contrast(1.5) saturate(2);
    background-size: 100% 200% !important;
    animation: realFlame 4s infinite ease-in-out alternate !important;
}

body::before {
    left: -120px;
    background-image:
        radial-gradient(ellipse at 20% 95%, rgba(255,0,0,1) 0%, transparent 24%),
        radial-gradient(ellipse at 45% 75%, rgba(255,100,0,.95) 0%, transparent 22%),
        radial-gradient(ellipse at 25% 55%, rgba(255,0,0,.9) 0%, transparent 24%),
        radial-gradient(ellipse at 50% 35%, rgba(255,80,0,.75) 0%, transparent 22%);
}

body::after {
    right: -120px;
    background-image:
        radial-gradient(ellipse at 80% 95%, rgba(255,0,0,1) 0%, transparent 24%),
        radial-gradient(ellipse at 55% 75%, rgba(255,100,0,.95) 0%, transparent 22%),
        radial-gradient(ellipse at 75% 55%, rgba(255,0,0,.9) 0%, transparent 24%),
        radial-gradient(ellipse at 50% 35%, rgba(255,80,0,.75) 0%, transparent 22%);
}

/* ---------- NAV ---------- */
.navbar {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    height: 68px;
    border-radius: 14px;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(255,0,0,.35);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 55px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255,0,0,.20);
    z-index: 1000;
}

.navbar a {
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: #ff4040;
    text-shadow: 0 0 14px red;
}

/* ---------- PAGES ---------- */
.page {
    display: none;
    width: 100vw;
    min-height: 100vh;      /* Fixed: Set to min-height so content can expand */
    height: auto;           /* Fixed: Keeps container from hard-clipping at the screen base */
    padding-top: 105px;
    padding-bottom: 60px;   /* Added padding to prevent bottom text rubbing against screen edge */
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
}

.page.active {
    display: block;
}

/* ======================================
   HOME SECTION
====================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 420px;
    max-width: 90%;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 25px rgba(255,0,0,.45));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 52px;
    letter-spacing: 12px;
    margin-top: -10px;
    text-shadow: 0 0 18px rgba(255,0,0,.5);
}

.divider {
    color: #ff3b3b;
    font-size: 22px;
    margin: 8px 0 18px;
}

.hero p {
    font-size: 18px;
    color: #dddddd;
    line-height: 1.6;
    margin-bottom: 28px;
}

.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    width: 90%;
    margin: 0 auto;
}

.home-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid rgba(255,0,0,.35);
    box-shadow: 0 0 22px rgba(255,0,0,.25);
    transition: .3s ease;
}

.home-gallery img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 35px rgba(255,0,0,.45);
}

.home-gallery img:nth-child(4) {
    object-fit: cover;
    object-position: center 10%;
}

/* ======================================
   ABOUT SECTION
====================================== */
.about-container {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 20px;
    align-items: center;
    width: 88%;
    margin: 0 auto 40px;
}

.about-main {
    width: 100%;
    height: auto;
    object-fit: cover;
    padding: 0px;
    border-radius: 18px;
    max-width: 280px;
    border: 1px solid rgba(255,60,60,.35);
    box-shadow: 0 0 30px rgba(255,40,40,.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-main:hover {
    transform: translateY(-6px) scale(1.02); 
    box-shadow: 0 0 35px rgba(255,0,0,.45);     
    cursor: pointer;
} 

.about-right {
    text-align: left;
}

.about-right h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.about-right h2 span {
    font-family: 'Great Vibes', cursive;
    font-size: 54px;
    font-weight: 400;
    margin-left: 10px;
    display: inline-block;
    background: linear-gradient(45deg, #ff3c3c, #ff8a00); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
    
.about-right p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    letter-spacing: 6px;
    margin: 30px 0 25px;
    text-shadow: 0 0 14px rgba(255,0,0,.35);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    margin: 0 auto 45px;
}

.fact-card {
    background: rgba(20,20,20,.75);
    border: 1px solid rgba(255,60,60,.25);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 0 18px rgba(255,0,0,.12);
    transition: .3s;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 28px rgba(255,0,0,.35);
}

.fact-card h4 {
    font-size: 18px;
    color: #ff5a5a;
    margin-bottom: 12px;
}

.fact-card p {
    line-height: 1.7;
    color: #ddd;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    margin: 0 auto;
}

.about-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    border: 1px solid rgba(255,60,60,.25);
    box-shadow: 0 0 20px rgba(255,0,0,.15);
    transition: .3s;
}

.about-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 32px rgba(255,0,0,.35);
}

/* ======================================
   SOCIALS SECTION - LINKTREE STYLE
====================================== */
#socials h1,
#contact h1 {
    font-family: 'Cinzel', serif;
    font-size: 54px;
    letter-spacing: 12px;
    margin-bottom: 8px;
    text-shadow: 0 0 18px rgba(255,0,0,.45);
}

.social-intro {
    font-size: 18px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 42px;
}

#socials .social-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the buttons */
    gap: 12px;           /* Tightens the space between buttons */
    width: 90%;
    max-width: 280px;    /* This forces the buttons to stay narrow */
    margin: 0 auto 40px auto; /* '0' pulls them up to the text above */
}
   
#socials .social-card {
    width: 100%;
    min-height: 70px;
    background: rgba(15, 15, 15, 0.85);
    border: 2px solid rgba(255, 60, 60, 0.4);
    border-radius: 50px; /* Pill shape */
    padding: 10px 25px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    
    /* Layout: Side-by-side */
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

#socials .social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 60, 60, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

/* Specific styling for the logos */
#socials .social-card .social-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

#socials .social-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

/* If you have the @username text in your HTML, this will hide it to keep it clean */
#socials .social-card p {
    display: none;
}
/* ======================================
   CONTACT SECTION
====================================== */
.contact-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.contact-card {
    background: rgba(15, 15, 15, 0.85);
    border: 2px solid rgba(255, 60, 60, 0.4);
    border-radius: 20px; /* Keep the corners soft */
    padding: 20px;
    margin: 20px auto;
    width: fit-content;
    min-width: 250px; /* Ensures it has enough space for the email */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mail-icon {
    font-size: 50px;
    margin-bottom: 18px;
    color: #ff4d4d;
    text-shadow: 0 0 15px red;
}

.contact-card h3 {
    font-size: 16px;
    margin: 0;
    text-align: center;
}

.contact-card button {
    background: transparent;
    color: #ff3c3c;
    border: 1px solid #ff3c3c;
    padding: 8px 20px;
    border-radius: 50px; /* Makes it pill-shaped like your other socials */
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    transition: 0.3s;
}

.contact-card button:hover {
    background: #ff3c3c;
    color: white;
}

#copyMessage {
    margin-top: 15px;
    color: #ff6b6b;
}

.thank-you {
    width: 70%;
    margin: 0 auto;
}

.thank-you h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    color: #ff4d4d;
    margin-bottom: 12px;
}

.thank-you p {
    color: #ddd;
    line-height: 1.7;
    font-size: 17px;
}

/* ======================================
   PAGE SWITCHING DISPLAY OVERRIDES
====================================== */
.page {
    display: none;
}

.page.active {
    display: flex;
}

#home.page.active,
#about.page.active,
#socials.page.active,
#contact.page.active {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* ======================================
   RESPONSIVE DESIGN & FLICKER EFFECTS
====================================== */
@media(max-height:850px){
    .logo { width: 340px; }
    .hero h1 { font-size: 42px; margin-top: -12px; }
    .hero p { font-size: 16px; margin-bottom: 18px; }
    .home-gallery img { height: 190px; }
    .about-main { height: 410px; }
    .social-card { min-height: 300px; padding: 25px 16px; }
}

@media(max-width:900px){
    html, body { overflow: auto; }
    .navbar {
        width: 94%;
        height: auto;
        padding: 16px;
        flex-wrap: wrap;
        gap: 18px;
    }
    .page {
        min-height: 100vh;
        height: auto;
        padding-top: 135px;
        padding-bottom: 45px;
        overflow: visible;
    }
    .logo { width: 380px; }
    .hero h1, #socials h1, #contact h1 { font-size: 38px; letter-spacing: 8px; }
    .home-gallery, .about-container, .facts, .about-gallery, .social-grid { grid-template-columns: 1fr; }
    .home-gallery img { height: 430px; }
    .about-container { width: 92%; gap: 30px; }
    .about-main { height: 520px; }
    .about-right { text-align: center; }
    .about-right h2 { font-size: 36px; }
    .about-right h2 span { font-size: 52px; }
    .about-gallery img { height: 420px; }
    .social-card { min-height: 260px; }
    .thank-you { width: 90%; }
}

@media (min-width: 901px){
    #home { padding-top: 85px; }
    .logo { width: 360px; margin-bottom: 0; }
    .hero h1 { font-size: 42px; margin-top: -18px; }
    .divider { margin: 2px 0 8px; }
    .hero p { font-size: 15px; line-height: 1.25; margin-bottom: 12px; }
    .home-gallery { width: 84%; gap: 18px; }
    .home-gallery img { height: 185px; }
    .home-gallery img:nth-child(4) { object-position: center 30%; }
}

/* Customized Glow Overrides & Interactive Animated Flames */
body::before,
body::after {
    width: 260px !important;
    opacity: .85 !important;
    filter: blur(8px) contrast(1.5) saturate(2) !important;
    background-image:
        radial-gradient(ellipse at 50% 100%, rgba(255,60,0,.95) 0%, transparent 35%),
        radial-gradient(ellipse at 35% 75%, rgba(255,120,0,.85) 0%, transparent 30%),
        radial-gradient(ellipse at 65% 55%, rgba(255,30,0,.75) 0%, transparent 25%),
        radial-gradient(ellipse at 45% 30%, rgba(255,100,0,.55) 0%, transparent 20%) !important;
    animation: realFlame 4s infinite ease-in-out alternate !important;
}

body::before { left: -45px !important; }
body::after { right: -45px !important; }

@keyframes realFlame {
    0% {
        transform: scaleY(1) scaleX(1) translateX(0);
        background-position: 0% 100%, 0% 100%, 0% 100%, 0% 100%;
        opacity: 0.75;
    }
    33% {
        transform: scaleY(1.06) scaleX(0.94) translateX(-4px);
        background-position: 0% 85%, 4% 75%, -3% 80%, 0% 90%;
    }
    66% {
        transform: scaleY(0.94) scaleX(1.06) translateX(4px);
        background-position: 0% 92%, -4% 60%, 3% 65%, -2% 70%;
        opacity: 0.95;
    }
    100% {
        transform: scaleY(1.12) scaleX(0.98) translateX(0);
        background-position: 0% 75%, 0% 45%, 0% 55%, 0% 65%;
        opacity: 0.85;
    }
}
