:root {
    /* Color Palette */
    --color-background: #000000;       /* Dark Slate Gray */
    --color-project-card: #000000;        /* Pure Snow */
    --color-project-links: #F8F6F6;    /* Soft Pearl */
    --color-social-links: #FFFFFF;     /* White */
    --color-accent: #FFFFFF;           /* White */
    --color-badge: #FF4D4D;            /* Crimson Blaze */

    /* Transition Duration */
    --transition-duration: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', sans-serif;
    line-height: 1.6;
    background-color: var(--color-background);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: inherit; /* Inherits from parent or default */
    margin-bottom: 10px;
    font-family: 'Roboto Mono', sans-serif;
}

/* Paragraphs */
p {
    color: inherit; /* Inherits from parent or default */
    line-height: 1.6;
}

/* Main Container */
.main-container {
    display: center;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 20px;
    background-color: var(--color-background);
}

/* Left Column */
.left-column {
    flex: 0 0 300px; /* Fixed width of 300px */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center; /* Centers items vertically */
    padding: 10px;
    margin-top: 10px;
}

/* Right Column */
.right-column {
    flex: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

/* =========================================
   Buttons: No background
   ========================================= */
.btn-primary {
    background-color: transparent;  /* No background */
    color: #fff;                    /* Keep text white (adjust as needed) */
    padding: 10px 20px;
    border: 1px solid #fff;         /* Optional: Add a subtle border */
    border-radius: 5px;
    cursor: pointer;
    transition: color var(--transition-duration) ease,
                transform var(--transition-duration) ease;
}

.btn-primary:hover {
    background-color: transparent;  /* Remain transparent on hover */
    color: #fff;                    /* Keep text white */
    transform: scale(1.05);
}

/* =========================================
   Logo Styling
   ========================================= */

/* Logo Styling */
.logo {
    width: 100%;
    max-width: 600px;        /* Adjust the maximum width as needed */
    height: auto;            /* Maintains aspect ratio */
    object-fit: contain;     /* Ensures the logo fits within the container without distortion */
    margin-bottom: 20px;     /* Adds space below the logo */
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.logo:hover {
    /* transform: scale(1.05);  Slightly enlarges the logo on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow on hover */
}

/* =========================================
   Global Link Styling
   ========================================= */
a {
    /* Default all links to white */
    color: #FFFFFF;
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

/* Text links get underlined on hover, 
   but we'll remove it from icon links. */
a:hover {
    /* No underline by default on hover */
    text-decoration: none;
}

/* Underline ONLY text-based links on hover 
   (exclude icon links via :not(.icon-link)) */
a:not(.icon-link):hover {
    text-decoration: underline;
}

/* .underline-link class (if needed) */
.underline-link {
    text-decoration: underline;
}

/* =========================================
   Profile Picture Styling
   ========================================= */
.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #fff;
    transition: transform var(--transition-duration) ease, 
                box-shadow var(--transition-duration) ease;
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.3);
}

/* Specific Text Coloring for Name & Description */
.user-name {
    margin-top: 10px;
    font-size: 1.8rem;
    font-weight: 1000; /* Bold text */
    color: #FFFFFF;    /* White */
    text-align: center;
    font-family: 'Roboto Mono', sans-serif;
}

.left-column p {
    text-align: center;
    color: #FFFFFF;    /* White */
}

/* =========================================
   Social Links (icons remain white)
   ========================================= */
.social-links {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    justify-content: center; /* Center the social links horizontally */
}

/* Icon-Only Links Base */
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    /* Remove circular shape for project icons, 
       but keep for social if you want a circle for them. 
       So we won't define border-radius: 50% here. */
    transition: background-color var(--transition-duration) ease,
                transform var(--transition-duration) ease,
                color var(--transition-duration) ease;
    text-decoration: none; /* No underline on icon links */
}

.icon-link:hover {
    transform: scale(1.1);
}

/* Social Icons: White */
.social-links .icon-link {
    color: #FFFFFF !important; /* Force white for social icons */
    border-radius: 50%;        /* Keep circular shape for social icons */
}

