/* custom additions to template */

:root {
    --transition-time: 400ms;
}

body {
    background-color: #ffffff;
}


/* handle mobile users */
.mobile-overlay {
    display: none;
}
@media (max-width: 768px) {
  
    .mobile-overlay {
        display: flex;
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 9999;
        font-size: 2em;
        font-family: 'Monospace', 'Courier New';
        background: rgba(0, 0, 0, 0.9);
        color: white;
    }
        

    .mobile-overlay button {
        margin-top: 20px; /* Add space above the button */
        padding: 10px 20px;
        font-size: 16px;
        background-color: #656565;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-family: 'Monospace', 'Courier New';
    }
    
    .mobile-overlay button:hover {
        color: black;
        background-color: #c9c9c9;
    }
}

.profile-image {
    display: block;
    margin: 10px auto;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 30px;
    /* Modern glass-like border effect */
    border: 10px solid rgba(221, 221, 221, 0.8);
    backdrop-filter: blur(5px);
    /* Smooth transition for hover effects */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Layered shadow for depth */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-image-container {
    position: relative;
}



/* Continuous gentle pulsing animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        /* Subtle expansion at midpoint */
        transform: scale(1.05);
    }
    100% {
        /* Return to original size to complete cycle */
        transform: scale(1);
    }
}

/* Profile image pulsing notification animation */
@keyframes profilePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                    0 1px 3px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                    0 3px 6px rgba(0, 0, 0, 0.15),
                    0 0 20px rgba(255, 255, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                    0 1px 3px rgba(0, 0, 0, 0.08);
    }
}

.profile-pulse-notification {
    animation: profilePulse 1.5s ease-in-out infinite;
}






.profile-image:hover {
    transform: scale(1.2);
    /* Enhanced shadow and glow effect on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
                0 3px 6px rgba(0, 0, 0, 0.12),
                0 0 20px rgba(221, 221, 221, 0.4);
    /* Keep original border color but add slight transparency for depth */
    border: 10px solid rgba(221, 221, 221, 0.95);
}

.title-wrap {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.title-wrap h2 {
    font-size: 3.8em;
    font-family: 'Monospace', 'Courier New';
}

.btn-group {
    margin-top: -60px;
    text-align: center;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
}

/* Modern button styling with layered effects */
.button {
    background-color: #dddddd; 
    border: none; 
    border-radius: 20px; 
    color: black;
    font-size: 1em;
    cursor: pointer;
    padding: 10px; 
    margin: 5px 5px; 
    /* Smooth transition for all properties using custom timing function */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Layered shadow for depth: distant soft shadow + close sharp shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    /* Subtle light border and glass-like effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Radial gradient overlay for hover shine effect */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a circular highlight that fades out from center */
    background: radial-gradient(circle at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Enhanced hover state with lift effect and deeper shadows */
.button:hover {
    background-color: #c8c8c8;
    /* Slight lift and scale effect */
    transform: translateY(-2px) scale(1.02);
    /* Triple-layered shadow: deep ambient + crisp near + white glow */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
                0 3px 6px rgba(0, 0, 0, 0.12),
                0 0 15px rgba(255, 255, 255, 0.2);
    /* Enhanced border visibility on hover */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Press down effect when button is clicked */
.button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Button icon styling */
.button img {
    vertical-align: middle; 
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* Ensures icon stays above the shine effect */
    position: relative;
    z-index: 1;
    /* Smooth icon scaling animation */
    transition: transform 0.3s ease;
}

/* Scale up icon on button hover */
.button:hover img {
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-time);
    pointer-events: none; 
    padding-top: 0%;
    text-align: center;
}

.overlay-content {
    max-width: 800px; 
    max-height: 90%;
    z-index: 1000;
    transform-origin: center 0; /* Ensure scaling is from the center */
    transition: transform 0.2s ease;
}

.profile-image-container {
    position: relative;
    z-index: 1001; 
}

.profile-image-container .profile-image {
    position: relative;
    z-index: 1000;
}

.profile-image-container:hover + .overlay {
    opacity: 1; 
    pointer-events: auto;
}

.bigger-text {
    font-family: 'Monospace', 'Courier New';
    font-size: 1.9em;
}
.biggest-text {
    font-family: 'Monospace', 'Courier New';
    font-size: 2.3em;
}
.normal-text {
    font-family: 'Monospace', 'Courier New';
    font-size: 1.4em;
}

/* Company logo styling in the overlay */
img.inline {
    width: 2.3em;
    height: 2.3em;
    vertical-align: middle;
    display: inline-block;
    border-radius: 8px;
    margin: 5px 0;
    /* Modern glass effect and shadow */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
    /* Smooth transition for hover effects */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

img.inline:hover {
    /* Lift and scale effect */
    transform: translateY(-2px) scale(1.1);
    /* Enhanced shadow and glow */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 3px 6px rgba(0, 0, 0, 0.15),
                0 0 15px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.inline {
    pointer-events: none;
}

/* Rounded edges for kathir_meyyappan images */
#kathir_meyyappan {
    border-radius: 12px;
}
