@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* --- Reset & Base Settings --- */
*, *::before, *::after { 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    margin: 0; padding: 0; 
    font-family: 'Inter', sans-serif; 
    background: #0f0f0f; 
    color: #e0e0e0; 
    overflow-x: hidden; 
    padding-top: 80px;
    position: relative;
}

/* --- Animated Glow Background --- */
body::before {
    content: ""; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 234, 0.08), transparent 50%);
    z-index: -1; 
    animation: glowPulse 8s infinite ease-in-out;
}

@keyframes glowPulse { 
    0%, 100% { opacity: 0.5; transform: scale(1); } 
    50% { opacity: 1; transform: scale(1.1); } 
}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; background: rgba(15, 15, 15, 0.95); 
    backdrop-filter: blur(15px); z-index: 2000; padding: 1rem 0; 
    border-bottom: 1px solid rgba(0,255,234,0.1);
}
.nav-container {
    max-width: 1100px; margin: 0 auto; display: flex; 
    justify-content: space-between; align-items: center; padding: 0 1.5rem;
}
.nav-logo { font-size: 1.6rem; font-weight: 900; color: #fff; text-decoration: none; }
.nav-logo span { color: #00ffea; }
.nav-menu { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.nav-menu a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; }
.nav-menu a:hover { color: #00ffea; text-shadow: 0 0 10px #00ffea; }
.menu-toggle { display: none; color: #00ffea; font-size: 1.8rem; cursor: pointer; }

/* --- Containers --- */
.container { max-width: 1100px; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
.section-title { font-size: 2.2rem; color: #00ffea; margin-bottom: 2.5rem; text-transform: uppercase; letter-spacing: 2px; }

/* --- Hero Section --- */
.profile-img {
    width: 160px; height: 160px; border-radius: 50%; border: 3px solid #00ffea; 
    object-fit: cover; box-shadow: 0 0 20px rgba(0,255,234,0.4); margin-bottom: 20px;
}
.hero h1 { font-size: 2.8rem; margin: 0; letter-spacing: 2px; color: #fff; }
.tagline { color: #9e9e9e; font-size: 1.1rem; margin: 10px 0; }
.typing-box { min-height: 60px; display: flex; align-items: center; justify-content: center; }

/* --- Social Icons --- */
.social-links { display: flex; gap: 1.5rem; margin-top: 25px; justify-content: center; flex-wrap: wrap; }
.social-links a { color: #00ffea; font-size: 1.8rem; transition: 0.3s; }
.social-links a:hover { transform: translateY(-5px); color: #fff; }

/* --- Skills Section --- */
.skill-category-title {
    color: #fff; font-size: 1.3rem; margin: 40px 0 20px;
    border-bottom: 2px solid rgba(0, 255, 234, 0.2); display: inline-block; padding-bottom: 5px;
}
.skills-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 20px;
}
.skill-card { 
    background: #1a1a1a; width: 150px; padding: 25px; 
    border-radius: 15px; border: 1px solid #333; display: flex; 
    flex-direction: column; align-items: center; transition: 0.3s;
}
.skill-card i { font-size: 2.5rem; color: #00ffea; margin-bottom: 12px; }
.skill-card span { font-weight: 600; font-size: 0.9rem; color: #fff; }

/* --- Projects Section --- */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    justify-content: center; 
    margin-top: 40px; 
}
.project-card { 
    background: #1a1a1a; padding: 40px 25px; border-radius: 20px; border: 1px solid #333; 
    border-top: 5px solid #00ffea; display: flex; flex-direction: column; 
    align-items: center; text-align: center; transition: 0.4s; height: 100%;
}
.project-card:hover { transform: translateY(-10px); border-color: #00ffea; }
.project-icon { font-size: 3.5rem; color: #00ffea; margin-bottom: 20px; }
.project-card p { flex-grow: 1; color: #bbb; font-size: 0.95rem; }

.btn-mini { 
    margin-top: 20px; color: #00ffea; text-decoration: none; 
    border: 1px solid #00ffea; padding: 8px 20px; border-radius: 5px; transition: 0.3s;
}
.btn-mini:hover { background: #00ffea; color: #121212; }

/* --- Tech Status & Live Clock Gadget --- */
.tech-status-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 25px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(0, 255, 234, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 15px rgba(0, 255, 234, 0.1);
}

.status-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 12px; height: 12px;
    background-color: #00ffea;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffea;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

#status-text {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.clock-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #333;
    padding-left: 30px;
}

#live-clock {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.8rem;
    color: #00ffea;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

.location {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* --- Footer --- */
footer { text-align: center; padding: 3rem 0; border-top: 1px solid #222; margin-top: 5rem; color: #555; }
.owner { color: #00ffea; font-weight: bold; }

/* --- Mobile View Optimization --- */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: -100vh; left: 0; width: 100%; flex-direction: column; 
        align-items: center; background: #0f0f0f; transition: 0.5s; padding: 50px 0;
    }
    .nav-menu.active { top: 70px; }

    .skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .skill-card { width: 100%; padding: 20px 10px; }

    .projects-grid { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 2rem; }
    .profile-img { width: 130px; height: 130px; }

    /* Clock Gadget Mobile Fix */
    .tech-status-container {
        flex-direction: column;
        gap: 20px;
        margin: 40px 20px;
    }
    .clock-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #333;
        padding-top: 20px;
    }
    #live-clock { font-size: 1.5rem; }
}