@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

/* --- Variables & Reset --- */
:root {
    --bg-color: #0f0f16;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary-color: #00d4ff; /* Neon Cyan */
    --secondary-color: #7000ff; /* Deep Purple */
    --text-color: #e5e5e5;
    --text-muted: #a0a0a0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Lexend', sans-serif;
    cursor: auto; /* Default for mobile */
}

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

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1170px;
    margin: auto;
    padding: 0 20px;
}

/* =========================================
   CUSTOM CURSOR (Desktop Only)
   ========================================= */
.cursor-dot, 
.cursor-outline {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

@media (min-width: 992px) {
    /* Hide default cursor only on desktop */
    body, a, button, input, textarea, .btn {
        cursor: none;
    }

    .cursor-dot {
        display: block;
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
    }

    .cursor-outline {
        display: block;
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary-color);
        /* Slight transition for the 'drag' effect */
        transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s;
    }

    /* Hover effect */
    body.hovering .cursor-outline {
        width: 60px;
        height: 60px;
        background-color: rgba(0, 212, 255, 0.1);
        border-color: transparent;
    }
}

/* =========================================
   BACKGROUND ANIMATIONS
   ========================================= */

/* 1. Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--secondary-color); animation: float 5s infinite alternate; }
.blob-2 { bottom: 10%; right: -10%; width: 400px; height: 400px; background: var(--primary-color); animation: float 6s infinite alternate-reverse; }
.blob-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: #ff0055; opacity: 0.2; animation: float 4s infinite alternate; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* 2. Floating Infinity Icons */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
    pointer-events: none;
}

.icon-float {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    font-size: 40px;
    animation: floatInfinity 5s infinite ease-in-out alternate;
}

.icon-1 { top: 15%; left: 10%; font-size: 60px; animation-duration: 6s; color: rgba(0, 212, 255, 0.1); }
.icon-2 { top: 20%; right: 15%; font-size: 50px; animation-duration: 6s; animation-delay: 1s; }
.icon-3 { top: 50%; left: 5%; font-size: 45px; animation-duration: 6s; }
.icon-4 { bottom: 20%; right: 10%; font-size: 55px; animation-duration: 6s; animation-delay: 2s; }
.icon-5 { bottom: 10%; left: 20%; font-size: 35px; animation-duration: 6s; }
.icon-6 { top: 10%; left: 50%; font-size: 40px; animation-duration: 6s; }