.social-links .icon-link:hover {
    background-color: transparent !important; /* No background change */
    color: #FFFFFF !important; /* Remain white on hover */
}

/* Icon sizes */
.icon-link i,
.icon-link .nostr-logo {
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Nostr Logo within Icon Links */
.icon-link .nostr-logo {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition-duration) ease, 
                box-shadow var(--transition-duration) ease;
}

/* =========================================
   QR Code
   ========================================= */
.qr-code {
    margin-top: 5px;
    text-align: center;
    padding: 20px;
}

.qr-code p {
    font-size: 1rem;
    color: inherit; /* Inherits from parent */
    margin-bottom: 10px;
}

.qr-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: block;
    margin: 10px auto 0;
    background-color: #fff;
}

/* =========================================
   Projects Grid & Cards
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Wrapper for each project card */
.project-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Hover Effect on Project Card Wrapper */
.project-card-wrapper:hover .project-card {
    transform: translateY(-15px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.project-card-wrapper:hover .coming-soon-badge {
    transform: translateY(-15px) rotate(-10deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 77, 77, 0.7);
}

/* Project Card Transition */
.project-card {
    transition: transform var(--transition-duration) ease, 
                box-shadow var(--transition-duration) ease;
}

/* Coming Soon Badge Transition */
.coming-soon-badge {
    transition: transform var(--transition-duration) ease, 
                opacity var(--transition-duration) ease, 
                box-shadow var(--transition-duration) ease;
}

/* Project Card Styling */
.project-card {
    flex: 1;
    background-color: var(--color-project-card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0px;
    margin: 0;
    max-width: 1100px;
    width: 100%;
    color: #FFFFFF; /* Base text color inside project card: black */
}

/* Ensure project card text retains black color */
.project-card h3,
.project-card p {
    color: inherit;
}

/* Image Container */
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--transition-duration) ease;
}

.image-container img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    transition: transform var(--transition-duration) ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
    color: inherit; /* Inherit black */
}

.project-card p {
    flex-grow: 1;
    font-size: 1rem;
    margin-bottom: 0px;
    text-align: center;
    color: inherit; /* Inherit black */
}

/* Project Card "Coming Soon" Badge */
.coming-soon-badge {
    position: absolute;
    top: 10px;
    left: -10px;
    background-color: var(--color-badge);
    color: #fff; /* White text */
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 77, 77, 0.5);
    transform: rotate(-15deg);
    opacity: 0.95;
    z-index: 10;
    white-space: nowrap;
    max-width: 250px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.project-card-wrapper:hover .coming-soon-badge {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 77, 77, 0.7);
    transform: translateY(-15px) rotate(-10deg);
    opacity: 1;
}

/* =========================================
   Tooltips
   ========================================= */

/* 
   Remove transitions from tooltip to avoid 
   any flickering or delay (text will appear 
   immediately).
*/
.tooltip .tooltiptext {
    display: none; 
    visibility: hidden;

    /* Let the tooltip width be dictated by the text */
    width: fit-content; /* or use max-content */
    white-space: nowrap; /* prevents text wrapping */

    /* Add padding for extra space around the text */
    padding: 8px 12px;

    /* Remove or adjust any max-width/min-width if you had them */
    min-width: 0; 
    max-width: none;

    border-radius: 4px;
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: none; /* to avoid flicker or delay */
    z-index: 1; 
}

/* Show instantly on hover/focus */
.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Tooltip Arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;    /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    /* Dark arrow by default; can change dynamically if needed */
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Show tooltip on hover/focus (instantly, no delay) */
.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Specific Tooltip Styling for SOCIAL icons 
   (white bg, dark text, NO border) */
.social-links .tooltip .tooltiptext {
    background-color: #FFFFFF;  /* White background */
    color: #2F4F4F;             /* Dark Slate Gray text */
    border: none;               /* Remove border */
    padding: 5px 10px;
    border-radius: 4px;
}

