 /* --- Global Styles --- */
:root {
    --bg-dark: #02050e; 
    --cyan: #00FFFF;
    --deep-blue: #0077ff;
    --light-blue: #87CEEB; 
    --amber-warm: #FFBF00; 
    --text-white: #FFFFFF;
    --text-gray: #A0ABC0;
    --text-silver: #D0D4DC;
    --silver-highlight: #E8EBEF;
    --border-blue: rgba(0, 255, 255, 0.15);
    --card-bg: rgba(0, 191, 255, 0.03);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg-dark); 
    background-image: linear-gradient(rgba(2, 5, 14, 0.65), rgba(2, 5, 14, 0.65)), url('1000010134.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-white); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
}

#network-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 90px 0; }
.section-title { font-family: var(--font-heading); font-size: 2.8rem; text-align: center; margin-bottom: 50px; color: var(--cyan); font-weight: 800; letter-spacing: 1px; }

/* =========================================
   HEADER & NAVIGATION
========================================= */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(2, 5, 14, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-blue); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; }

/* --- LOGO FIX: Silver Text & Spinning Blue Ring --- */
.logo { 
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    color: var(--text-silver); /* Silver text applied here */
    text-decoration: none; 
    font-weight: 800; 
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px; 
}
.logo span { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }

/* Wrapper to hold the image and the spinning ring */
.logo-img-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* The spinning blue ring */
.logo-img-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    animation: spin-ring 1.5s linear infinite;
    z-index: 1;
}

@keyframes spin-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2; /* Keeps image above the spinning ring */
}

/* Navigation Links */
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-gray); text-decoration: none; font-size: 0.95rem; text-transform: uppercase; font-weight: 600; transition: all 0.3s ease; letter-spacing: 1px; position: relative; padding: 5px 0;}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); text-shadow: 0 0 15px rgba(0, 255, 255, 0.8); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--cyan); transition: width 0.3s ease; box-shadow: 0 0 10px var(--cyan); border-radius: 2px;}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* =========================================
   HOME (HERO) SECTION 
========================================= */
.hero { height: 100vh; display: flex; align-items: center; perspective: 1000px; }
.hero-content { display: flex; align-items: center; justify-content: space-between;}
.hero-text { max-width: 650px; flex: 1.2; z-index: 2;} 

