:root {
    /* Color Palette */
    --color-background: #FAF0E6;       /* Creamy Ivory */
    --color-project-card: #FFF;        /* Pure Snow */
    --color-project-links: #F8F6F6;    /* Soft Pearl */
    --color-social-links: #F8F6F6;     /* Soft Pearl */
    --color-text: #2F4F4F;             /* Deep Charcoal */
    --color-accent: #2F4F4F;           /* Deep Charcoal */
    --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', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

/* Paragraphs */
p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Main Container */
.main-container {
    display: flex; /* or flex or center? */
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* flex-start or center? */
    height: 100vh; /* Full viewport height */
    padding: 20px;
}

/* 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;
}

/* Primary Button Styling */
.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.btn-primary:hover {
    background-color: darken(var(--color-accent), 10%); /* Darken the accent color on hover */
    transform: scale(1.05);
}

/* Link Styling */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

a:hover {
    color: #A0522D; /* Sienna - a darker shade of brown */
}

.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; /* Smooth transitions */
    transform: scale(1.05); /* Apply current hover scale as default */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Apply current hover shadow as default */
}

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

/* Center-align paragraphs within the left column */
.left-column p {
    text-align: center;
}

/* User Name */
.user-name {
    margin-top: 10px;
    font-size: 1.8rem; /* Adjust size as needed */
    font-weight: 1000; /* Bold text */
    color: var(--color-text);
    text-align: center;
    font-family: 'Roboto', sans-serif; /* Ensures consistency with the rest of the site */
}

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

/* Icon-Only Links */
.icon-link {
    display: inline-flex;                 /* Allows proper alignment of icons */
    align-items: center;                  /* Vertically centers the icon */
    justify-content: center;              /* Horizontally centers the icon */
    width: 50px;                           /* Fixed width for uniformity */
    height: 50px;                          /* Fixed height for uniformity */
    color: var(--color-accent);           /* Changed from #007BFF to accent color */
    border-radius: 50%;                    /* Makes the link circular */
    transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease; /* Smooth transitions */
    text-decoration: none;                 /* Removes underline from links */
}

.icon-link:hover {
    color: var(--color-accent);                  /* Maintain accent color on hover */
    transform: scale(1.1);                        /* Slightly enlarges the icon on hover */
}

.icon-link i,
.icon-link .nostr-logo {
    font-size: 1.5rem;                     /* Adjust icon size as needed */
    width: 24px;                            /* Fixed width for images */
    height: 24px;                           /* Fixed height for images */
    object-fit: contain;                    /* Ensures images fit within the container */
}

/* Nostr Logo within Icon Links */
.icon-link .nostr-logo {
    width: 30px;    /* Increased size for better visibility */
    height: 30px;   /* Increased size for better visibility */
    object-fit: cover; /* Ensures the logo fills the container without distortion */
    border-radius: 50%; /* Makes the Nostr logo circular */
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease; /* Maintains hover effects */
}

/* QR Code */
.qr-code {
    margin-top: 5px;
    text-align: center; /* Centers the text horizontally */
    padding: 20px; /* Optional: Adds space inside the container */
}

.qr-code p {
    font-size: 1rem; /* Adjust as needed */
    color: var(--color-text); /* Text color */
    margin-bottom: 10px; /* Space between text and image */
}

.qr-image {
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Adjust size as needed */
    object-fit: contain;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: block; /* Makes the image a block element */
    margin: 10px auto 0; /* Centers the image horizontally and adds top margin */
    background-color: #fff; /* Optional: Adds a white background */
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduced min-width */
    gap: 20px;
    align-items: stretch; /* Ensures all grid items stretch to match the tallest item in the row */
}

/* Project Card Wrapper */
.project-card-wrapper {
    position: relative; /* Establishes a positioning context for the badge */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the project card horizontally */
    height: 100%; /* Allows the wrapper to stretch and fill the grid row */
}

/* 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); /* More pronounced shadow and glow on hover */
}

/* 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; /* Allows the project card to grow and fill the wrapper */
    background-color: var(--color-project-card);
    padding: 20px;
    border-radius: 16px; /* Consistent border-radius */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Consistent box-shadow */
    text-align: center;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease; /* Smooth transitions */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes space between elements */
    gap: 0px; /* Consistent spacing between elements */
    margin: 0; /* Removes margin to prevent extra spacing */
    max-width: 1100px; /* Ensures uniform width */
    width: 100%; /* Takes full available width up to max-width */
}

.image-container {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    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; /* Ensures images scale uniformly */
    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: var(--color-text);
}

.project-card p {
    flex-grow: 1; /* Allows the paragraph to expand and fill available space */
    font-size: 1rem;
    margin-bottom: 0px;
    text-align: center; /* Centers the text */
}