@keyframes floatInfinity {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(10deg) scale(1.1); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* =========================================
   UI COMPONENTS
   ========================================= */

/* Glassmorphism Utility */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

/* Header */
.header-area {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: 0.3s;
}

.header-area.sticky {
    background: rgba(15, 15, 22, 0.85);
    backdrop-filter: blur(15px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.logo .highlight { color: var(--primary-color); }
.navbar { display: flex; gap: 30px; }
.navbar a { font-size: 16px; font-weight: 500; position: relative; opacity: 0.8; }
.navbar a:hover, .navbar a.active { color: var(--primary-color); opacity: 1; }
.navbar a::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--primary-color); bottom: -5px; left: 0; transition: 0.3s; }
.navbar a:hover::after, .navbar a.active::after { width: 100%; }
.menu_icon { display: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Home Section */
.home-area { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.home-content { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.profile-text { max-width: 600px; }
.greet { background: rgba(0, 212, 255, 0.1); color: var(--primary-color); padding: 5px 15px; border-radius: 20px; display: inline-block; margin-bottom: 15px; font-weight: 500; }
.profile-text h1 { font-size: 60px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.profile-text h2 { font-size: 32px; color: var(--text-color); margin-bottom: 20px; }
.typed-text { color: var(--primary-color); }
.profile-text p { color: var(--text-muted); font-size: 18px; margin-bottom: 30px; }

/* Buttons & Social */
.btn-group { display: flex; gap: 15px; margin-bottom: 30px; }
.btn { padding: 12px 30px; border-radius: 50px; font-weight: 600; border: 2px solid transparent; }
.primary-btn { background: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.primary-btn:hover { background: transparent; border-color: var(--primary-color); color: #fff; box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
.secondary-btn { border-color: #fff; color: #fff; }
.secondary-btn:hover { background: #fff; color: #000; }
.social a { display: inline-flex; justify-content: center; align-items: center; width: 45px; height: 45px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; margin-right: 15px; color: var(--text-color); font-size: 18px; }
.social a:hover { background: var(--primary-color); color: #000; border-color: var(--primary-color); transform: translateY(-3px); }

/* Photo */
.profile-photo { 
  position: relative; 
  width: 400px; 
  height: 400px; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  
}
.photo-container { width: 350px; height: 350px; border-radius: 50%; overflow: hidden; border: 5px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 50px rgba(0, 212, 255, 0.2); position: relative; z-index: 2; background: #202020; }
.photo-container img { width: 100%; height: 100%; object-fit: cover; }

/* Sections Common */
.section-padding { padding: 100px 0; }
.section-heading { font-size: 40px; margin-bottom: 20px; color: var(--primary-color); }
.section-header.center { text-align: center; margin-bottom: 60px; }
.section-header h4 { font-size: 40px; color: var(--primary-color); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); }

/* About & Timeline */
.about-wrapper { display: flex; flex-direction: column; gap: 30px; }
@media(min-width: 768px) {
    .about-wrapper { flex-direction: row; align-items: center; }
    .about-content { flex: 1.5; padding-right: 30px; }
    .about-skills { flex: 1; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 30px; }
}
.about-skills ul li { margin-bottom: 15px; display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px; }
.about-skills span { color: var(--primary-color); font-weight: 600; }

.timeline-wrapper { display: flex; flex-wrap: wrap; gap: 40px; }
.timeline-column { flex: 1; min-width: 300px; }
.column-title { font-size: 24px; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.timeline-box { border-left: 2px solid var(--primary-color); padding-left: 30px; }
.timeline-item { position: relative; margin-bottom: 30px; background: rgba(255, 255, 255, 0.03); }
.timeline-item::before { content: ''; position: absolute; left: -39px; top: 25px; width: 16px; height: 16px; background: var(--bg-color); border: 2px solid var(--primary-color); border-radius: 50%; }
.timeline-item .date { font-size: 14px; color: var(--primary-color); margin-bottom: 10px; display: block; }
.timeline-item h3 { font-size: 20px; margin-bottom: 5px; }
.timeline-item p { color: var(--text-muted); font-size: 15px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { text-align: left; position: relative; overflow: hidden; }
.card-icon { width: 50px; height: 50px; background: rgba(0, 212, 255, 0.1); color: var(--primary-color); display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 22px; margin-bottom: 20px; }
.project-card h4 { font-size: 22px; margin-bottom: 10px; }
.project-card p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.tags span { font-size: 12px; background: rgba(255, 255, 255, 0.05); padding: 5px 12px; border-radius: 20px; margin-right: 5px; color: #fff; }

/* Contact */
.contact-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form .input-group { display: flex; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 15px; color: #fff; border-radius: 8px; outline: none; margin-bottom: 20px; }
.contact-form textarea { margin-bottom: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); background: rgba(255, 255, 255, 0.08); }
.submit-btn { margin-top: 20px; width: 100%; cursor: pointer; }
#msg { display: block; margin-top: 15px; text-align: center; color: var(--primary-color); }

/* Footer */
.footer { padding: 30px; text-align: center; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); }
.footer span { color: var(--primary-color); }

/* Responsive */
@media (max-width: 991px) {
    .home-content { flex-direction: column-reverse; text-align: center; justify-content: center; gap: 50px; }
    .profile-photo { width: 300px; height: 300px; }
    .photo-container { width: 280px; height: 280px; }
    .profile-text h1 { font-size: 40px; }
    .btn-group { justify-content: center; }
    .menu_icon { display: block; z-index: 101; }
    .navbar { position: fixed; top: 0; right: -100%; width: 250px; height: 100vh; background: rgba(15, 15, 22, 0.95); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; transition: 0.4s ease; border-left: 1px solid rgba(255,255,255,0.1); }
    .navbar.active { right: 0; }
    .contact-form .input-group { flex-direction: column; gap: 0; }
}
@media (max-width: 480px) { .profile-text h1 { font-size: 32px; } .section-heading { font-size: 32px; } }