.greeting { color: var(--text-gray); letter-spacing: 2px; font-weight: 500; margin-bottom: 5px; font-size: 1rem; text-transform: uppercase;}
.name { font-size: 5.5rem; font-family: var(--font-heading); line-height: 1.1; margin-bottom: 5px; font-weight: 800; }
.animated-name { background: linear-gradient(270deg, #9b51e0, var(--deep-blue), #ffffff, #9b51e0); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: nameColorChange 5s ease infinite;}
@keyframes nameColorChange { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.typing-container { font-size: 2rem; color: var(--cyan); font-weight: 500; margin-bottom: 20px; }
#typing-text { font-weight: 600; color: var(--cyan); }
.cursor { color: var(--cyan); animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.description { color: var(--text-gray); font-size: 1.05rem; margin-bottom: 35px; line-height: 1.8;}

/* --- Buttons --- */
.btn-group { display: flex; gap: 20px; margin-bottom: 35px;}
.btn-primary, .btn-outline { padding: 14px 30px; border-radius: 6px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.4s ease; font-family: var(--font-body); font-size: 1.05rem; background: transparent; color: var(--cyan); border: 2px solid var(--cyan); position: relative; overflow: hidden; z-index: 1;}
.btn-primary::before, .btn-outline::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--deep-blue); z-index: -1; transition: width 0.6s ease; }
.btn-primary:hover::before, .btn-outline:hover::before { width: 100%; }
.btn-primary:hover, .btn-outline:hover { color: #ffffff; border-color: var(--deep-blue); box-shadow: 0 0 20px rgba(0, 119, 255, 0.6); }
.btn-primary:active, .btn-outline:active { transform: scale(0.95); }

.hero-socials { display: flex; gap: 25px; margin-top: 15px;}
.hero-socials a { display: flex; justify-content: center; align-items: center; text-decoration: none; width: 65px; height: 65px; border-radius: 50%; border: 2px solid var(--cyan); background-color: transparent; transition: all 0.3s ease; box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); }
.hero-socials a i { font-size: 2.2rem; color: #fff; }
.hero-socials a:hover { background-color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 25px rgba(0, 255, 255, 0.7); transform: translateY(-5px); }
.hero-socials a:hover i { color: #000; }

/* --- HERO VISUAL (STABLE FRAME & SCANNER) --- */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; height: 500px; z-index: 1;}
.hero-3d-visual { position: relative; width: 400px; height: 500px; display: flex; justify-content: center; align-items: center; }

.bokeh-orb { position: absolute; border-radius: 50%; filter: blur(35px); opacity: 0.5; z-index: 0; animation: floatOrb 8s infinite alternate ease-in-out; }
.orb-1 { width: 180px; height: 180px; background: var(--cyan); top: -20px; left: -60px; animation-delay: 0s; }
.orb-2 { width: 220px; height: 220px; background: var(--deep-blue); bottom: -30px; right: -50px; animation-delay: -3s; }
.orb-3 { width: 120px; height: 120px; background: var(--light-blue); top: 40%; right: -30px; z-index: 20; filter: blur(20px); opacity: 0.7; animation-duration: 6s; }

@keyframes floatOrb { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-30px) scale(1.1); } }

.profile-glow { position: absolute; width: 380px; height: 480px; border-radius: 20px; background: radial-gradient(circle, rgba(0, 119, 255, 0.3) 0%, transparent 70%); box-shadow: 0 0 50px rgba(0, 255, 255, 0.4); z-index: 1; }

.profile-frame { 
    width: 350px; height: 450px; border-radius: 20px; z-index: 10; 
    background: transparent; padding: 0; position: relative; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--cyan); 
}
.solid-blue-circle { width: 100%; height: 100%; border-radius: 20px; background: transparent; overflow: hidden; position: relative; display: flex; justify-content: center; align-items: center; }
.profile-img-inner { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 20px; position: absolute; top: 0; left: 0; z-index: 10; filter: brightness(0.85); }

/* Scanner Effect */
.verification-scanner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; overflow: hidden; border-radius: 20px; }
.scan-brackets { position: absolute; top: 30px; left: 30px; right: 30px; bottom: 30px; background: linear-gradient(to right, var(--cyan) 3px, transparent 3px) 0 0, linear-gradient(to bottom, var(--cyan) 3px, transparent 3px) 0 0, linear-gradient(to left, var(--cyan) 3px, transparent 3px) 100% 0, linear-gradient(to bottom, var(--cyan) 3px, transparent 3px) 100% 0, linear-gradient(to right, var(--cyan) 3px, transparent 3px) 0 100%, linear-gradient(to top, var(--cyan) 3px, transparent 3px) 0 100%, linear-gradient(to left, var(--cyan) 3px, transparent 3px) 100% 100%, linear-gradient(to top, var(--cyan) 3px, transparent 3px) 100% 100%; background-repeat: no-repeat; background-size: 30px 30px; opacity: 0.9; z-index: 16; }
.scan-line { width: 100%; height: 3px; background: rgba(0, 255, 255, 0.9); box-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.6); position: absolute; top: 0; left: 0; animation: scanMove 3.5s ease-in-out infinite; z-index: 17; }
@keyframes scanMove { 0% { top: 5%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 95%; opacity: 0; } }

