/* ==========================================
   1. BASIC SETUP & PERFORMANCE FIXES
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* GPU Acceleration - මෙන්න මේකයි Lag එක නැති කරන්නේ */
.card, .info-box, .icon-btn, .main-container {
    transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
}

#galaxyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ==========================================
   2. MAIN PROFILE CARD
   ========================================== */
.main-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.card {
    position: relative;
    width: 350px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 45px rgba(0,0,0,0.5);
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }

.details { margin-left: 20px; flex: 1; }
.details h1 { color: #fff; font-size: 20px; letter-spacing: 1px; }
.details p { color: #00cec9; font-size: 13px; font-weight: 500; }

.menu-toggle {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    transition: 0.5s;
}

/* ==========================================
   3. ICON MENU (CIRCULAR & MOBILE FIX)
   ========================================== */
.icon-menu {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.icon-btn {
    position: absolute;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--clr);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-container.active .menu-toggle { transform: rotate(135deg); background: #ff4757; color: #fff; }

/* Desktop Icon Spread */
.main-container.active .icon-btn {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translate(
        calc(210px * cos((var(--i) - 3) * 32deg)), 
        calc(210px * sin((var(--i) - 3) * 32deg))
    );
}

.icon-btn span { 
    position: absolute; font-size: 10px; bottom: -20px; color: #fff; opacity: 0; transition: 0.3s; white-space: nowrap;
}
.icon-btn:hover { background: var(--clr); color: #fff; box-shadow: 0 0 20px var(--clr); }
.icon-btn:hover span { opacity: 1; }

/* ==========================================
   4. INFO BOXES (SMOOTH ANIMATION & COLOR FIX)
   ========================================== */
.info-box {
    position: absolute;
    width: 360px;
    background: rgba(15, 15, 15, 0.98); /* Premium Dark Background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px 25px;
    border-radius: 40px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Animation Start State */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s;
    
    max-height: 85vh;
    overflow-y: auto;
}

/* Force All Text To Be White/Cyan */
.info-box h2, .info-box h3, .info-box h4, .info-box p, .info-box b, .info-box span {
    color: #ffffff !important; 
}
.info-box .subtitle, .info-box .tag, .info-box i {
    color: #00cec9 !important;
}

/* Show State */
.info-box.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-420px, 0); /* Desktop position */
}

/* Close Button Fix */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #ff4757 !important;
    font-weight: bold;
    z-index: 1100;
    line-height: 1;
}

/* About Section Specifics */
.about-header .subtitle { font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.description { font-size: 14px; color: #ccc !important; line-height: 1.6; margin: 15px 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #222; border: 1px solid #333; padding: 6px 14px; border-radius: 50px; font-size: 11px; font-weight: 600; }

.experience-brief { background: rgba(255,255,255,0.05); border-radius: 20px; display: flex; justify-content: space-around; padding: 15px; margin: 25px 0; }
.exp-item { text-align: center; }
.exp-item i { font-size: 22px; display: block; margin-bottom: 5px; }
.exp-item span { font-size: 9px; color: #888 !important; text-transform: uppercase; }

.hire-me-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(to right, #25d366, #128c7e); color: #fff !important;
    padding: 14px; border-radius: 18px; font-weight: bold; text-decoration: none;
}

/* ==========================================
   5. MOBILE RESPONSIVE (ICON OVERLAP FIX)
   ========================================== */
@media (max-width: 768px) {
    .card { width: 330px; }

    /* Icons Spread - මෙනු එක කාඩ් එකට උඩින් ලස්සනට පේන්න */
    .main-container.active .icon-btn {
        transform: scale(0.85) translate(
            calc(170px * cos((var(--i) - 3) * 35deg - 90deg)), 
            calc(170px * sin((var(--i) - 3) * 35deg - 90deg) - 160px)
        ) !important;
    }

    /* Mobile Icon Labels */
    .icon-btn span { opacity: 1; bottom: -18px; font-size: 8px; }

    /* Info Box Mobile Center Fix */
    .info-box {
        position: fixed;
        left: 50%;
        top: 50%;
        width: 92%;
        transform: translate(-50%, -45%);
    }
    .info-box.show {
        transform: translate(-50%, -50%) !important;
    }
}

/* Custom Scrollbar for Info Box */
.info-box::-webkit-scrollbar { width: 4px; }
.info-box::-webkit-scrollbar-thumb { background: #00cec9; border-radius: 10px; }







/* My Expertise මාතෘකාව Highlight කිරීම */
.info-box .skills-section h4 {
    color: #c2caca !important; /* කැපී පෙනෙන Cyan පාට */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 14px;
    border-left: 4px solid #00cec9; /* වම් පැත්තෙන් ඉරක් එකතු කිරීම */
    padding-left: 10px;
    margin-bottom: 15px;
    margin-top: 10px;
    display: block;
}







/* WhatsApp Hire Me Button එක කැපී පෙනෙන ලෙස හැදීම */
.hire-me-btn {
    background: #25d366 !important; /* WhatsApp Green */
    color: #ffffff !important;      /* අකුරු සුදු පාටට */
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3) !important; /* කොළ පාට Glow එකක් */
    border: none !important;
    padding: 16px !important;
    margin-top: 25px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    border-radius: 20px !important;
    transition: 0.3s ease-in-out !important;
    text-transform: none !important; /* අකුරු සාමාන්‍ය විදිහට පේන්න */
}

/* බටන් එක උඩට Mouse එක ගෙනිච්චම වෙනස */
.hire-me-btn:hover {
    background: #1ebe57 !important; /* තව ටිකක් තද කොළ පාට */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5) !important;
}

/* බටන් එක ඇතුලේ තියෙන WhatsApp Icon එක */
.hire-me-btn i {
    color: #ffffff !important; /* අයිකන් එකත් සුදු පාටට */
    font-size: 22px !important;
}