.social-links .tooltip .tooltiptext::after {
    border-color: #FFFFFF transparent transparent transparent;
}

/* Specific Tooltip Styling for PROJECT icons 
   (black bg, white text) */
.project-links .tooltip .tooltiptext {
    background-color: #000000;  /* Black background */
    color: #FFFFFF;             /* White text */
    border: 1px solid #FFFFFF;
    padding: 5px 10px;
    border-radius: 4px;
}

.project-links .tooltip .tooltiptext::after {
    border-color: #000000 transparent transparent transparent;
}

/* =========================================
   Project Links (Icons & Text) in Cards
   ========================================= */
.project-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* Project icon links: black (square/no circle) */
.project-links .icon-link {
    color: #FFFFFF !important; /* Force black for project icons */
    text-decoration: none;
    border-radius: 0 !important; /* Remove circular shape on project icons */
}

.project-links .icon-link:hover {
    background-color: #000000 !important; 
    color: #FFFFFF !important;           
    text-decoration: none;
}

/* Links within .project-card (text links) should be black */
.project-card a:not(.icon-link) {
    color: #FFFFFF !important; /* Black text link */
}
.project-card a:not(.icon-link):hover {
    color: #000000 !important;
    text-decoration: underline; /* Underline on hover for text links */
}

/* =========================================
   Disabled Icon Styling
   ========================================= */
.icon-link.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto; /* Allow height to adjust */
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .right-column {
        margin-top: 40px;
    }

    .logo {
        max-width: 500px; /* Slightly smaller on tablets */
    }
}

@media (max-width: 768px) {
    /* Reduce padding on the main container */
    .main-container {
        padding: 10px; /* Reduced from 20px */
    }

    .left-column p {
        text-align: center;
        max-width: 550px;
    }

    /* Reduce top margin on the right column */
    .right-column {
        margin-top: 0px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .profile-pic {
        width: 175px;
        height: 175px;
    }

    .qr-image {
        width: 60px;
        height: 60px;
    }

    .user-name {
        font-size: 1.7rem;
    }

    .right-column h2 {
        font-size: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.5rem;
        margin-top: 0px;
        margin-bottom: 5px;
    }

    .project-card p {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .icon-link {
        width: 50px;
        height: 50px;
    }

    .icon-link i,
    .icon-link .nostr-logo {
        font-size: 1.75rem;
        width: 32px;
        height: 32px;
    }

    .qr-code {
        width: 100%;
    }

    .coming-soon-badge {
        top: 8px;
        left: -8px;
        padding: 10px 24px;
        font-size: 1rem;
        border-radius: 10px;
        transform: rotate(-15deg);
        max-width: 200px;
    }

    .logo {
        max-width: 400px; /* Smaller on small tablets and large phones */
    }
}

@media (max-width: 480px) {
    /* Reduce padding on the main container */
    .main-container {
        padding: 10px;
    }

    /* Reduce top margin on the right column */
    .right-column {
        margin-top: 0px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .profile-pic {
        width: 175px;
        height: 175px;
    }

    .qr-image {
        width: 60px;
        height: 60px;
    }

    .user-name {
        font-size: 1.7rem;
    }

    .right-column h2 {
        font-size: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.5rem;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .project-card p {
        margin-top: 0px;
        margin-bottom: 10px;
    }

    .image-container {
        height: 150px;
    }

    .image-container img {
        width: 95%;
        height: 95%;
        object-fit: contain;
        transition: transform var(--transition-duration) ease;
    }

    .icon-link {
        width: 50px;
        height: 50px;
    }

    .icon-link i,
    .icon-link .nostr-logo {
        font-size: 1.75rem;
        width: 32px;
        height: 32px;
    }

    .qr-code {
        width: 100%;
    }

    .coming-soon-badge {
        top: 8px;
        left: -12px;
        padding: 10px 24px;
        font-size: 1rem;
        border-radius: 10px;
        transform: rotate(-15deg);
        max-width: 200px;
    }

    .logo {
        max-width: 300px; /* Smaller on phones */
    }
}