/* =========================================
   ABOUT ME SECTION 
========================================= */
.about-center-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; }
.about-3d-visual { position: relative; width: 620px; height: 620px; margin: 0 auto 50px; display: flex; justify-content: center; align-items: center; perspective: 1500px; }
.about-profile-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 119, 255, 0.4) 0%, transparent 70%); box-shadow: 0 0 60px rgba(0, 255, 255, 0.4); z-index: 1; }
.rings-outer-wrapper { position: absolute; width: 580px; height: 580px; z-index: 2; opacity: 0.7; pointer-events: none; transform-style: preserve-3d; animation: spinRingsOuter 25s linear infinite; }
@keyframes spinRingsOuter { 0% { transform: rotateZ(0deg) rotateY(0deg) rotateX(0deg); } 100% { transform: rotateZ(360deg) rotateY(360deg) rotateX(360deg); } }
.ring-orbit { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 3px dashed rgba(0, 255, 255, 0.6); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
.ring-x { transform: rotateX(60deg) rotateY(0deg); border-color: var(--cyan); }
.ring-y { transform: rotateX(60deg) rotateY(60deg); border-color: var(--deep-blue); }
.ring-z { transform: rotateX(60deg) rotateY(120deg); border-color: var(--light-blue); }

.about-profile-frame { width: 450px; height: 450px; border-radius: 50%; z-index: 10; background: transparent; padding: 0; position: relative; box-shadow: 0 0 35px var(--cyan); transition: all 0.4s ease; }
.about-profile-frame:hover { transform: scale(1.05); box-shadow: 0 0 55px rgba(0, 255, 255, 0.9); }
.about-solid-blue-circle { width: 100%; height: 100%; border-radius: 50%; background: transparent; overflow: hidden; position: relative; display: flex; justify-content: center; align-items: center; }
.profile-img-inner-about { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; position: absolute; top: 0; left: 0; z-index: 10; }

.about-centered-text { max-width: 850px; margin: 0 auto; text-align: center; background: rgba(4, 8, 20, 0.6); border: 1px solid rgba(0, 255, 255, 0.15); padding: 45px; border-radius: 20px; backdrop-filter: blur(12px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); }
.about-centered-text p { font-size: 1.15rem; color: var(--text-gray); line-height: 1.9; margin-bottom: 25px; }
.about-centered-text p:last-child { margin-bottom: 0; }

.slogan-box { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 20px 30px; background: rgba(0, 255, 255, 0.05); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); transition: all 0.8s ease-in-out; cursor: pointer; }
.slogan-box:hover { border-color: var(--cyan); box-shadow: 0 5px 25px rgba(0, 255, 255, 0.2); }
.slogan-icon { font-size: 1.8rem; color: var(--amber-warm); text-shadow: 0 0 10px rgba(255, 191, 0, 0.5); transition: transform 0.8s ease-in-out, color 0.8s ease; }
.slogan-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-white); letter-spacing: 1px; text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); transition: color 0.8s ease; }
.slogan-box.clicked-state { transform: translateX(30px) scale(1.02); background: linear-gradient(135deg, rgba(0, 119, 255, 0.2), rgba(0, 255, 255, 0.2)); border-color: var(--amber-warm); box-shadow: 0 10px 35px rgba(0, 255, 255, 0.4); }
.slogan-box.clicked-state .slogan-icon { color: var(--cyan); transform: rotate(360deg); }
.slogan-box.clicked-state .slogan-text { color: var(--cyan); }

/* =========================================
   FLOATING CIRCULAR SKILLS
========================================= */
 /* ===== SKILLS SECTION ===== */

.skills-section {
    padding: 80px 20px;
}

/* SAME WIDTH AS ABOUT + SLOGAN */
.skills-inner {
    max-width: 850px;
    margin: 0 auto;
}

/* TITLE */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 40px;
}

/* GRID (LEFT ALIGNED) */
.skills-circle-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 40px;

    justify-items: start;   /* 🔥 LEFT ALIGN FIX */
}

/* SKILL ITEM */
.skill-item {
    width: 100px;
    text-align: center;
}

/* CIRCLE DESIGN */
.skill-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;

    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.skill-circle:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* TEXT */
.skill-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

/* 🔥 FIREBASE POSITION FIX (SECOND ROW LEFT) */
.skill-item.firebase {
    grid-column: 1;
    grid-row: 2;
}

/* FIREBASE COLOR STYLE */
.brand-firebase {
    border: 1px solid rgba(255, 166, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 166, 0, 0.4);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .skills-circle-container {
        grid-template-columns: repeat(4, 1fr);
        justify-items: start;
    }
}

@media (max-width: 600px) {
    .skills-circle-container {
        grid-template-columns: repeat(2, 1fr);
        justify-items: start;
    }
}