/* Coming Soon Badge Styling */
.coming-soon-badge {
    position: absolute;
    top: 10px; /* Distance from the top of the wrapper */
    left: -10px; /* Distance from the left of the wrapper */
    background-color: var(--color-badge);
    color: #fff; /* White text for contrast */
    padding: 12px 28px; /* Increased padding for wider appearance */
    font-size: 1.1rem; /* Larger font size for visibility */
    font-weight: bold;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 77, 77, 0.5); /* Enhanced shadow with glow */
    transform: rotate(-15deg); /* Fun tilt */
    transition: transform var(--transition-duration) ease, opacity var(--transition-duration) ease, box-shadow var(--transition-duration) ease; /* Smooth transitions including shadow */
    opacity: 0.95; /* Slight transparency */
    z-index: 10; /* Ensures the badge appears above other elements */
    white-space: nowrap; /* Prevents text wrapping */
    max-width: 250px; /* Prevents excessive width */
    text-overflow: ellipsis; /* Adds ellipsis if text overflows */
    overflow: hidden; /* Hides overflowing text */
}

/* Enhance shadow on hover */
.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); /* More pronounced shadow and glow on hover */
}

/* Coming Soon Badge Hover */
.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);
    opacity: 1;
}

/* Tooltip Styling */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--color-text);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

/* 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;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Show the tooltip on hover and focus */
.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Project Links Container */
.project-links {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center the links horizontally */
    gap: 10px; /* Space between links */
    margin-top: 15px; /* Space above the links */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center; /* Vertically align items */
}

/* Project Link Styling */
.project-link {
    position: relative; /* Necessary for tooltip positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Adjust padding as needed */
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.project-link:hover,
.project-link:focus {
    color: var(--color-social-links);
    transform: scale(1.1);
}

/* Disabled Icon Styling */
.icon-link.disabled {
    pointer-events: none; /* Prevents clicking */
    opacity: 0.6; /* Makes it look disabled */
    cursor: not-allowed; /* Changes cursor on hover */
    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;
    }
}

@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; /* Reduced from 40px */
        padding-left: 15px; /* Optional: Adjust padding if necessary */
        padding-right: 15px; /* Optional: Adjust padding if necessary */
        padding-bottom: 15px; /* Optional: Adjust padding if necessary */
    }

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

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

    .user-name {
        font-size: 1.7rem; /* Adjust font size for mobile phones */
    }

    .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; /* Further reduced size for very small screens */
        height: 50px;
    }

    .icon-link i,
    .icon-link .nostr-logo {
        font-size: 1.75rem;                     /* Adjust icon size as needed */
        width: 32px;                            /* Fixed width for images */
        height: 32px;                           /* Fixed height for images */
    }

    .qr-code {
        width: 100%; /* Full width on very small screens */
    }

    /* Responsive Adjustments for Coming Soon Badge */
    .coming-soon-badge {
        top: 8px; /* Slightly closer to the top */
        left: -8px; /* Slightly closer to the left */
        padding: 10px 24px; /* Maintain wider padding */
        font-size: 1rem; /* Slightly smaller font */
        border-radius: 10px;
        transform: rotate(-15deg); /* Reduced tilt for better fit */
        max-width: 200px; /* Adjusted max-width */
    }
}

@media (max-width: 480px) {

    /* Reduce padding on the main container */
    .main-container {
        padding: 10px; /* Reduced from 20px */
    }

    /* Reduce top margin on the right column */
    .right-column {
        margin-top: 0px; /* Reduced from 40px */
        padding-left: 15px; /* Optional: Adjust padding if necessary */
        padding-right: 15px; /* Optional: Adjust padding if necessary */
        padding-bottom: 15px; /* Optional: Adjust padding if necessary */
    }

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

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

    .user-name {
        font-size: 1.7rem; /* Adjust font size for mobile phones */
    }

    .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; /* Fixed height for consistency */
    }

    .image-container img {
        width: 95%;
        height: 95%;
        object-fit: contain; /* Ensures images scale uniformly */
        transition: transform var(--transition-duration) ease;
    }

    .icon-link {
        width: 50px; /* Further reduced size for very small screens */
        height: 50px;
    }

    .icon-link i,
    .icon-link .nostr-logo {
        font-size: 1.75rem;                     /* Adjust icon size as needed */
        width: 32px;                            /* Fixed width for images */
        height: 32px;                           /* Fixed height for images */
    }

    .qr-code {
        width: 100%; /* Full width on very small screens */
    }

    /* Responsive Adjustments for Coming Soon Badge */
    .coming-soon-badge {
        top: 8px; /* Slightly closer to the top */
        left: -12px; /* Slightly closer to the left */
        padding: 10px 24px; /* Maintain wider padding */
        font-size: 1rem; /* Slightly smaller font */
        border-radius: 10px;
        transform: rotate(-15deg); /* Reduced tilt for better fit */
        max-width: 200px; /* Adjusted max-width */
    }
}