:root {
    --bg-gradient: linear-gradient(135deg, #e1e7fc 0%, #dadada 100%);
    --tile-bg: rgba(255, 255, 255, 0.5);
    --tile-border: rgba(255, 255, 255, 0.7);
    --text-main: #1e293b;
    --accent-primary: #6366f1;
    --accent: #0ea5e9;
    --text-muted: #64748b;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    counter-reset: node-count;
    scroll-behavior: smooth;
}

/* 1. Sticky Glass Header Logic */


.sticky-header {
    position: relative;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(195, 205, 238, 0.384);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 3px solid var(--tile-border);
}



.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}*/

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; }

/* 2. Header Content & Filter UI */
.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 10px; 
}

.top-nav h2 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--accent-primary); 
    margin: 10px 0;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
    
}

.status::after { 
    content: /*counter(node-count) " Nodes Active"*/; 
    font-size: 0.8rem; 
    font-weight: 600; }




/* 4. Bento Grid & Tiles */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
    .hero { grid-column: span 2; grid-row: span 2; }
    .wide { grid-column: span 2; }
    .tall { grid-row: span 2; }
}




.tile {
    counter-increment: node-count;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    border-radius: 10px;
    /*clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);*/
}

.tile:hover {
    background: rgb(50, 183, 201);
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.2);
    border-radius: 38px 58px 34px 26px;
    corner-shape: scoop;
    transition: .8s ease;
}


/* 5. Scroll Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tile {
    animation: fadeInUp 0.6s ease forwards;
}

/* Tags & Labels */
.tag {
    color: var(--accent);
    font-size: 1.0rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    place-items: center;
}

/* 1. Base Setup for Travel Nodes */
.tile.travel {
    background-size: 110%; /* Pre-zoom for hover effect */
    background-position: center;
    background-repeat: no-repeat;
    transition: 
        background-image 0.4s ease, 
        background-size 0.6s cubic-bezier(0.2, 1, 0.3, 1),
        transform 0.4s ease;
}

/* 2. Light Theme Overlay Logic */
/* We apply a light gradient overlay on top of the images to keep text sharp */

.tile.travel:hover {
    background-size: 100%;
    transition: .8s ease;
}

/* 3. Mapping Images to Specific Links */
/* Replace these URLs with your actual travel photos */
/*



/* Contact Card Styling */
.contact-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(99, 102, 241, 0.1));
    justify-content: center !important;
}

.contact-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Social Icon Grid */
.icon-grid {
    display: flex;
    gap: 45px;
    margin-top: 15px;
}

.icon-grid a {
    text-decoration: none;
    font-weight: 800;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--tile-border);
    transition: 0.3s;
}

.icon-grid a:hover {
    background: var(--accent);
    color: rgb(238, 212, 212);
    transform: scale(1.1);
}

/* Footer Styling */
.hosting-info {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--tile-border);
}

.hosting-card p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 4. Travel Nodes with Background Images */

.bulgaria-bg {
    /* Use a linear-gradient overlay so the text remains readable over the photo */
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(224, 242, 254, 0.5)), 
                      url('images/Bulgaria-alexandr-bormotin-KPtUGBxvVME-unsplash.jpg');
    background-size: cover;
    background-position: center;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace; /* Code font */
}

.blog-node {
    background: var(--bg-gradient);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #e0e0e0;
    
}

.blog-node:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px var(--accent);
}

.node-id {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.blog-node h2 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #fff;
}

.node-content {
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 2px solid #333;
    padding-left: 15px;
    margin: 15px 0;
}

.node-footer {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    cursor: pointer;
}

/* Specific Style for Evolution/Science Formulas */
.node-content p::selection {
    background: var(--accent);
    color: #000;
}

.node-content p::before {
    content: "◆"; /* Diamond character */
    color: var(--accent);
    margin-right: 10px;
}

/*Portfolio hover*/
.hero:hover {
    background-size: 100%;
    transition: .8s ease;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px var(--accent);
}

/*Connect with Dr. Simidjiev hover */
.contact-card:hover {
    
    background: rgb(50, 183, 201);
    color: white;
    transform: scale(1.05);
     box-shadow: 0 20px 30px -10px rgba(0,0,0,0.2);
}