/* =========================================
   CERTIFICATION SECTION
========================================= */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 40px; margin-top: 20px; }
.cert-card { background: linear-gradient(145deg, rgba(0, 119, 255, 0.03), rgba(0, 255, 255, 0.05)); border: 1px solid rgba(0, 255, 255, 0.15); border-radius: 16px; padding: 35px; transition: all 0.4s ease; backdrop-filter: blur(10px); display: flex; flex-direction: column; height: 100%; position: relative;}
.cert-card:hover { border-color: var(--cyan); box-shadow: 0 10px 40px rgba(0, 255, 255, 0.15); transform: translateY(-8px); }
.cert-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.cert-icon-wrapper { width: 60px; height: 60px; background: rgba(0, 255, 255, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 255, 255, 0.3); }
.cert-icon-wrapper i { font-size: 1.8rem; color: var(--cyan); }
.cert-badge { background: rgba(0, 255, 255, 0.08); color: var(--cyan); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(0, 255, 255, 0.2); box-shadow: 0 0 10px rgba(0, 255, 255, 0.1); display: flex; align-items: center; gap: 6px; }
.cert-badge i { font-size: 1rem; }
.cert-content { flex-grow: 1; }
.cert-content h3 { color: var(--text-white); font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 10px; }
.cert-issuer { display: inline-block; color: var(--light-blue); font-size: 0.95rem; font-weight: 500; margin-bottom: 15px; background: rgba(135, 206, 235, 0.1); padding: 4px 10px; border-radius: 4px; }
.cert-content p { color: var(--text-gray); font-size: 1rem; line-height: 1.7; margin-bottom: 30px; }
.cert-footer { margin-top: auto; }

.btn-view-cert { width: 100%; padding: 14px; background: transparent; color: var(--cyan); border: 2px solid var(--cyan); border-radius: 8px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 8px; transition: color 0.6s ease; }
.btn-view-cert::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--deep-blue); z-index: -1; transition: width 0.6s ease; }
.btn-view-cert:hover::before { width: 100%; }
.btn-view-cert:hover { color: #fff; border-color: var(--deep-blue); box-shadow: 0 0 20px rgba(0, 119, 255, 0.6); }
.btn-view-cert:active { transform: scale(0.95); transition: 0.1s ease; }

.modal { display: none; position: fixed; z-index: 1000; padding-top: 80px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); }
.modal-content { margin: auto; display: block; width: 80%; max-width: 900px; border: 3px solid var(--cyan); border-radius: 8px; box-shadow: 0 0 30px rgba(0, 255, 255, 0.3); animation: zoomIn 0.3s ease; }
#certCaption { margin: auto; display: block; width: 80%; max-width: 900px; text-align: center; color: var(--cyan); padding: 20px 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.close-modal { position: absolute; top: 30px; right: 50px; color: #fff; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close-modal:hover, .close-modal:focus { color: var(--cyan); text-decoration: none; }

