/* ==========================================================================
   Existing Styles Stay Here...
   ========================================================================== */

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

body {
    background: #07111f;
    color: #fff
}

.navbar {
    position: fixed;
    width: 100%;
    padding: 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Added for vertical alignment */
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    z-index: 1000
}

.navbar ul {
    display: flex;
    gap: 25px;
    list-style: none
}

.navbar a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #8b7bff;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #07111F;
    background: linear-gradient(0deg,rgba(7, 17, 31, 1) 0%, rgba(0, 0, 0, 1) 100%);
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
}

.hero h2 {
    color: #8b7bff;
    margin: 10px 0;
    font-size: 1.5rem;
}

.glass-section {
    width: 88%;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, .08)
}

.btn {
    display: inline-block; /* Keeps padding behaving predictably */
    padding: 12px 25px;
    border: none;
    border-radius: 15px;
    margin: 8px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(45deg, #4f8cff, #935eff)
}

.glass {
    background: rgba(255, 255, 255, .08)
}

.hero-btns {
    margin: 20px 0
}

.working-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    display: inline-block; /* Keeps it wrapped tightly around content */
}

.logo img {
    height: 55px;
    width: 55px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    box-shadow:
        0 0 12px rgba(127,92,255,.25),
        0 0 25px rgba(77,168,255,.15);
    animation: floatLogo 3s ease-in-out infinite;
    transition: all .4s ease;
}

.logo img:hover{
    transform: scale(1.08) rotate(5deg);
    box-shadow:
        0 0 20px rgba(127,92,255,.45),
        0 0 35px rgba(77,168,255,.25);
}

@keyframes floatLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.social-icons{
    margin-top:25px;
    display:flex;
    justify-content:center;
    gap:18px;
}

.social-icons a{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    text-decoration:none;
    background:rgba(255,255,255,0.06);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.08);
    transition:all 0.35s ease;
    box-shadow:0 4px 15px rgba(0,0,0,0.2);
}

.social-icons i{
    font-size:22px;
    transition:all 0.35s ease;
}

/* Facebook */
.social-icons a:nth-child(1) i{ color:#1877F2; }
/* Instagram */
.social-icons a:nth-child(2) i{ color:#E4405F; }
/* GitHub */
.social-icons a:nth-child(3) i{ color:#ffffff; }
/* LinkedIn */
.social-icons a:nth-child(4) i{ color:#0A66C2; }

.social-icons a:hover{
    transform:translateY(-8px) scale(1.08);
    background:rgba(255,255,255,0.12);
    box-shadow:0 0 25px rgba(130,110,255,.45);
}

.social-icons a:hover i{
    transform:scale(1.15);
    filter:drop-shadow(0 0 10px currentColor);
}

.skills-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px
}

.skill-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;   
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    transition: .4s;
}

.skill-card i {
    font-size: 32px;
    color: #8f6bff;
}

.skill-card span {
    font-size: 16px;
    font-weight: 500;
}

.project-card {
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    transition: .4s
}

.timeline-card {
    margin: 15px 0; /* Adjusted sides to 0 */
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    transition: .4s
}

.skill-card:hover,
.project-card:hover,
.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(120, 100, 255, .4)
}

.store-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
}

.store-btn {
    padding: 12px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.store-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-25deg);
    transition: 0.6s;
}

.store-btn:hover::before { left: 130%; }
.store-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25), 0 0 15px rgba(255,255,255,0.2);
}

.section-title{
    text-align:center;
    font-size:2rem;
    margin-bottom:35px;
    background:linear-gradient(90deg,#7f5cff,#4da8ff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.education-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.education-card{
    display:flex;
    gap:20px;
    padding:30px;
    border-radius:25px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,0.08);
    transition:all .4s ease;
    position:relative;
    overflow:hidden;
}

.education-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(127,92,255,.15), rgba(77,168,255,.08));
    opacity:0;
    transition:.4s;
}

.education-card:hover::before{ opacity:1; }
.education-card:hover {
    transform:translateY(-10px);
    box-shadow: 0 0 35px rgba(127,92,255,.25), 0 0 15px rgba(77,168,255,.15);
}

.edu-icon{
    min-width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:20px;
    background:rgba(127,92,255,.12);
    border:1px solid rgba(255,255,255,.08);
}

.edu-icon i{
    font-size:24px;
    color:#8c6dff;
}

.edu-content{ position:relative; z-index:2; }
.edu-year{
    display:inline-block;
    padding:6px 14px;
    border-radius:20px;
    font-size:.85rem;
    margin-bottom:12px;
    background:rgba(127,92,255,.12);
    color:#9b84ff;
    border:1px solid rgba(127,92,255,.25);
}

.edu-content h3{ font-size:1.1rem; margin-bottom:8px; color:#fff; }
.edu-content h4{ color:#7f5cff; margin-bottom:6px; font-weight:500; }
.edu-content p{ color:#b8c2d1; font-size:.95rem; }

.cursor-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(123, 95, 255, .25), transparent);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%)
}

ul { margin-left: 18px; margin-top: 10px }

.email-card, .phone-card {
    text-decoration:none;
    color:white;
    display:flex;
    align-items:center;
    gap:15px;
    transition:all .35s ease;
}

.email-card:hover{ transform:translateY(-6px); box-shadow:0 0 25px rgba(255, 92, 92, 0.35); }
.email-card:hover i{ color:#ff0000; }
.phone-card:hover{ transform:translateY(-6px); box-shadow:0 0 25px rgba(76,175,80,.35); }
.phone-card:hover i{ color:#4CAF50; }

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    transition: all 0.45s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 70%;
    height: 100%;
    background: rgba(255,255,255,0.12);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.contact-card:hover::before { left: 140%; }
.linkedin-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(0,212,255,0.35);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25), 0 0 18px rgba(0,212,255,0.22);
}

.contact-card i {
    font-size: 24px;
    min-width: 28px;
    transition: all 0.4s ease;
}

.fa-phone { color: #00d084; }
.fa-envelope { color: #ff5e7e; }
.fa-linkedin { color: #0a66c2; }
.contact-card:hover i { transform: rotate(-8deg) scale(1.2); }
.contact-card span { font-size: 16px; font-weight: 500; color: #fff; letter-spacing: 0.3px; }

/* ==========================================================================
   NEW MOBILE RESPONSIVE MEDIA QUERY
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar Adjustment */
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 12px;
        position: static; /* Allows page content to flow naturally on mobile */
        background: rgba(7, 17, 31, 0.9); /* Darker solid color for readability */
    }

    .navbar ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .navbar ul li a {
        font-size: 0.9rem;
    }

    /* Hero Section Adjustment */
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5rem; /* Scales down title font */
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        margin: 5px 0;
        text-align: center;
    }

    /* Glass Sections Fluidity */
    .glass-section {
        width: 92%;
        padding: 25px 20px;
        margin: 30px auto;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* Grids to single column stacking */
    .skills-grid, .project-grid, .education-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        justify-content: flex-start; /* Aligns left for clean mobile view lists */
        padding: 15px 20px;
    }

    /* Education Card restructuring */
    .education-card {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .edu-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .edu-icon i {
        font-size: 20px;
    }

    /* Store Links layout stacking */
    .store-links {
        flex-direction: column;
    }

    .store-btn {
        text-align: center;
        width: 100%;
    }

    /* Hide cursor spotlight on mobile devices since there's no mouse */
    .cursor-glow {
        display: none !important;
    }
}