/* --- Variables & Reset --- */
:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* FIX: Ensure no text decoration on anything */
a, i, span { text-decoration: none !important; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 100px;
    
    /* ANTI-COPY / ANTI-SELECT */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow typing in forms */
input, textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- Animated Background --- */
.background-animation {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}
.blob-1 { width: 400px; height: 400px; background: #4f46e5; top: -100px; left: -100px; }
.blob-2 { width: 300px; height: 300px; background: #0ea5e9; bottom: 0; right: 0; animation-delay: -5s; }
.blob-3 { width: 250px; height: 250px; background: #059669; top: 40%; left: 40%; animation-delay: -2s; opacity: 0.2; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

/* --- Glass Utility --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --- Navigation & Brand --- */
.brand-logo {
    position: fixed; top: 20px; left: 5%;
    padding: 10px 20px; border-radius: 30px;
    font-size: 1.2rem; font-weight: 700; color: white;
    text-decoration: none; z-index: 1000;
}
.dot { color: var(--accent); }

.bottom-nav {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; padding: 15px 25px; border-radius: 50px; z-index: 1000; transition: 0.3s;
}
.nav-item {
    color: var(--text-secondary); font-size: 1.2rem; padding: 10px;
    border-radius: 50%; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px;
}
.nav-item:hover, .nav-item.active {
    color: white; background: var(--accent); transform: translateY(-10px) scale(1.1); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}
.tooltip {
    position: absolute; top: -40px; background: rgba(0,0,0,0.8); color: white;
    padding: 4px 8px; border-radius: 5px; font-size: 0.8rem; opacity: 0; pointer-events: none;
    transition: 0.2s; white-space: nowrap;
}
.nav-item:hover .tooltip { opacity: 1; top: -50px; }

/* --- Hero --- */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; position: relative; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; margin-bottom: 0.5rem; color: #ffffff; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.greeting { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.role-wrapper { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--text-secondary); margin-bottom: 1.5rem; }
.description { max-width: 600px; margin: 0 auto 2.5rem; color: #cbd5e1; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 0.9rem 2.2rem; border-radius: 50px; font-weight: 600; text-decoration: none; transition: 0.3s; }
.primary { background: var(--accent); color: white; }
.primary:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
.secondary { border: 1px solid var(--text-secondary); color: white; }
.secondary:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ADDED: Scroll Indicator (Positioned 110px from bottom to clear menu) */
.scroll-indicator { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); opacity: 0.6; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--text-secondary); border-radius: 20px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--text-secondary); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* --- Sections --- */
.section { padding: 4rem 5% 2rem 5%; }
.section-title { font-size: 2.2rem; margin-bottom: 3rem; text-align: center; position: relative; }
.section-title::after { content: ''; width: 60px; height: 4px; background: var(--accent); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-radius: 2px; }

/* --- About Section Styles --- */
.about-card { padding: 3rem; border-radius: 20px; border: 1px solid var(--glass-border); background: rgba(30, 41, 59, 0.4); }
.about-content { display: flex; flex-direction: column; gap: 2rem; }
.about-text h3 { margin-bottom: 1rem; color: var(--accent); }
.about-text p { margin-bottom: 1rem; color: var(--text-secondary); }
.about-btns { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.skills-box h4 { margin-bottom: 1rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skills-grid span {
    background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; transition: 0.3s;
    display: flex; align-items: center;
}
.skills-grid span i { margin-right: 8px; color: var(--accent); }
.skills-grid span:hover { background: var(--accent); color: white; transform: translateY(-2px); }
.skills-grid span:hover i { color: white; }

/* --- Experience --- */
.timeline { border-left: 2px solid var(--glass-border); margin-left: 10px; }
.timeline-item { margin-bottom: 2rem; margin-left: 2rem; position: relative; }
.timeline-dot { width: 14px; height: 14px; background: var(--accent); border-radius: 50%; position: absolute; left: -39px; top: 20px; box-shadow: 0 0 10px var(--accent); }
.timeline-content { padding: 1.5rem; border-radius: 16px; transition: 0.4s ease; border: 1px solid transparent; }
.timeline-content:hover { transform: translateX(10px) translateY(-5px); background: rgba(30, 41, 59, 0.9); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.job-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.company-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent); }
.badge { margin-left: auto; font-size: 0.8rem; background: rgba(59, 130, 246, 0.2); color: var(--accent); padding: 4px 10px; border-radius: 20px; }

/* --- Projects --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card { border-radius: 16px; overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; background: rgba(30, 41, 59, 0.4); border: 1px solid var(--glass-border); }
.card-image { height: 200px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-bg-1 { background: linear-gradient(135deg, #059669, #047857); }
.project-bg-2 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.project-bg-3 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.card-logo-overlay { font-size: 3rem; color: rgba(255,255,255,0.2); transition: 0.5s; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); display: flex; justify-content: center; align-items: center; gap: 1rem; opacity: 0; transition: 0.5s; transform: translateY(20px); }
.project-card:hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: var(--accent); }
.project-card:hover .overlay { opacity: 1; transform: translateY(0); }
.project-card:hover .card-logo-overlay { transform: scale(1.5) rotate(10deg); opacity: 0.1; }
.icon-link { color: white; font-size: 1.5rem; padding: 10px; transition: 0.3s; }
.icon-link:hover { color: var(--accent); transform: scale(1.2); }
.card-info { padding: 1.5rem; z-index: 2; position: relative; background: var(--bg-color); }
.tags span { font-size: 0.75rem; background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 20px; margin-right: 5px; color: var(--text-secondary); }

/* --- Gallery --- */
.masonry-grid { column-count: 3; column-gap: 1.5rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1.5rem; overflow: hidden; border-radius: 12px; }
.masonry-item img { width: 100%; display: block; border-radius: 12px; filter: grayscale(100%) contrast(80%); transition: all 0.5s ease; transform: scale(1); cursor: pointer; }
.masonry-item:hover img { filter: grayscale(0%) contrast(100%); transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* --- Contact & Footer --- */
.contact-box { display: flex; flex-wrap: wrap; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); transition: 0.3s; }
.contact-box:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.contact-left { flex: 1; padding: 3rem; background: rgba(59, 130, 246, 0.08); min-width: 300px; }
.contact-right { flex: 1.5; padding: 3rem; min-width: 300px; }
.icon-circle { width: 40px; height: 40px; background: rgba(59, 130, 246, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-right: 10px; }
.detail { display: flex; align-items: center; margin-bottom: 1rem; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }
.input-group input, .input-group textarea { width: 100%; padding: 1rem; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); border-radius: 8px; color: white; outline: none; margin-bottom: 1rem; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.4); }
.full-width { width: 100%; cursor: pointer; border: none; }
footer { text-align: center; padding: 2rem 1rem 6rem 1rem; color: var(--text-secondary); border-top: 1px solid var(--glass-border); }

/* Animation Utils */
.hidden { opacity: 0; transform: translateY(40px); transition: 1s all cubic-bezier(0.165, 0.84, 0.44, 1); }
.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .bottom-nav { width: 90%; justify-content: space-between; padding: 10px 20px; bottom: 20px; }
    .tooltip { display: none; }
    .masonry-grid { column-count: 1; }
    .contact-box { flex-direction: column; }
    .contact-left, .contact-right { padding: 2rem; }
}