/* =========================================
   PROJECTS SECTION
========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
#projects-container { perspective: 2000px; } 

.project-panel { background: #0f111a; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 0; display: flex; flex-direction: column; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s ease; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); transform-style: preserve-3d; }
.project-panel:hover:not(.active-panel) { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 255, 255, 0.15); border-color: rgba(0, 255, 255, 0.3); }

.project-image-wrapper { width: 100%; height: 220px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.project-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-panel:hover .project-image-wrapper img { transform: scale(1.08); }

.panel-content { padding: 25px 25px 15px; }
.panel-content h3 { color: var(--text-white); font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 12px; }
.panel-content p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0; }
.panel-footer { padding: 0 25px 25px; margin-top: auto; }

.project-actions { display: flex; gap: 12px; width: 100%; }
.project-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 15px; border-radius: 30px; text-decoration: none; font-weight: 700; transition: all 0.3s; font-family: var(--font-body); font-size: 0.95rem; }
.project-btn i { font-size: 1.1rem; }

.btn-github { background: #ffffff; color: #000000; border: 2px solid #ffffff; }
.btn-github:hover { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.btn-live { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }
.btn-live:hover { background: var(--cyan); color: #000; box-shadow: 0 0 15px var(--cyan); }

.project-panel.active-panel { transform: scale(1.04) translateY(-15px) translateZ(50px); border-color: var(--cyan); box-shadow: 0 20px 60px rgba(0, 255, 255, 0.4), 0 0 15px var(--cyan); z-index: 10; }
.project-panel.active-panel .btn-github { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.project-panel.active-panel .btn-live { background: transparent; color: #fff; border-color: #fff; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch;}
.form-wrapper { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 255, 255, 0.15); padding: 40px; border-radius: 12px; backdrop-filter: blur(5px); display: flex; flex-direction: column;}
#contactForm { display: flex; flex-direction: column; height: 100%;}
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 0.9rem; color: var(--text-gray); margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500;}
.input-box { position: relative; }
.input-box i { position: absolute; left: 15px; top: 16px; color: var(--cyan); font-size: 1.2rem; }
.input-box input, .input-box textarea { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 6px; padding: 16px 15px 16px 45px; color: var(--text-white); font-family: var(--font-body); transition: 0.3s; font-size: 1rem;}
.input-box input:focus, .input-box textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 15px rgba(0,255,255,0.2); }
.input-group:nth-child(3) { flex-grow: 1; }
.input-box textarea { resize: none; height: 100%; min-height: 160px;}

.btn-submit { width: 100%; padding: 16px; background: linear-gradient(90deg, #0077ff, #00ffff); color: #000; border: none; border-radius: 6px; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: auto; transition: 0.3s;}
.btn-submit:hover { box-shadow: 0 0 25px rgba(0, 255, 255, 0.5); transform: translateY(-2px); }

.info-wrapper { display: flex; flex-direction: column; justify-content: center; }
.info-wrapper h3 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--text-white); margin-bottom: 15px; }
.info-desc { color: var(--text-gray); margin-bottom: 40px; line-height: 1.7; font-size: 1.05rem;}
.info-list { display: flex; flex-direction: column; gap: 30px; margin-bottom: 45px; }
.interactive-item { display: flex; align-items: center; gap: 20px; padding: 15px; border-radius: 8px; transition: 0.3s; border: 1px solid transparent; cursor: pointer;}
.interactive-item:hover { background: rgba(0, 255, 255, 0.05); border-color: rgba(0, 255, 255, 0.3); transform: translateX(10px); box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);}
.interactive-item .icon { width: 60px; height: 60px; border-radius: 50%; background: transparent; border: 1px solid var(--cyan); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.5rem; transition: 0.3s;}
.interactive-item:hover .icon { background: var(--cyan); color: #000; box-shadow: 0 0 20px var(--cyan); }
.interactive-item h4 { color: var(--text-white); font-size: 1.3rem; margin-bottom: 5px; }
.interactive-item p { color: var(--text-gray); font-size: 1.05rem; transition: 0.3s;}
.interactive-item:hover p { color: var(--cyan); }

/* FOOTER & SOCIAL ICONS */
footer { border-top: 1px solid var(--border-blue); padding: 80px 0 60px; background: rgba(0,0,0,0.7); }
.footer-icons-box { display: flex; gap: 25px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap;}
.footer-social-btn { width: 75px; height: 75px; border-radius: 50%; border: 2px solid var(--cyan); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 2.2rem; text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); background: rgba(0, 255, 255, 0.05); }
.footer-social-btn:hover { background: var(--cyan); color: #000; box-shadow: 0 0 30px var(--cyan); transform: translateY(-8px); }
.footer-social-btn:active { transform: scale(0.8); background: #fff; color: var(--deep-blue); box-shadow: 0 0 45px #fff; border-color: #fff; transition: 0.1s; }

.centered-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.golden-amber-glow { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--amber-warm); text-shadow: 0 0 20px rgba(255, 191, 0, 0.6); margin-bottom: 15px; letter-spacing: 1px;}
.golden-amber-glow i { font-size: 2.2rem; margin-left: 10px; color: var(--amber-warm);}
.copyright { color: var(--text-gray); font-size: 1.1rem; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 992px) {
    /* Changed height to auto to prevent text overlapping with image on smaller screens */
    .hero { height: auto; min-height: 100vh; padding: 130px 0 60px; } 
    .hero-content { flex-direction: column; text-align: center; padding-top: 0; }
    .hero-visual { margin-top: 60px; width: 100%; } 
    .btn-group, .hero-socials { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-wrapper { order: 2; height: auto; }
    .info-wrapper { order: 1; margin-bottom: 40px;}
    .name { font-size: 4rem; }
    .golden-amber-glow { font-size: 1.5rem; }
    .about-centered-text { padding: 30px 20px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .section-title { font-size: 2.3rem; } /* Scaled down for mobile */
    .typing-container { font-size: 1.5rem; }
    .skills-circle-container { gap: 20px; }
    .skill-circle { width: 80px; height: 80px; }
    .skill-circle i { font-size: 2.8rem; }
    .cert-grid { grid-template-columns: 1fr; }
    .modal-content { width: 95%; }
    
    /* Replaced fixed width with max-width so it auto-shrinks without causing horizontal scroll */
    .hero-3d-visual, .profile-glow { width: 100%; max-width: 350px; height: 450px; margin: 0 auto; }
    .profile-frame { width: 100%; max-width: 300px; height: 400px; margin: 0 auto; } 
    .about-3d-visual, .about-profile-glow, .rings-outer-wrapper { width: 100%; max-width: 400px; height: 400px; margin: 0 auto; }
    .about-profile-frame { width: 100%; max-width: 350px; height: 350px; margin: 0 auto; }
    .project-actions { flex-direction: column; } 
}

@media (max-width: 480px) {
    .name { font-size: 2.8rem; }
    .grid-3 { grid-template-columns: 1fr; } /* Force 1 column on tiny phones */
    
    /* Stack buttons full width for easier tapping on mobile */
    .btn-group { flex-direction: column; width: 100%; } 
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    
    /* Scale down 3D visuals further for very small screens */
    .hero-3d-visual, .profile-glow { max-width: 300px; height: 380px; }
    .profile-frame { max-width: 250px; height: 330px; }
    .about-3d-visual, .about-profile-glow, .rings-outer-wrapper { max-width: 300px; height: 300px; }
    .about-profile-frame { max-width: 260px; height: 260px; }
}
/* ===== REMOVE OUTER DOUBLE BOXES (ABOUT SECTION FIX) ===== */

#about {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#about .container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#about .about-center-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* KEEP ONLY ONE CLEAN CARD */
.about-centered-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;

    background: rgba(4, 8, 20, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 45px;
    border-radius: 20px;

    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}

/* OPTIONAL: PREMIUM HOVER EFFECT */
.about-centered-text:hover {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.35);
    transform: translateY(-5px);
    transition: 0.4s ease;
}
/* ===== ABOUT STATS SECTION ===== */

.about-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px 25px;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.25);
    min-width: 130px;
    transition: all 0.3s ease;
}

.stat-item h3 {
    font-size: 30px;
    color: #00ffff;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-item p {
    font-size: 14px;
    color: #ccc;
    letter-spacing: 1px;
}

/* Hover Effect */
.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}
/* ===== FIX 1: SLOGAN SAME WIDTH AS ABOUT BOX ===== */

.slogan-box {
    max-width: 850px;   /* same as about box */
    width: 100%;
    margin: 40px auto 0 auto;  /* center align */
}


/* ===== FIX 2: STATS BOX SIZE INCREASE ===== */

.about-stats {
    gap: 50px;   /* more spacing */
}

.stat-item {
    padding: 25px 35px;   /* increased size */
    min-width: 160px;     /* bigger width */
    border-radius: 15px;
}

.stat-item h3 {
    font-size: 36px;   /* bigger number */
}

.stat-item p {
    font-size: 16px;   /* slightly bigger text */
}
/* ===== FIX FIREBASE POSITION (LEFT UNDER HTML) ===== */

/* change layout to grid ONLY for skills */
.skills-circle-container {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr);
    justify-items: center;
    gap: 50px;
}

/* move firebase to 2nd row, first column */
.brand-firebase {
    grid-column: 1;
    grid-row: 2;
}