/* --- 1. Global Setup & Variables --- */
:root {
    --primary: #00ff88; 
    --accent: #ff0000;
    --bg: #030303;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(0, 255, 136, 0.2);
    --text: #ffffff;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

#particles-js {
    position: fixed; width: 100%; height: 100%; z-index: -1;
}

/* --- 2. Navbar Design --- */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 10%; border-bottom: 1px solid var(--border);
}

#nav-links { display: flex; list-style: none; justify-content: center; }
#nav-links li { margin: 0 15px; }
#nav-links li a {
    text-decoration: none; color: white; font-weight: 500;
    text-transform: uppercase; font-size: 13px; transition: 0.3s;
}
#nav-links li a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.menu-btn { display: none; }

/* --- 3. Hero Section (Updated: No Box) --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 10% 40px;
}
.hero-container { display: flex; width: 100%; align-items: center; gap: 50px; }
.hero-left { flex: 1; text-align: center; }

/* Hero Right: Box and Border removed as requested */
.hero-right.no-box { 
    flex: 1.2; 
    background: transparent; 
    padding: 20px; 
    border: none; 
    backdrop-filter: none; 
}

.profile-wrapper { position: relative; width: 220px; height: 220px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; }
.profile-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; z-index: 2; border: 4px solid var(--bg); }
.rotating-ring { position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 5px solid transparent; border-top-color: var(--primary); border-bottom-color: var(--accent); animation: spin 3s linear infinite; z-index: 1; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.name { font-size: 3.5rem; margin: 10px 0; color: white; }
.bio { font-size: 1.1rem; line-height: 1.8; color: #ddd; margin-bottom: 25px; }
#typing-effect { color: var(--primary); text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }

/* Social Icons Fixed */
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
    width: 45px; height: 45px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; transition: var(--transition);
}
.social-icons a:hover {
    background: var(--primary); color: #000;
    transform: translateY(-5px); box-shadow: 0 0 20px var(--primary);
    border-color: var(--primary);
}

/* --- 4. About Image (Updated: No Extra Color/Border) --- */
.image-divider { text-align: center; padding: 40px 10%; }
.about-pic.no-border {
    max-width: 100%; height: auto; border-radius: 20px;
    border: none; box-shadow: none; /* Removed all borders and colors */
}

/* --- 5. 3D Services & Education Cards --- */
section { padding: 80px 10%; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 2px; }
.section-title span { color: var(--primary); text-shadow: 0 0 15px var(--primary); }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.interactive-box {
    background: var(--card-bg); padding: 40px; border-radius: 20px;
    border: 1px solid var(--border); text-align: center; transition: var(--transition);
    cursor: pointer; position: relative;
    transform-style: preserve-3d;
}
.interactive-box:hover {
    transform: translateY(-10px) rotateX(10px) rotateY(10px);
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 255, 136, 0.1);
}
.interactive-box i { font-size: 45px; color: var(--primary); margin-bottom: 20px; }

/* --- 6. 3D Skills Section --- */
.skills-3d-container { max-width: 800px; margin: 0 auto; }
.skill-3d-card { margin-bottom: 35px; }
.skill-name { margin-bottom: 10px; font-weight: 600; letter-spacing: 1px; }
.skill-bar-3d { 
    height: 15px; background: #111; border-radius: 20px; position: relative; 
    border: 1px solid #222; box-shadow: inset 0 0 10px #000;
}
.fill-3d {
    height: 100%; background: linear-gradient(90deg, var(--primary), #0088ff);
    border-radius: 20px; width: 0; transition: width 2s ease-in-out;
    position: relative; box-shadow: 0 0 20px var(--primary);
}
.fill-3d span { position: absolute; right: 0; top: -30px; color: var(--primary); font-weight: bold; }

/* --- 7. Projects Section (Slider) --- */
.project-container {
    display: flex; align-items: center; gap: 40px; margin-bottom: 80px;
    background: var(--card-bg); padding: 40px; border-radius: 30px; border: 1px solid var(--border);
}
.project-container.reverse { flex-direction: row-reverse; }
.project-info { flex: 1; }
.project-info h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.project-tags { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px;}
.project-tags li { font-size: 0.85rem; color: var(--primary); background: rgba(0,255,136,0.1); padding: 5px 12px; border-radius: 5px; }

.project-visual { flex: 1; overflow: hidden; border-radius: 20px; border: 2px solid var(--border); }
.swiper { width: 100%; height: 350px; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.platform-logos { font-size: 35px; display: flex; gap: 20px; margin-top: 20px; }
.platform-logos i { transition: 0.3s; cursor: pointer; }
.platform-logos i:hover { color: var(--primary); transform: scale(1.2); }

/* --- 8. Music & Books --- */
.spotify-container { border-radius: 20px; overflow: hidden; border: 1px solid var(--primary); box-shadow: 0 0 30px rgba(0,255,136,0.2); }
.book-card img { width: 100%; max-width: 180px; height: 260px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; border: 1px solid var(--border); }

/* --- 9. Organisations --- */
.org-img-wrapper { width: 100px; height: 100px; margin: 0 auto 15px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); }
.org-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* --- 10. Contact Form & Success Messages --- */
.contact-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.form-group { display: flex; gap: 15px; }
input, textarea {
    width: 100%; padding: 15px; margin-bottom: 20px; background: #0a0a0a;
    border: 1px solid var(--border); color: white; border-radius: 10px; outline: none; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0,255,136,0.3); }

.send-btn {
    background: var(--primary); color: #000; padding: 15px 40px; border: none;
    border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 1rem; transition: var(--transition);
    display: flex; align-items: center; gap: 10px; justify-content: center;
}
.send-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--primary); }
.send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#form-status.success { color: var(--primary); display: block; }
#form-status.error { color: var(--accent); display: block; }

.contact-details p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-details i { color: var(--primary); margin-right: 10px; width: 25px; }

/* --- 11. Buttons & Utility --- */
.btn-link, .btn-download {
    background: var(--primary); color: #000; padding: 12px 25px; border-radius: 50px;
    text-decoration: none; font-weight: bold; transition: var(--transition); display: inline-block;
}
.btn-link:hover, .btn-download:hover { box-shadow: 0 0 20px var(--primary); transform: translateY(-3px); }

/* --- 12. Mobile Responsive Fixes --- */
@media (max-width: 992px) {
    .navbar { padding: 15px 5%; }
    .hero-container { flex-direction: column; text-align: center; gap: 30px; }
    .hero-right.no-box { text-align: center; }
    .social-icons { justify-content: center; }
    .name { font-size: 2.5rem; }
    
    .project-container, .project-container.reverse { flex-direction: column; text-align: center; }
    .contact-card { grid-template-columns: 1fr; }
    
    .menu-btn { display: block; font-size: 25px; cursor: pointer; color: var(--primary); float: right; }
    #nav-links { 
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; 
        width: 100%; background: rgba(0,0,0,0.95); padding: 20px; border-bottom: 1px solid var(--border);
    }
    #nav-links.active { display: flex; }
    #nav-links li { margin: 10px 0; }
    .form-group { flex-direction: column; gap: 0; }
}

footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); margin-top: 50px; color: #777; }
