/* --- 1. BASE FOOTER & WATERMARK --- */
.site-footer {
    background-color: #000;
    color: #FFF;
    padding: 72px 0 20px 0; 
    position: relative;
    overflow: visible;;
    font-family: 'Albert Sans', sans-serif;
}

/* --- 2. THE WATERMARK MASK --- */
.footer-watermark-mask {
    position: absolute;
    bottom: 0; /* Aligns with the red line in your screenshot */
    left: 0;
    width: 100%;
    height: 15vw; /* Matches the bottom padding of the footer */
    overflow: hidden; /* THIS creates the "half-cut" at the red line! */
    z-index: 2; /* Sits above the watermark but below the credits */
}

.footer-watermark {
    /* Positioning */
    position: absolute;
    bottom: -8vw; /* This creates the "Half Cut" look */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    
    /* End-to-End Stretch Logic */
    width: 100%;
    text-align: center;
    white-space: nowrap;
    
    /* Typography */
    font-family: 'Gotham Ultra', 'Inter', sans-serif; 
    font-size: 23vw; /* Scales text to fill the width of any screen */
    line-height: 0.8; /* Tightens the vertical box to help with the 16px gap */
    text-transform: lowercase;
    letter-spacing: 0.05em; /* Gotham Ultra needs tight tracking for that premium look */
    
    /* Visuals */
    color: rgba(255, 255, 255, 0.08); /* Subtle visibility */
    pointer-events: none; /* User can click through it to the links */
}

/* --- 2. LAYOUT: HORIZONTAL GRID & ALIGNMENT --- */
.footer-top-row {
    display: flex; /* Fixes vertical stacking */
    gap: 50px; /* Horizontal space between the two columns */
    margin-bottom: 100px; /* Adjust this value to control the distance to the social icons */
    position: relative;
    z-index: 2;
}

/* Ensure font sizes and line-heights are consistent for optical alignment */
.location-group p, 
.footer-nav-links a {
    font-size: 1.1rem;
    line-height: 1.2; /* Matches the vertical rhythm */
    margin: 0;
    color: #fff;
    text-decoration: none;
    display: block;
}

.sub-text {
    opacity: 0.6;
}

.location-group {
    display: flex;
    flex-direction: column; /* Force vertical stacking */
    gap: 20px; /* INCREASE THIS to increase space between the 3 lines */
}

.footer-vertical-divider {
    width: 1px;
    height: auto; /* Let it stretch based on the content height */
    background: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
}

.footer-nav-links {
    display: flex;
    flex-direction: column; /* THE FIX: Changes horizontal to vertical */
    gap: 20px; /* MUST MATCH the location-group gap for perfect horizontal sync */
}


.footer-nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.7;
   transition: all 0.3s ease; /* Ensure this line exists for the smooth color shift */
}

.footer-nav-links a:hover {
    color: #605AFF; /* Your chosen designer purple */
    opacity: 1;     /* Brings the link to full brightness on hover */
    transform: translateX(6px); /* Optional: A small nudge to make the interaction feel tactile */
}

/* --- TOOLTIP WRAPPER --- */
.tooltip-wrapper {
    position: relative; /* Anchor for the speech bubble */
    display: inline-block;
}

/* --- HOVER INTERACTION --- */
.tooltip-wrapper:hover .speech-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Slides up into place */
}

/* Optional: Adding a small arrow at the bottom of the bubble */
.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1) transparent transparent transparent;
}

.cursor-tooltip, .speech-bubble {
    /* ... existing styles ... */
    
    /* THE FIX: Prevents the tooltip from 'blocking' the mouseleave event */
    pointer-events: none !important; 
}

/* THE BASELINE LOCK: Ensuring Socials and CTAs sit at 56px */
.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* --- 3. THE SOCIAL BUTTONS (56px Baseline) --- */
.social-group {
    display: flex;
    gap: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 56px;
    border-radius: 56px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    text-decoration: none;
    padding: 0 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-btn:hover {
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: rotate(-2deg);
    padding: 0 20px 0 16px;
}

.social-btn .social-name {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Albert Sans', sans-serif;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-btn:hover .social-name {
    max-width: 120px;
    opacity: 1;
    margin-left: 12px;
}

/* --- 4. THE CTA BUTTONS (1-to-1 Copy from your Source) --- */
.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.cta-btn {
    appearance: none; /* */
    background: transparent; /* */
    border: 1px solid rgba(255, 255, 255, 0.2); /* */
    cursor: pointer; /* */
    margin: 0; /* */
    outline: none; /* */
    box-sizing: border-box; /* */

    /* LAYOUT */
    display: inline-flex; /* */
    align-items: center; /* */
    justify-content: center; /* */
    height: 56px; /* */
    padding: 0 40px; /* */
    border-radius: 100px; /* */
    
    /* TYPOGRAPHY */
    color: #FFF; /* */
    text-decoration: none; /* */
    font-family: 'Albert Sans', sans-serif; /* */
    font-size: 20px; /* */
    white-space: nowrap; /* */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* */
}

.cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(-2deg);
}

