/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* GENERAL STYLES */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #0a0e17;
    color: #e5e7eb;
    scroll-behavior: smooth;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,14,23,0.4);
    backdrop-filter: blur(12px);
    z-index: 200;
    transition: 0.4s;
}

nav.scrolled {
    padding: 10px 50px;
    background: rgba(10,14,23,0.85);
}

/* Logo */
nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    max-height: 50px;
    width: auto;
    display: block;
    cursor: pointer;
}

/* Navbar links */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #d8dee9;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover { color: #8ab4ff; }

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #8ab4ff;
    cursor: pointer;
}

/* HERO SECTION */
#hero {
    height: 100vh;
    padding-top: 80px;
    background: url("banner.jpg") center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 10px;
}

.glow { text-shadow: 0 0 20px #64a1ff; }

.subtitle {
    font-size: 20px;
    color: #c7d1e6;
    margin-bottom: 30px;
}

.hero-buttons { margin-bottom: 20px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.primary { background: #467aff; }
.primary:hover { background: #2b57cc; }

.secondary { border: 2px solid #8ab4ff; }
.secondary:hover { background: #8ab4ff; color: #000; }

/* HERO SOCIAL ICONS */
.social-hero .icon {
    font-size: 28px;
    margin: 0 12px;
    transition: 0.3s;
}

.ig:hover { color: #ff4f84; }
.li:hover { color: #3db2ff; }
.mail:hover { color: #ffd66b; }

/* CONTENT SECTIONS */
.content-box {
    max-width: 900px;
    margin: 80px auto;
    background: #11161f;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 0 25px #00000060;
}

.content-box h2 {
    color: #8ab4ff;
    margin-bottom: 20px;
}

/* SKILLS */
.skill { margin-bottom: 25px; }
.skill span { font-size: 16px; }

.bar {
    width: 100%;
    height: 10px;
    background: #1a2233;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 6px;
}

.fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#3b65ff,#8ab4ff);
    border-radius: 50px;
    transition: width 2s;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.project {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s;
}

.project:hover img { filter: blur(4px) brightness(0.5); }

.project .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.project:hover .info {
    opacity: 1;
    transform: translateY(0);
}

/* CONTACT BUTTON */
.contact-btn {
    background: #467aff;
    padding: 12px 25px;
    display: inline-block;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
}

.contact-btn:hover { background: #2c54c9; }

/* FOOTER */
footer {
    margin-top: 100px;
    text-align: center;
    padding: 25px 0;
    background: #0d111c;
    color: #7f8ea3;
    font-size: 14px;
    position: relative;
}

.neon-line {
    height: 3px;
    background: linear-gradient(90deg,#3f6df2,#8ab4ff,#3f6df2);
    width: 100%;
    animation: neonMove 5s linear infinite;
}

@keyframes neonMove {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* RESPONSIVE DESIGN */

/* Medium screens */
@media (max-width:1024px) {
    nav { padding: 12px 30px; }
    nav .logo { font-size: 22px; }
    nav ul { gap: 15px; }
    #hero .hero-content h1 { font-size: 38px; }
    .subtitle { font-size: 18px; }
}

/* Small screens */
@media (max-width:768px) {
    nav { flex-wrap: wrap; padding: 10px 20px; }
    .logo { order: 1; }
    .menu-toggle { display: block; order: 2; margin-left: auto; }
    #nav-links { display: none; flex-direction: column; width: 100%; order: 3; margin-top: 10px; }
    #nav-links.active { display: flex; }
    #hero { padding: 0 20px; }
    #hero .hero-content h1 { font-size: 32px; }
    .subtitle { font-size: 16px; }
    .projects-grid { grid-template-columns: 1fr; }
    .content-box { padding: 30px 20px; margin: 50px 15px; }
}

/* Extra small screens */
@media (max-width:480px) {
    #hero .hero-content h1 { font-size: 26px; }
    .subtitle { font-size: 14px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .social-hero .icon { font-size: 22px; margin: 0 8px; }
    .fill { height: 8px; }
}
