/* --- Global Reset and Setup --- */
:root {
    --text-color: #333;
    --card-bg-color: rgba(255, 255, 255, 0.08); 
    --body-text-color: #F0F0F0; 
    --shadow-color: rgba(0, 0, 0, 0.4);
    --accent-bg-color: #A03030;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(180deg, #151414 29.33%, #AC3131 100%);
    color: var(--body-text-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 10px 0 20px;
    overflow-x: hidden;
    position: relative;
}

/* --- Floating Tech Stack Icons --- */
.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 45px;
    height: 45px;
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.floating-icon svg {
    width: 100%;
    height: 100%;
}

.floating-icon:hover {
    opacity: 0.5 !important;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.floating-icon.clicked {
    animation: burst 0.6s ease-out;
}

@keyframes burst {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.15;
    }
}

/* Subtle pulse animation for floating icons */
@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.2;
    }
}

.floating-icon:nth-child(odd) {
    animation: gentlePulse 4s ease-in-out infinite;
}

.floating-icon:nth-child(even) {
    animation: gentlePulse 5s ease-in-out infinite 1s;
}

/* --- Card Wrapper --- */
#card-wrapper {
    width: 100%;
    max-width: 600px; 
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- 1. LARGE LOGO AREA & TEXT --- */
.logo-area-large {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10vh 15px 10px;
    margin-bottom: 5px;
}

/* AI Tagline Style - CHIP LOOK */
.tagline-chip {
    background: linear-gradient(90deg, #2A1310 0%, #351212 50%, #271015 100%);
    color: var(--body-text-color);
    padding: 7px 16px; 
    border-radius: 20px;
    font-size: 0.8em; 
    font-weight: 500;
    margin-bottom: 15px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.main-logo {
    height: 15vh; 
    width: auto;
    max-width: 90%;
    display: block;
    object-fit: contain;
    margin: 0 auto 5px;
}

.logo-text {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--body-text-color);
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); 
}

/* Main Headline Style */
.main-heading {
    color: var(--body-text-color);
    font-size: 1.8em; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px; 
    padding: 0 10px;
}

/* Sub-Text Style */
.sub-text {
    color: var(--body-text-color);
    font-size: 0.9em;
    opacity: 0.85;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* --- 2. CONTACT LINKS STYLES - GLASSMORPHISM --- */
.links-section {
    padding: 0 20px; 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.links-section.single-column .contact-card {
    width: 100%;
}
.contact-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(50% - 6px);
}

.contact-card::after {
    content: '';
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-card:active {
    transform: translateY(0) scale(0.98);
}

/* All icons are WHITE */
.contact-card i {
    font-size: 1.2em;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.15);
    opacity: 1;
}

.contact-text {
    font-size: 0.95em;
    color: var(--body-text-color);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    body {
        padding: 5px 0 10px;
    }
    .main-heading {
        font-size: 1.3em; 
    }
    .sub-text {
        font-size: 0.85em;
    }
    .links-section {
        max-width: 360px;
        flex-direction: column;
        align-items: stretch;
    }
    .contact-card {
        padding: 12px 14px;
        width: 100%;
    }
    .contact-text {
        font-size: 0.9em;
    }
    .floating-icon {
        width: 35px;
        height: 35px;
        opacity: 0.1;
    }
}

/* Larger screens */
@media (min-width: 768px) {
    .floating-icon {
        width: 55px;
        height: 55px;
    }
}