.cta-btn .cta-icon {
    width: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-btn:hover .cta-icon {
    width: 24px;
    opacity: 1;
    margin-left: 8px;
}

/* --- 5. BOTTOM METADATA --- */
.footer-bottom-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}


/* --- 3. POSITIONING THE CREDITS ABOVE THE WATERMARK --- */
/* We use the container-lock and a spacer to ensure the 16px gap */
.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2; /* Sits on top of the watermark */
    
    /* THE PRECISION GAP */
    margin-bottom: 12vw; /* This value "pushes" the credits away from the bottom edge */
    /* This margin creates the 16px visual clearance above the top of the watermark text */
}

/* --- 4. LEFT TEXT STYLING --- */
.credits-left {
    font-family: 'Albert Sans', sans-serif;
    color: #FFF;
    font-size: 16px; /* Clean, readable size */
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.credits-left strong {
    font-weight: 700; /* Bolding 'Srinivas' */
}

.sub-text {
    font-size: 16px;
    opacity: 0.6; /* Makes '(not a template)' subtle */
}

/* --- 5. RIGHT TEXT STYLING --- */
.credits-right {
    font-family: 'Albert Sans', 'Noto Sans Tamil', sans-serif;
    color: #FFF;
    font-size: 16px; /* Slightly larger for the Tamil script */
    text-align: right;
}

/* --- THE GLASS OVERLAY --- */
.footer-bottom-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Matching the height of your watermark container roughly */

    height: 100%;
    border-top: #ffffff24 1px solid;
    
    /* FIGMA EXACT VALUES */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.10) 100%);
    backdrop-filter: blur(24.96355628967285px);
    -webkit-backdrop-filter: blur(24.96355628967285px); /* Safari support */
    
    /* Stacking Order */
    z-index: 1; /* Sits above the watermark (z-index: 0) */
    pointer-events: none; /* Mouse passes through to links */
}

/* --- THE CREATIVE ASSET POSITIONING --- */
.footer-creative-asset {
    position: absolute;
    
    /* 1. HORIZONTAL POSITION: Anchored to the right */
    right: 5%; /* Adjust this percentage to match the arrow's distance from the edge */
    
    /* 2. VERTICAL POSITION: The "Exactly in Half" Lock */
    top: 0px; /* Align to the very top border of the footer */
    transform: translateY(-50%); /* Moves it up by half its own height */

    /* APPLYING THE MOTION */
    /* 30s = 30 seconds for one full turn. 'linear' keeps the speed constant. */
    animation: slowRotate 30s linear infinite;
    
    /* VISUALS */
    z-index: 1; /* Sits BEHIND the glass (z-index 2) so it gets blurred */
    pointer-events: none;
    user-select: none;
}


.footer-watermark {
    z-index: 2; /* Stays at the very bottom */
}


/* --- SLOW ROTATION ANIMATION --- */
@keyframes slowRotate {
    from {
        /* We MUST keep the translateY(-50%) so it stays aligned with the top edge */
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}


/* --- MOBILE RESPONSIVENESS --- */


/* --- UPDATED MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    
    /* 1. THE SIDE-BY-SIDE LOCK */
    .footer-top-row {
        flex-direction: row !important; /* Overrides the vertical stack */
        justify-content: space-between;
        align-items: flex-start;
        gap: 0; 
    }

    /* 2. VERTICAL RHYTHM SYNC */
    /* By using identical gaps, the lines of text will baseline-align perfectly */
    .location-group, 
    .footer-nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px !important; /* This matches your desktop spacing for consistency */
    }

    .footer-nav-links {
        text-align: right;
    }

    /* 3. VERTICAL DIVIDER FIX */
    .footer-vertical-divider {
        width: 0px !important;
        height: 100px !important; /* Ensure it spans the height of the 3 lines */
        background: rgba(255, 255, 255, 0.15);
        margin: 0 15px !important;
    }

    /* 4. CENTERING THE CREATIVE ASSET */
    /* Positioning it in the center of the glass container as requested in the video */
    .footer-creative-asset {
        left: 50% !important;
        right: auto !important;
        top: 0 !important;
        /* We need a specific mobile animation to handle the X and Y centering */
        animation: slowRotateMobile 30s linear infinite !important;
    }

    /* 5. STACKING THE LOWER ELEMENTS */
    /* Socials and credits can still stack to provide breathing room for the links */
    .footer-actions,
    .footer-bottom-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .credits-right {
        text-align: left; /* Better readability when stacked */
    }
}

/* New Animation Keyframes for Mobile Centering */
@keyframes slowRotateMobile {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
